21 #ifndef __ANALOGY_8255_H__
22 #define __ANALOGY_8255_H__
26 typedef int (*a4l_8255_cb_t)(int, int, int,
unsigned long);
28 typedef struct subd_8255_struct {
30 a4l_8255_cb_t cb_func;
36 #if (defined(CONFIG_XENO_DRIVERS_ANALOGY_8255) || \
37 defined(CONFIG_XENO_DRIVERS_ANALOGY_8255_MODULE))
44 #define CR_C_LO_IO 0x01
46 #define CR_B_MODE 0x04
47 #define CR_C_HI_IO 0x08
49 #define CR_A_MODE(a) ((a)<<5)
53 void a4l_subdev_8255_interrupt(
a4l_subd_t *subd);
57 #define a4l_subdev_8255_init(x) do { } while(0)
58 #define a4l_subdev_8255_interrupt(x) do { } while(0)
Analogy for Linux, driver facilities.
Structure describing the subdevice.
Definition: subdevice.h:180