1 #ifndef US122L_H 2 #define US122L_H 3 4 5 struct us122l { 6 struct usb_device *dev; 7 int card_index; 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; 16 struct list_head midi_list; 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 28 #define USB_ID_US122MKII 0x8021 29 #define USB_ID_US144MKII 0x8020 30 31 #endif 32