Added support function to find a PCI capability offset in the configuration data, needed for SATA support.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20149 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2007-02-17 22:57:59 +00:00
parent 3f493ef624
commit 13dbe1c7ff
4 changed files with 72 additions and 2 deletions
+9
View File
@@ -147,6 +147,14 @@ struct pci_module_info {
);
void * (*ram_address) (const void *physical_address_in_system_memory);
status_t (*find_pci_capability) (
uchar bus,
uchar device,
uchar function,
uchar cap_id,
uchar *offset
);
};
#define B_PCI_MODULE_NAME "bus_managers/pci/v1"
@@ -617,6 +625,7 @@ struct pci_module_info {
#define PCI_cap_id_debugport 0x0a
#define PCI_cap_id_cpci_rsrcctl 0x0b
#define PCI_cap_id_hotplug 0x0c
#define PCI_cap_id_sata 0x12 /* Serial ATA Capability */
/** Power Management Control Status Register settings */
#define PCI_pm_mask 0x03