fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/menable/mem_1.h
Go to the documentation of this file.
00001 //+-------------------------------------------------------------------
00002 //
00003 //  
00004 //  Copyright (C) Silicon Software GmbH, 1999.
00005 //
00006 //  File:       mem.h
00007 //
00008 //  Contents:   
00009 //              
00010 //
00011 //
00012 //--------------------------------------------------------------------
00013 
00014 #ifndef __MEMH
00015 #define __MEMH
00016 
00017 #include "os_type.h"
00018 
00019 typedef struct dma_mem_s {
00020         int flag;       // USER_BUFFER, LOCKED_BUFFER
00021         unsigned long *mem;
00022 #ifdef LINUX
00023         unsigned long *user_mem;
00024 #endif
00025         unsigned long size;
00026         unsigned long max_sub_size;
00027         int nr_of_subbuf;
00028         int virt_buffer_nr;     
00029 } dma_mem;
00030 
00031 
00032 #define ME_USER_BUFFER 0x100
00033 #define ME_LOCKED_BUFFER 0x200
00034 
00035 #define NORMAL 0x0
00036 #define RINGBUFFER 0x10
00037 
00038 // ===================================================
00039 // 
00040 // Prototypes
00041 //
00042 // ===================================================
00043 
00044 
00045 #endif
00046 
00047