git: 0af78fa479ca - stable/14 - LinuxKPI: add further constants to pci.h

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Mon, 22 Apr 2024 19:43:54 UTC
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=0af78fa479ca3dee46f4deeba0e543ec7b77afc0

commit 0af78fa479ca3dee46f4deeba0e543ec7b77afc0
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-03-31 17:26:29 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-04-22 16:59:30 +0000

    LinuxKPI: add further constants to pci.h
    
    Updated wireless drivers require more knowledge about PCI (BAR) bits.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    jhb
    Differential Revision: https://reviews.freebsd.org/D44573
    
    (cherry picked from commit a1cdddcf1596d258ce0b01b156dfd9921bd60e08)
---
 sys/compat/linuxkpi/common/include/linux/pci.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/pci.h b/sys/compat/linuxkpi/common/include/linux/pci.h
index 174599d06141..98ba160150f7 100644
--- a/sys/compat/linuxkpi/common/include/linux/pci.h
+++ b/sys/compat/linuxkpi/common/include/linux/pci.h
@@ -105,6 +105,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