mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
LinuxKPI: add further constants to pci.h
Updated wireless drivers require more knowledge about PCI (BAR) bits. Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D44573
This commit is contained in:
parent
52a19a90de
commit
a1cdddcf15
1 changed files with 2 additions and 0 deletions
|
|
@ -106,6 +106,8 @@ MODULE_PNP_INFO("U32:vendor;U32:device;V32:subvendor;V32:subdevice", \
|
|||
#define to_pci_dev(n) container_of(n, struct pci_dev, dev)
|
||||
|
||||
#define PCI_STD_NUM_BARS 6
|
||||
#define PCI_BASE_ADDRESS_0 PCIR_BARS
|
||||
#define PCI_BASE_ADDRESS_MEM_TYPE_64 PCIM_BAR_MEM_64
|
||||
#define PCI_VENDOR_ID PCIR_VENDOR
|
||||
#define PCI_DEVICE_ID PCIR_DEVICE
|
||||
#define PCI_COMMAND PCIR_COMMAND
|
||||
|
|
|
|||
Loading…
Reference in a new issue