summaryrefslogtreecommitdiffstats
path: root/pcilib_types.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 21:28:53 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 21:28:53 +0200
commit2c52de4f914806c040f62d9fc3ee88081a7aa56b (patch)
treee40aa496fe958e313e082340c4d1689e56143f2f /pcilib_types.h
parent8ad813673ae155ce0e601ae864466a59ce7afa95 (diff)
downloadipecamera-2c52de4f914806c040f62d9fc3ee88081a7aa56b.tar.gz
ipecamera-2c52de4f914806c040f62d9fc3ee88081a7aa56b.tar.bz2
ipecamera-2c52de4f914806c040f62d9fc3ee88081a7aa56b.tar.xz
ipecamera-2c52de4f914806c040f62d9fc3ee88081a7aa56b.zip
List kernel buffers
Diffstat (limited to 'pcilib_types.h')
-rw-r--r--pcilib_types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcilib_types.h b/pcilib_types.h
index 237f1db..d8dd6f5 100644
--- a/pcilib_types.h
+++ b/pcilib_types.h
@@ -1,6 +1,14 @@
#ifndef _PCILIB_TYPES_H
#define _PCILIB_TYPES_H
+#define KMEM_REF_HW 0x80000000 /**< Special reference to indicate hardware access */
+#define KMEM_REF_COUNT 0x0FFFFFFF /**< Mask of reference counter (mmap/munmap), couting in mmaped memory pages */
+
+#define KMEM_MODE_REUSABLE 0x80000000 /**< Indicates reusable buffer */
+#define KMEM_MODE_EXCLUSIVE 0x40000000 /**< Only a single process is allowed to mmap the buffer */
+#define KMEM_MODE_PERSISTENT 0x20000000 /**< Persistent mode instructs kmem_free to preserve buffer in memory */
+#define KMEM_MODE_COUNT 0x0FFFFFFF /**< Mask of reuse counter (alloc/free) */
+
typedef enum {
PCILIB_KMEM_TYPE_CONSISTENT = 0,
PCILIB_KMEM_TYPE_PAGE,