diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2015-12-23 21:51:10 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2015-12-23 21:51:10 +0000 |
| commit | ce204e1bd813047e5f70fadcc9e703b89dac0f32 (patch) | |
| tree | 925479f2c6af1dcc8bc487ad50187443dbe117a7 /sys/dev/pci/pcivar.h | |
| parent | 9e8d8b4b0c85f0457e39e219126cfd0cc03558d0 (diff) | |
Notes
Diffstat (limited to 'sys/dev/pci/pcivar.h')
| -rw-r--r-- | sys/dev/pci/pcivar.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h index 8b1d6a9893abc..d8df42fea2e13 100644 --- a/sys/dev/pci/pcivar.h +++ b/sys/dev/pci/pcivar.h @@ -516,6 +516,18 @@ pci_msix_count(device_t dev) return (PCI_MSIX_COUNT(device_get_parent(dev), dev)); } +static __inline int +pci_msix_pba_bar(device_t dev) +{ + return (PCI_MSIX_PBA_BAR(device_get_parent(dev), dev)); +} + +static __inline int +pci_msix_table_bar(device_t dev) +{ + return (PCI_MSIX_TABLE_BAR(device_get_parent(dev), dev)); +} + static __inline uint16_t pci_get_rid(device_t dev) { |
