diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2016-05-16 15:12:02 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-05-16 15:12:02 -0500 |
commit | 92efb1bd9bcbdf83cc0e6cfead752d0c82f63677 (patch) | |
tree | c93500e8f364189e7ebf0222ac701672531bfdad /include/linux/ioport.h | |
parent | c20e128030caf0537d5e906753eac1c28fefdb75 (diff) | |
download | talos-obmc-linux-92efb1bd9bcbdf83cc0e6cfead752d0c82f63677.tar.gz talos-obmc-linux-92efb1bd9bcbdf83cc0e6cfead752d0c82f63677.zip |
PCI: Identify Enhanced Allocation (EA) BAR Equivalent resources in sysfs
Resource flags are exposed to userspace via the sysfs "resource" file.
lspci reads the sysfs file to determine resource properties.
Add a "BAR Equivalent Indicator" flag so lspci can distinguish between
[virtual] and [enhanced] resources.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Sean O. Stalley <sean.stalley@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/ioport.h')
-rw-r--r-- | include/linux/ioport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ioport.h b/include/linux/ioport.h index 0b65543dc6cf..6230064d7f95 100644 --- a/include/linux/ioport.h +++ b/include/linux/ioport.h @@ -26,6 +26,9 @@ struct resource { /* * IO resources have these defined flags. + * + * PCI devices expose these flags to userspace in the "resource" sysfs file, + * so don't move them. */ #define IORESOURCE_BITS 0x000000ff /* Bus-specific bits */ @@ -110,6 +113,7 @@ struct resource { /* PCI control bits. Shares IORESOURCE_BITS with above PCI ROM. */ #define IORESOURCE_PCI_FIXED (1<<4) /* Do not move resource */ +#define IORESOURCE_PCI_EA_BEI (1<<5) /* BAR Equivalent Indicator */ /* * I/O Resource Descriptors |