added PCI capability support to bus api

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20151 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2007-02-18 00:18:13 +00:00
parent b782e8cd79
commit 3f8d7bce7c
2 changed files with 14 additions and 1 deletions

View File

@ -112,7 +112,10 @@ typedef struct pci_device_module_info {
status_t (*release_ioports)( uint16 ioport_base, size_t len );*/
status_t (*get_pci_info)(pci_device device, struct pci_info *info);
status_t (*find_pci_capability)(pci_device device,
uchar cap_id,
uchar *offset);
} pci_device_module_info;

View File

@ -117,6 +117,14 @@ pci_device_get_pci_info(pci_device device, struct pci_info *info)
}
static status_t
pci_device_find_capability(pci_device device, uchar cap_id, uchar *offset)
{
return pci_find_capability(device->bus, device->device,
device->function, cap_id, offset);
}
static status_t
pci_device_init_driver(device_node_handle node, void *user_cookie, void **cookie)
{
@ -226,4 +234,6 @@ pci_device_module_info gPCIDeviceModule = {
pci_device_ram_address,
pci_device_get_pci_info,
pci_device_find_capability
};