diff options
Diffstat (limited to 'include/linux/pci.h')
| -rw-r--r-- | include/linux/pci.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index b1d17956a153..7454408c41b6 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -541,7 +541,7 @@ struct pci_error_handlers { | |||
| 541 | struct module; | 541 | struct module; |
| 542 | struct pci_driver { | 542 | struct pci_driver { |
| 543 | struct list_head node; | 543 | struct list_head node; |
| 544 | char *name; | 544 | const char *name; |
| 545 | const struct pci_device_id *id_table; /* must be non-NULL for probe to be called */ | 545 | const struct pci_device_id *id_table; /* must be non-NULL for probe to be called */ |
| 546 | int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */ | 546 | int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */ |
| 547 | void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */ | 547 | void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */ |
| @@ -819,6 +819,9 @@ pci_power_t pci_target_state(struct pci_dev *dev); | |||
| 819 | int pci_prepare_to_sleep(struct pci_dev *dev); | 819 | int pci_prepare_to_sleep(struct pci_dev *dev); |
| 820 | int pci_back_from_sleep(struct pci_dev *dev); | 820 | int pci_back_from_sleep(struct pci_dev *dev); |
| 821 | bool pci_dev_run_wake(struct pci_dev *dev); | 821 | bool pci_dev_run_wake(struct pci_dev *dev); |
| 822 | bool pci_check_pme_status(struct pci_dev *dev); | ||
| 823 | void pci_wakeup_event(struct pci_dev *dev); | ||
| 824 | void pci_pme_wakeup_bus(struct pci_bus *bus); | ||
| 822 | 825 | ||
| 823 | static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, | 826 | static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, |
| 824 | bool enable) | 827 | bool enable) |
| @@ -1214,6 +1217,9 @@ static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, | |||
| 1214 | unsigned int devfn) | 1217 | unsigned int devfn) |
| 1215 | { return NULL; } | 1218 | { return NULL; } |
| 1216 | 1219 | ||
| 1220 | static inline int pci_domain_nr(struct pci_bus *bus) | ||
| 1221 | { return 0; } | ||
| 1222 | |||
| 1217 | #define dev_is_pci(d) (false) | 1223 | #define dev_is_pci(d) (false) |
| 1218 | #define dev_is_pf(d) (false) | 1224 | #define dev_is_pf(d) (false) |
| 1219 | #define dev_num_vf(d) (0) | 1225 | #define dev_num_vf(d) (0) |
