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:
Bjoern A. Zeeb 2024-03-31 17:26:29 +00:00
parent 52a19a90de
commit a1cdddcf15

View file

@ -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