Xenomai
3.0-rc3
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
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
;
54
int
privdata_size
;
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 */
buffer.h
Analogy for Linux, buffer related features.
a4l_driver::driver_name
char * driver_name
driver name
Definition:
driver.h:52
context.h
Analogy for Linux, context structure / macros declarations.
a4l_driver::attach
int(* attach)(struct a4l_device *, struct a4l_link_desc *)
Attach procedure.
Definition:
driver.h:58
a4l_driver::board_name
char * board_name
Board name.
Definition:
driver.h:50
a4l_driver::flags
unsigned int flags
Type / status driver's flags.
Definition:
driver.h:48
rtdm_helpers.h
Analogy for Linux, Operation system facilities.
a4l_driver::list
struct list_head list
List stuff.
Definition:
driver.h:42
a4l_driver::privdata_size
int privdata_size
Size of the driver's private data.
Definition:
driver.h:54
a4l_driver::detach
int(* detach)(struct a4l_device *)
Detach procedure.
Definition:
driver.h:60
a4l_driver::owner
struct module * owner
Pointer to module containing the code.
Definition:
driver.h:46
a4l_driver
Structure containing driver declaration data.
Definition:
driver.h:39
include
cobalt
kernel
rtdm
analogy
driver.h
Generated by
1.8.8