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:
parent
b782e8cd79
commit
3f8d7bce7c
@ -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;
|
||||
|
||||
|
||||
|
@ -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
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user