00001 /* 00002 ** dmavar.h for lseos in lseos-srv/hw/dma 00003 ** 00004 ** Copyright(c)2004 Vianney Rancurel 00005 ** Login <vianney@epita.fr> 00006 ** 00007 ** Started on Wed Feb 11 12:02:31 2004 Vianney Rancurel 00008 ** Last update Mon Dec 6 12:23:37 2004 Vianney Rancurel 00009 */ 00010 #ifndef __DMAVAR_H__ 00011 #define __DMAVAR_H__ 1 00012 00013 typedef struct s_dma 00014 { 00015 pid_t holder; 00016 char *dmabuf; 00017 paddr_t pa; /* physical address of buffer */ 00018 int dmapage; 00019 int dmalen; 00020 int dmaoff; 00021 u_int32_t dmaopt; 00022 u_int32_t avail:1; 00023 } t_dma; 00024 00025 typedef struct s_dma_info 00026 { 00027 __cpu_simple_lock_t lock; 00028 } t_dma_info; 00029 00030 #endif