diff options
author | jhb <jhb@FreeBSD.org> | 2012-03-03 18:08:57 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2012-03-03 18:08:57 +0000 |
commit | db63f69541c624629331258004b800e1929a9140 (patch) | |
tree | 327afe671bfb97e2bc7f889c317c4b18da45a8e2 /sys/dev/pci/pci_private.h | |
parent | 5794e3ef03066c06566d80796cdb60efbe337733 (diff) | |
download | FreeBSD-src-db63f69541c624629331258004b800e1929a9140.zip FreeBSD-src-db63f69541c624629331258004b800e1929a9140.tar.gz |
Expand the set of APIs available for locating PCI capabilities:
- pci_find_extcap() is repurposed to be used for fetching PCI-express
extended capabilities (PCIZ_* constants in <dev/pci/pcireg.h>).
- pci_find_htcap() can be used to locate a specific HyperTransport
capability (PCIM_HTCAP_* constants in <dev/pci/pcireg.h>).
- Cache the starting location of the PCI-express capability for PCI-express
devices in PCI device ivars.
Diffstat (limited to 'sys/dev/pci/pci_private.h')
-rw-r--r-- | sys/dev/pci/pci_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h index c5b2cd8..5a083bf 100644 --- a/sys/dev/pci/pci_private.h +++ b/sys/dev/pci/pci_private.h @@ -80,8 +80,12 @@ int pci_enable_busmaster_method(device_t dev, device_t child); int pci_disable_busmaster_method(device_t dev, device_t child); int pci_enable_io_method(device_t dev, device_t child, int space); int pci_disable_io_method(device_t dev, device_t child, int space); +int pci_find_cap_method(device_t dev, device_t child, + int capability, int *capreg); int pci_find_extcap_method(device_t dev, device_t child, int capability, int *capreg); +int pci_find_htcap_method(device_t dev, device_t child, + int capability, int *capreg); int pci_alloc_msi_method(device_t dev, device_t child, int *count); int pci_alloc_msix_method(device_t dev, device_t child, int *count); int pci_remap_msix_method(device_t dev, device_t child, |