From: Pali Rohár Date: Fri, 31 Dec 2021 16:48:10 +0000 (+0100) Subject: libpci: Define some more PCI_IORESOURCE flags (compatible with ioport.h) X-Git-Tag: v3.8.0~24 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4520c5950c49f788fc39108930b111093f06d421;p=pciutils.git 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. --- 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 */ +#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)