mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-02 22:54:52 +00: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
|
@ -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