Xenomai API  2.6.3
descriptor.h
Go to the documentation of this file.
1 
22 #ifndef __ANALOGY_LIB_CORE__
23 #define __ANALOGY_LIB_CORE__
24 
25 #include <analogy/subdevice.h>
26 #include <analogy/device.h>
27 
28 /* --- Descriptor precompilation constants --- */
29 
30 /* Constant used internally */
31 #define MAGIC_BSC_DESC 0x1234abcd
32 #define MAGIC_CPLX_DESC 0xabcd1234
33 
49 #define A4L_BSC_DESC 0x0
50 
55 #define A4L_CPLX_DESC 0x1
56 
59 /* --- Descriptor structure --- */
60 
67  char board_name[A4L_NAMELEN];
69  int nb_subd;
71  int idx_read_subd;
73  int idx_write_subd;
75  int fd;
77  unsigned int magic;
79  int sbsize;
81  void *sbdata;
83 };
84 typedef struct a4l_descriptor a4l_desc_t;
85 
88 #endif /* __ANALOGY_LIB_CORE__ */