diff options
author | Pali Rohár <pali@kernel.org> | 2021-12-31 17:48:10 +0100 |
---|---|---|
committer | Martin Mareš <mj@ucw.cz> | 2022-04-15 23:36:39 +0200 |
commit | 4520c5950c49f788fc39108930b111093f06d421 (patch) | |
tree | 1bf1ab849ea33758783cb58b0960de619aac5159 | |
parent | 5c649bdcedfd823670dcbd74e9c38849d068db80 (diff) | |
download | pciutils-4520c5950c49f788fc39108930b111093f06d421.tar.gz |
libpci: Define some more PCI_IORESOURCE flags (compatible with ioport.h)
These flags define mapping between PCI config space and system resources.
So non-sysfs/procfs providers can fill these flags too.
-rw-r--r-- | lib/header.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/header.h b/lib/header.h index a069040..525b910 100644 --- a/lib/header.h +++ b/lib/header.h @@ -1418,4 +1418,10 @@ /* I/O resource flags, compatible with <include/linux/ioport.h> */ +#define PCI_IORESOURCE_TYPE_BITS 0x00001f00 +#define PCI_IORESOURCE_IO 0x00000100 +#define PCI_IORESOURCE_MEM 0x00000200 +#define PCI_IORESOURCE_PREFETCH 0x00002000 +#define PCI_IORESOURCE_MEM_64 0x00100000 +#define PCI_IORESOURCE_IO_16BIT_ADDR (1<<0) #define PCI_IORESOURCE_PCI_EA_BEI (1<<5) |