|
@@ -171,6 +171,8 @@ enum pci_dev_flags {
|
|
PCI_DEV_FLAGS_ASSIGNED = (__force pci_dev_flags_t) (1 << 2),
|
|
PCI_DEV_FLAGS_ASSIGNED = (__force pci_dev_flags_t) (1 << 2),
|
|
/* Flag for quirk use to store if quirk-specific ACS is enabled */
|
|
/* Flag for quirk use to store if quirk-specific ACS is enabled */
|
|
PCI_DEV_FLAGS_ACS_ENABLED_QUIRK = (__force pci_dev_flags_t) (1 << 3),
|
|
PCI_DEV_FLAGS_ACS_ENABLED_QUIRK = (__force pci_dev_flags_t) (1 << 3),
|
|
|
|
+ /* Flag to indicate the device uses dma_alias_devfn */
|
|
|
|
+ PCI_DEV_FLAGS_DMA_ALIAS_DEVFN = (__force pci_dev_flags_t) (1 << 4),
|
|
};
|
|
};
|
|
|
|
|
|
enum pci_irq_reroute_variant {
|
|
enum pci_irq_reroute_variant {
|
|
@@ -268,6 +270,7 @@ struct pci_dev {
|
|
u8 rom_base_reg; /* which config register controls the ROM */
|
|
u8 rom_base_reg; /* which config register controls the ROM */
|
|
u8 pin; /* which interrupt pin this device uses */
|
|
u8 pin; /* which interrupt pin this device uses */
|
|
u16 pcie_flags_reg; /* cached PCIe Capabilities Register */
|
|
u16 pcie_flags_reg; /* cached PCIe Capabilities Register */
|
|
|
|
+ u8 dma_alias_devfn;/* devfn of DMA alias, if any */
|
|
|
|
|
|
struct pci_driver *driver; /* which driver has allocated this device */
|
|
struct pci_driver *driver; /* which driver has allocated this device */
|
|
u64 dma_mask; /* Mask of the bits of bus address this
|
|
u64 dma_mask; /* Mask of the bits of bus address this
|