diff options
Diffstat (limited to 'include/linux/pci.h')
| -rw-r--r-- | include/linux/pci.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index d304ddf412d0..f5c7cd343e56 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -241,6 +241,7 @@ struct pci_dev { | |||
| 241 | unsigned int d1_support:1; /* Low power state D1 is supported */ | 241 | unsigned int d1_support:1; /* Low power state D1 is supported */ |
| 242 | unsigned int d2_support:1; /* Low power state D2 is supported */ | 242 | unsigned int d2_support:1; /* Low power state D2 is supported */ |
| 243 | unsigned int no_d1d2:1; /* Only allow D0 and D3 */ | 243 | unsigned int no_d1d2:1; /* Only allow D0 and D3 */ |
| 244 | unsigned int wakeup_prepared:1; | ||
| 244 | 245 | ||
| 245 | #ifdef CONFIG_PCIEASPM | 246 | #ifdef CONFIG_PCIEASPM |
| 246 | struct pcie_link_state *link_state; /* ASPM link state. */ | 247 | struct pcie_link_state *link_state; /* ASPM link state. */ |
| @@ -273,9 +274,12 @@ struct pci_dev { | |||
| 273 | unsigned int ari_enabled:1; /* ARI forwarding */ | 274 | unsigned int ari_enabled:1; /* ARI forwarding */ |
| 274 | unsigned int is_managed:1; | 275 | unsigned int is_managed:1; |
| 275 | unsigned int is_pcie:1; | 276 | unsigned int is_pcie:1; |
| 277 | unsigned int needs_freset:1; /* Dev requires fundamental reset */ | ||
| 276 | unsigned int state_saved:1; | 278 | unsigned int state_saved:1; |
| 277 | unsigned int is_physfn:1; | 279 | unsigned int is_physfn:1; |
| 278 | unsigned int is_virtfn:1; | 280 | unsigned int is_virtfn:1; |
| 281 | unsigned int reset_fn:1; | ||
| 282 | unsigned int is_hotplug_bridge:1; | ||
| 279 | pci_dev_flags_t dev_flags; | 283 | pci_dev_flags_t dev_flags; |
| 280 | atomic_t enable_cnt; /* pci_enable_device has been called */ | 284 | atomic_t enable_cnt; /* pci_enable_device has been called */ |
| 281 | 285 | ||
| @@ -794,6 +798,11 @@ int __must_check __pci_register_driver(struct pci_driver *, struct module *, | |||
| 794 | void pci_unregister_driver(struct pci_driver *dev); | 798 | void pci_unregister_driver(struct pci_driver *dev); |
| 795 | void pci_remove_behind_bridge(struct pci_dev *dev); | 799 | void pci_remove_behind_bridge(struct pci_dev *dev); |
| 796 | struct pci_driver *pci_dev_driver(const struct pci_dev *dev); | 800 | struct pci_driver *pci_dev_driver(const struct pci_dev *dev); |
| 801 | int pci_add_dynid(struct pci_driver *drv, | ||
| 802 | unsigned int vendor, unsigned int device, | ||
| 803 | unsigned int subvendor, unsigned int subdevice, | ||
| 804 | unsigned int class, unsigned int class_mask, | ||
| 805 | unsigned long driver_data); | ||
| 797 | const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, | 806 | const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, |
| 798 | struct pci_dev *dev); | 807 | struct pci_dev *dev); |
| 799 | int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, | 808 | int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, |
| @@ -805,6 +814,8 @@ int pci_cfg_space_size_ext(struct pci_dev *dev); | |||
| 805 | int pci_cfg_space_size(struct pci_dev *dev); | 814 | int pci_cfg_space_size(struct pci_dev *dev); |
| 806 | unsigned char pci_bus_max_busnr(struct pci_bus *bus); | 815 | unsigned char pci_bus_max_busnr(struct pci_bus *bus); |
| 807 | 816 | ||
| 817 | int pci_set_vga_state(struct pci_dev *pdev, bool decode, | ||
| 818 | unsigned int command_bits, bool change_bridge); | ||
| 808 | /* kmem_cache style wrapper around pci_alloc_consistent() */ | 819 | /* kmem_cache style wrapper around pci_alloc_consistent() */ |
| 809 | 820 | ||
| 810 | #include <linux/dmapool.h> | 821 | #include <linux/dmapool.h> |
| @@ -1145,7 +1156,7 @@ static inline void pci_set_drvdata(struct pci_dev *pdev, void *data) | |||
| 1145 | /* If you want to know what to call your pci_dev, ask this function. | 1156 | /* If you want to know what to call your pci_dev, ask this function. |
| 1146 | * Again, it's a wrapper around the generic device. | 1157 | * Again, it's a wrapper around the generic device. |
| 1147 | */ | 1158 | */ |
| 1148 | static inline const char *pci_name(struct pci_dev *pdev) | 1159 | static inline const char *pci_name(const struct pci_dev *pdev) |
| 1149 | { | 1160 | { |
| 1150 | return dev_name(&pdev->dev); | 1161 | return dev_name(&pdev->dev); |
| 1151 | } | 1162 | } |
| @@ -1236,6 +1247,9 @@ extern int pci_pci_problems; | |||
| 1236 | extern unsigned long pci_cardbus_io_size; | 1247 | extern unsigned long pci_cardbus_io_size; |
| 1237 | extern unsigned long pci_cardbus_mem_size; | 1248 | extern unsigned long pci_cardbus_mem_size; |
| 1238 | 1249 | ||
| 1250 | extern unsigned long pci_hotplug_io_size; | ||
| 1251 | extern unsigned long pci_hotplug_mem_size; | ||
| 1252 | |||
| 1239 | int pcibios_add_platform_entries(struct pci_dev *dev); | 1253 | int pcibios_add_platform_entries(struct pci_dev *dev); |
| 1240 | void pcibios_disable_device(struct pci_dev *dev); | 1254 | void pcibios_disable_device(struct pci_dev *dev); |
| 1241 | int pcibios_set_pcie_reset_state(struct pci_dev *dev, | 1255 | int pcibios_set_pcie_reset_state(struct pci_dev *dev, |
