linuxkpi: Add msix_cap to struct pci_dev

At the same time, define `PCI_MSIX_FLAGS`and `PCI_MSIX_FLAGS_ENABLE`.

Reviewed by:	manu
Approved by:	manu
Differential Revision:	https://reviews.freebsd.org/D38160
This commit is contained in:
Jean-Sébastien Pédron 2023-01-20 20:23:59 +01:00
parent e64afbc215
commit 4152ce2139
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC

View File

@ -170,6 +170,8 @@ MODULE_PNP_INFO("U32:vendor;U32:device;V32:subvendor;V32:subdevice", \
#define PCI_MSI_ADDRESS_HI PCIR_MSI_ADDR_HIGH
#define PCI_MSI_FLAGS PCIR_MSI_CTRL
#define PCI_MSI_FLAGS_ENABLE PCIM_MSICTRL_MSI_ENABLE
#define PCI_MSIX_FLAGS PCIR_MSIX_CTRL
#define PCI_MSIX_FLAGS_ENABLE PCIM_MSIXCTRL_MSIX_ENABLE
#define PCI_EXP_LNKCAP_CLKPM 0x00040000
#define PCI_EXP_DEVSTA_TRPND 0x0020
@ -323,6 +325,7 @@ struct pci_dev {
uint32_t class;
uint8_t revision;
uint8_t msi_cap;
uint8_t msix_cap;
bool managed; /* devres "pcim_*(). */
bool want_iomap_res;
bool msi_enabled;