fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/menable/mem_siso.h
Go to the documentation of this file.
00001 //+-------------------------------------------------------------------
00002 //
00003 //  
00004 //  Copyright (C) Silicon Software GmbH, 1999.
00005 //
00006 //  File:       mem_siso.h
00007 //
00008 //  Contents:
00009 //
00010 //
00011 //
00012 //--------------------------------------------------------------------
00013 
00014 #ifndef __MEM_SISO1H
00015 #define __MEM_SISO1H
00016 
00017 #include "os_type_1.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 #define ME_PHYSICAL_LINE_BUFFER 0x300
00035 
00036 
00037 // ===================================================
00038 // 
00039 // Prototypes
00040 //
00041 // ===================================================
00042 
00043 
00044 #endif
00045 
00046