mirror of
https://github.com/schoebel/mars
synced 2024-12-13 10:15:34 +00:00
34 lines
582 B
C
34 lines
582 B
C
// (c) 2010 Thomas Schoebel-Theuer / 1&1 Internet AG
|
|
#define WITH_THREAD 16
|
|
|
|
struct device_sio_brick {
|
|
MARS_BRICK(device_sio);
|
|
};
|
|
|
|
struct device_sio_input {
|
|
MARS_INPUT(device_sio);
|
|
};
|
|
|
|
#ifdef WITH_THREAD
|
|
struct sio_threadinfo {
|
|
struct device_sio_output *output;
|
|
struct list_head mio_list;
|
|
struct task_struct *thread;
|
|
wait_queue_head_t event;
|
|
spinlock_t lock;
|
|
};
|
|
|
|
#endif
|
|
|
|
struct device_sio_output {
|
|
MARS_OUTPUT(device_sio);
|
|
struct file *filp;
|
|
#ifdef WITH_THREAD
|
|
struct sio_threadinfo tinfo[WITH_THREAD+1];
|
|
spinlock_t g_lock;
|
|
int index;
|
|
#endif
|
|
};
|
|
|
|
MARS_TYPES(device_sio);
|