Karsten Wiese | 030a07e | 2008-07-30 15:13:29 +0200 | [diff] [blame] | 1 | #ifndef US122L_H |
| 2 | #define US122L_H |
| 3 | |
| 4 | |
| 5 | struct us122l { |
Clemens Ladisch | a014bba | 2009-11-16 12:26:30 +0100 | [diff] [blame] | 6 | struct usb_device *dev; |
| 7 | int card_index; |
Karsten Wiese | 030a07e | 2008-07-30 15:13:29 +0200 | [diff] [blame] | 8 | 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 Ladisch | d82af9f | 2009-11-16 12:23:46 +0100 | [diff] [blame] | 16 | struct list_head midi_list; |
Karsten Wiese | 030a07e | 2008-07-30 15:13:29 +0200 | [diff] [blame] | 17 | |
| 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 Hansen | 2b6f6c0 | 2009-12-07 19:08:19 +0100 | [diff] [blame] | 28 | #define USB_ID_US122MKII 0x8021 |
| 29 | #define USB_ID_US144MKII 0x8020 |
Karsten Wiese | 030a07e | 2008-07-30 15:13:29 +0200 | [diff] [blame] | 30 | |
| 31 | #endif |