Xenomai  3.1
driver.h
Go to the documentation of this file.
1 
22 #ifndef _COBALT_RTDM_ANALOGY_DRIVER_H
23 #define _COBALT_RTDM_ANALOGY_DRIVER_H
24 
25 #include <linux/list.h>
26 #include <rtdm/analogy/rtdm_helpers.h>
27 #include <rtdm/analogy/context.h>
28 #include <rtdm/analogy/buffer.h>
29 
30 struct seq_file;
31 struct a4l_link_desc;
32 struct a4l_device;
33 
38 /* Analogy driver descriptor */
39 struct a4l_driver {
40 
41  /* List stuff */
42  struct list_head list;
45  /* Visible description stuff */
46  struct module *owner;
48  unsigned int flags;
50  char *board_name;
52  char *driver_name;
57  /* Init/destroy procedures */
58  int (*attach) (struct a4l_device *, struct a4l_link_desc *);
60  int (*detach) (struct a4l_device *);
63 };
64 
65 /* Driver list related functions */
66 
67 int a4l_register_drv(struct a4l_driver * drv);
68 int a4l_unregister_drv(struct a4l_driver * drv);
69 int a4l_lct_drv(char *pin, struct a4l_driver ** pio);
70 #ifdef CONFIG_PROC_FS
71 int a4l_rdproc_drvs(struct seq_file *p, void *data);
72 #endif /* CONFIG_PROC_FS */
73 
74 #endif /* !_COBALT_RTDM_ANALOGY_DRIVER_H */
char * driver_name
driver name
Definition: driver.h:52
char * board_name
Board name.
Definition: driver.h:50
unsigned int flags
Type / status driver&#39;s flags.
Definition: driver.h:48
struct list_head list
List stuff.
Definition: driver.h:42
int privdata_size
Size of the driver&#39;s private data.
Definition: driver.h:54
int(* attach)(struct a4l_device *, struct a4l_link_desc *)
Attach procedure.
Definition: driver.h:58
struct module * owner
Pointer to module containing the code.
Definition: driver.h:46
Structure containing driver declaration data.
Definition: driver.h:39
int(* detach)(struct a4l_device *)
Detach procedure.
Definition: driver.h:60