us122l.h 602 B

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