summaryrefslogtreecommitdiffstats
path: root/pcilib/kmem.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-11-20 18:52:51 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-11-20 18:52:51 +0100
commit817906fdd1c4509cb4b79160bb0d9ff72db7a604 (patch)
treeeafe197e4e16ade6641d5c6659c5fe95be9b8239 /pcilib/kmem.h
parentbba9c619c79175b58359116b52a889e30a632d07 (diff)
downloadpcitool-817906fdd1c4509cb4b79160bb0d9ff72db7a604.tar.gz
pcitool-817906fdd1c4509cb4b79160bb0d9ff72db7a604.tar.bz2
pcitool-817906fdd1c4509cb4b79160bb0d9ff72db7a604.tar.xz
pcitool-817906fdd1c4509cb4b79160bb0d9ff72db7a604.zip
Fix reading non DMA-able kernel pages using pcitool
Diffstat (limited to 'pcilib/kmem.h')
-rw-r--r--pcilib/kmem.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/pcilib/kmem.h b/pcilib/kmem.h
index 3dff625..eb7e4ff 100644
--- a/pcilib/kmem.h
+++ b/pcilib/kmem.h
@@ -65,12 +65,12 @@ typedef enum {
typedef struct {
int handle_id;
pcilib_kmem_reuse_state_t reused;
-
+
uintptr_t pa;
// uintptr_t va;
void *ua;
size_t size;
-
+
size_t alignment_offset;
size_t mmap_offset;
} pcilib_kmem_addr_t;
@@ -83,6 +83,8 @@ typedef struct {
typedef struct {
pcilib_kmem_addr_t addr;
+ pcilib_kmem_type_t type;
+ pcilib_kmem_use_t use;
pcilib_kmem_reuse_state_t reused;
size_t n_blocks;