[Pm-utils] missing quirk: PCI_SAVE

Till Maas opensource at till.name
Thu Aug 30 16:08:25 PDT 2007


Hiyas,

I just noticed that userland suspend (http://suspend.sourceforge.net/) uses a 
quirk that pm-utils not yet supports: PCI_SAVE.
Is this something we can support, too? Atm, there is only one entry in 
whitelist.c that uses this quirk.

suspend:
233 .___if (flags & PCI_SAVE) {
234 .___.___pacc = pci_alloc();     /* Get the pci_access structure */
235 .___.___pci_init(pacc);         /* Initialize the PCI library */
236
237 .___.___if (find_vga()) {
238 .___.___.___printf("saving PCI config of device %02x:%02x.%d\n",
239 .___.___.___.___vga_dev.bus, vga_dev.dev, vga_dev.func);
240 .___.___.___save_vga_pci();
241 .___.___} else
242 .___.___.___/* pci_save requested, no VGA device found => abort */
243 .___.___.___return 1;
244 .___}

resume:
275 .___if (flags & PCI_SAVE) {
276 .___.___printf("restoring PCI config of device %02x:%02x.%d\n",
277 .___.___.___vga_dev.bus, vga_dev.dev, vga_dev.func);
278 .___.___restore_vga_pci();
279
280 .___.___pci_cleanup(pacc);
281 .___}

Regards,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20070831/6b4883a1/attachment.pgp 


More information about the Pm-utils mailing list