summaryrefslogtreecommitdiffstats
path: root/pcilib/kmem.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-06-19 17:51:56 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-06-19 17:51:56 +0200
commit954583ac2ee8ec522a0283e6e3b249345c71a3e7 (patch)
treecdcef21dc7635ae04f17f4d48355583015267692 /pcilib/kmem.h
parent36385f1e83c7f6dd45954033b91d1871e62005c4 (diff)
parent907559d880de032deb31aa5e648c11029bbf9cce (diff)
downloadpcitool-954583ac2ee8ec522a0283e6e3b249345c71a3e7.tar.gz
pcitool-954583ac2ee8ec522a0283e6e3b249345c71a3e7.tar.bz2
pcitool-954583ac2ee8ec522a0283e6e3b249345c71a3e7.tar.xz
pcitool-954583ac2ee8ec522a0283e6e3b249345c71a3e7.zip
Integration of software registers
Diffstat (limited to 'pcilib/kmem.h')
-rw-r--r--pcilib/kmem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pcilib/kmem.h b/pcilib/kmem.h
index 8302b6a..ae690fe 100644
--- a/pcilib/kmem.h
+++ b/pcilib/kmem.h
@@ -4,6 +4,8 @@
typedef struct pcilib_s pcilib_t;
typedef struct pcilib_kmem_list_s pcilib_kmem_list_t;
+#define PCILIB_KMEM_PAGE_SIZE 0x1000
+
typedef enum {
PCILIB_TRISTATE_NO = 0,
PCILIB_TRISTATE_PARTIAL = 1,
@@ -27,6 +29,7 @@ typedef enum {
PCILIB_KMEM_USE_STANDARD = 0,
PCILIB_KMEM_USE_DMA_RING = 1,
PCILIB_KMEM_USE_DMA_PAGES = 2,
+ PCILIB_KMEM_USE_SOFTWARE_REGISTERS = 3,
PCILIB_KMEM_USE_USER = 0x10
} pcilib_kmem_use_t;