Xenomai 3.3.2
Loading...
Searching...
No Matches
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
30struct seq_file;
31struct a4l_link_desc;
32struct a4l_device;
33
38/* Analogy driver descriptor */
39struct a4l_driver {
40
41 /* List stuff */
42 struct list_head list;
45 /* Visible description stuff */
46 struct module *owner;
48 unsigned int flags;
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
67int a4l_register_drv(struct a4l_driver * drv);
68int a4l_unregister_drv(struct a4l_driver * drv);
69int a4l_lct_drv(char *pin, struct a4l_driver ** pio);
70#ifdef CONFIG_PROC_FS
71int a4l_rdproc_drvs(struct seq_file *p, void *data);
72#endif /* CONFIG_PROC_FS */
73
74#endif /* !_COBALT_RTDM_ANALOGY_DRIVER_H */
Structure containing driver declaration data.
Definition driver.h:39
int privdata_size
Size of the driver's private data.
Definition driver.h:54
struct list_head list
List stuff.
Definition driver.h:42
unsigned int flags
Type / status driver's flags.
Definition driver.h:48
char * board_name
Board name.
Definition driver.h:50
int(* attach)(struct a4l_device *, struct a4l_link_desc *)
Attach procedure.
Definition driver.h:58
char * driver_name
driver name
Definition driver.h:52
struct module * owner
Pointer to module containing the code.
Definition driver.h:46
int(* detach)(struct a4l_device *)
Detach procedure.
Definition driver.h:60