Xenomai API  2.6.5
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;
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__ */
Analogy for Linux, subdevice related features.
unsigned int magic
Opaque field.
Definition: descriptor.h:77
Structure containing device-information useful to users.
Definition: descriptor.h:66
int idx_read_subd
Input subdevice index.
Definition: descriptor.h:71
int nb_subd
Subdevices count.
Definition: descriptor.h:69
int idx_write_subd
Output subdevice index.
Definition: descriptor.h:73
char board_name[A4L_NAMELEN]
Board name.
Definition: descriptor.h:67
void * sbdata
Data buffer pointer.
Definition: descriptor.h:81
int sbsize
Data buffer size.
Definition: descriptor.h:79
int fd
File descriptor.
Definition: descriptor.h:75
Analogy for Linux, device related features.