/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib_types.h

  • Committer: Suren A. Chilingaryan
  • Date: 2011-10-23 00:43:20 UTC
  • Revision ID: csa@dside.dyndns.org-20111023004320-523yoab3y82nketc
Properly perform synchronization of DMA buffers

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#define KMEM_MODE_PERSISTENT    0x20000000      /**< Persistent mode instructs kmem_free to preserve buffer in memory */
10
10
#define KMEM_MODE_COUNT         0x0FFFFFFF      /**< Mask of reuse counter (alloc/free) */
11
11
 
 
12
#define PCILIB_KMEM_TYPE_MASK   0xFFFF0000
 
13
 
12
14
typedef enum {
13
 
    PCILIB_KMEM_TYPE_CONSISTENT = 0,
14
 
    PCILIB_KMEM_TYPE_PAGE,
 
15
    PCILIB_KMEM_TYPE_CONSISTENT = 0x00000,
 
16
    PCILIB_KMEM_TYPE_PAGE = 0x10000,
 
17
    PCILIB_KMEM_TYPE_DMA_S2C_PAGE = 0x10001,
 
18
    PCILIB_KMEM_TYPE_DMA_C2S_PAGE = 0x10002
15
19
} pcilib_kmem_type_t;
16
20
 
17
21
typedef enum {
21
25
} pcilib_kmem_use_t;
22
26
 
23
27
typedef enum {
 
28
    PCILIB_KMEM_SYNC_BIDIRECTIONAL = 0,
24
29
    PCILIB_KMEM_SYNC_TODEVICE = 1,
25
30
    PCILIB_KMEM_SYNC_FROMDEVICE = 2
26
31
} pcilib_kmem_sync_direction_t;