]> mj.ucw.cz Git - pciutils.git/commitdiff
libpci: Define some more PCI_IORESOURCE flags (compatible with ioport.h)
authorPali Rohár <pali@kernel.org>
Fri, 31 Dec 2021 16:48:10 +0000 (17:48 +0100)
committerMartin Mareš <mj@ucw.cz>
Fri, 15 Apr 2022 21:36:39 +0000 (23:36 +0200)
These flags define mapping between PCI config space and system resources.
So non-sysfs/procfs providers can fill these flags too.

lib/header.h

index a0690407a76458b2e2965f5cf1d65ae5a6202720..525b910a141896113ae28466b359acab5ca46d33 100644 (file)
 
 /* 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)