From 4520c5950c49f788fc39108930b111093f06d421 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pali=20Roh=C3=A1r?= Date: Fri, 31 Dec 2021 17:48:10 +0100 Subject: [PATCH] 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. --- lib/header.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.2