us122l.h 540 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef US122L_H
  2. #define US122L_H
  3. struct us122l {
  4. struct usb_device *dev;
  5. int card_index;
  6. int stride;
  7. struct usb_stream_kernel sk;
  8. struct mutex mutex;
  9. struct file *first;
  10. unsigned second_periods_polled;
  11. struct file *master;
  12. struct file *slave;
  13. struct list_head midi_list;
  14. atomic_t mmap_count;
  15. };
  16. #define US122L(c) ((struct us122l *)(c)->private_data)
  17. #define NAME_ALLCAPS "US-122L"
  18. #define USB_ID_US122L 0x800E
  19. #define USB_ID_US144 0x800F
  20. #define USB_ID_US122MKII 0x8021
  21. #define USB_ID_US144MKII 0x8020
  22. #endif