diff options
Diffstat (limited to 'include/linux/pci-acpi.h')
-rw-r--r-- | include/linux/pci-acpi.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/pci-acpi.h b/include/linux/pci-acpi.h index a965efa52152..89ab0572dbc6 100644 --- a/include/linux/pci-acpi.h +++ b/include/linux/pci-acpi.h | |||
@@ -52,6 +52,30 @@ static inline acpi_handle acpi_pci_get_bridge_handle(struct pci_bus *pbus) | |||
52 | return ACPI_HANDLE(dev); | 52 | return ACPI_HANDLE(dev); |
53 | } | 53 | } |
54 | 54 | ||
55 | struct acpi_pci_root; | ||
56 | struct acpi_pci_root_ops; | ||
57 | |||
58 | struct acpi_pci_root_info { | ||
59 | struct acpi_pci_root *root; | ||
60 | struct acpi_device *bridge; | ||
61 | struct acpi_pci_root_ops *ops; | ||
62 | struct list_head resources; | ||
63 | char name[16]; | ||
64 | }; | ||
65 | |||
66 | struct acpi_pci_root_ops { | ||
67 | struct pci_ops *pci_ops; | ||
68 | int (*init_info)(struct acpi_pci_root_info *info); | ||
69 | void (*release_info)(struct acpi_pci_root_info *info); | ||
70 | int (*prepare_resources)(struct acpi_pci_root_info *info); | ||
71 | }; | ||
72 | |||
73 | extern int acpi_pci_probe_root_resources(struct acpi_pci_root_info *info); | ||
74 | extern struct pci_bus *acpi_pci_root_create(struct acpi_pci_root *root, | ||
75 | struct acpi_pci_root_ops *ops, | ||
76 | struct acpi_pci_root_info *info, | ||
77 | void *sd); | ||
78 | |||
55 | void acpi_pci_add_bus(struct pci_bus *bus); | 79 | void acpi_pci_add_bus(struct pci_bus *bus); |
56 | void acpi_pci_remove_bus(struct pci_bus *bus); | 80 | void acpi_pci_remove_bus(struct pci_bus *bus); |
57 | 81 | ||