diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pci.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index aaa9f333fb44..700704ef70f3 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1013,7 +1013,9 @@ enum pci_fixup_pass { | |||
1013 | pci_fixup_header, /* After reading configuration header */ | 1013 | pci_fixup_header, /* After reading configuration header */ |
1014 | pci_fixup_final, /* Final phase of device fixups */ | 1014 | pci_fixup_final, /* Final phase of device fixups */ |
1015 | pci_fixup_enable, /* pci_enable_device() time */ | 1015 | pci_fixup_enable, /* pci_enable_device() time */ |
1016 | pci_fixup_resume, /* pci_enable_device() time */ | 1016 | pci_fixup_resume, /* pci_device_resume() */ |
1017 | pci_fixup_suspend, /* pci_device_suspend */ | ||
1018 | pci_fixup_resume_early, /* pci_device_resume_early() */ | ||
1017 | }; | 1019 | }; |
1018 | 1020 | ||
1019 | /* Anonymous variables would be nice... */ | 1021 | /* Anonymous variables would be nice... */ |
@@ -1035,6 +1037,12 @@ enum pci_fixup_pass { | |||
1035 | #define DECLARE_PCI_FIXUP_RESUME(vendor, device, hook) \ | 1037 | #define DECLARE_PCI_FIXUP_RESUME(vendor, device, hook) \ |
1036 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume, \ | 1038 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume, \ |
1037 | resume##vendor##device##hook, vendor, device, hook) | 1039 | resume##vendor##device##hook, vendor, device, hook) |
1040 | #define DECLARE_PCI_FIXUP_RESUME_EARLY(vendor, device, hook) \ | ||
1041 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_resume_early, \ | ||
1042 | resume_early##vendor##device##hook, vendor, device, hook) | ||
1043 | #define DECLARE_PCI_FIXUP_SUSPEND(vendor, device, hook) \ | ||
1044 | DECLARE_PCI_FIXUP_SECTION(.pci_fixup_suspend, \ | ||
1045 | suspend##vendor##device##hook, vendor, device, hook) | ||
1038 | 1046 | ||
1039 | 1047 | ||
1040 | void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev); | 1048 | void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev); |