Add a way to look up basic PCI info for an ACPI device. It works for retrieving
the base bus number and segment which is what we're using them for. It should work generically, however I only tested it to look up PCI bridge devices. The logic is a subset of what is done in AcpiEvPciConfigRegionSetup when setting up the operation region for a PCI device. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41365 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -135,6 +135,15 @@ enum {
|
||||
ACPI_ALLOCATE_BUFFER = -1,
|
||||
};
|
||||
|
||||
|
||||
typedef struct acpi_pci_info {
|
||||
uint16 segment;
|
||||
uint16 bus;
|
||||
uint16 device;
|
||||
uint16 function;
|
||||
} acpi_pci_info;
|
||||
|
||||
|
||||
/*
|
||||
* acpi_status should return ACPI specific error codes, not BeOS ones.
|
||||
*/
|
||||
@@ -248,6 +257,10 @@ struct acpi_module_info {
|
||||
size_t size);
|
||||
status_t (*enter_sleep_state)(uint8 state);
|
||||
status_t (*reboot)(void);
|
||||
|
||||
/* PCI specific info */
|
||||
status_t (*get_pci_info)(acpi_handle pciRootBridge, acpi_handle device,
|
||||
acpi_pci_info *info);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user