blob: f263b3f96c86e508d9db861a4ffd39408ed798fd [file] [log] [blame]
Karsten Wiese030a07e2008-07-30 15:13:29 +02001#ifndef US122L_H
2#define US122L_H
3
4
5struct us122l {
Clemens Ladischa014bba2009-11-16 12:26:30 +01006 struct usb_device *dev;
7 int card_index;
Karsten Wiese030a07e2008-07-30 15:13:29 +02008 int stride;
9 struct usb_stream_kernel sk;
10
11 struct mutex mutex;
12 struct file *first;
13 unsigned second_periods_polled;
14 struct file *master;
15 struct file *slave;
Clemens Ladischd82af9f2009-11-16 12:23:46 +010016 struct list_head midi_list;
Karsten Wiese030a07e2008-07-30 15:13:29 +020017
18 atomic_t mmap_count;
19};
20
21
22#define US122L(c) ((struct us122l *)(c)->private_data)
23
24#define NAME_ALLCAPS "US-122L"
25
26#define USB_ID_US122L 0x800E
27#define USB_ID_US144 0x800F
Tobias Hansen2b6f6c02009-12-07 19:08:19 +010028#define USB_ID_US122MKII 0x8021
29#define USB_ID_US144MKII 0x8020
Karsten Wiese030a07e2008-07-30 15:13:29 +020030
31#endif