qdips.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef __QDINC_H__
  2. #define __QDINC_H__
  3. #define QDINC_RANGE 96
  4. #define QDINC_SIZE 254
  5. /* quickdev protocol defines */
  6. #define USB_UPLOAD_INIT 0
  7. #define USB_UPLOAD_ADDR 1
  8. #define USB_DOWNLOAD_INIT 2
  9. #define USB_DOWNLOAD_ADDR 3
  10. #define USB_CRC 4
  11. #define USB_CRC_ADDR 5
  12. #define USB_BULK_UPLOAD_INIT 6
  13. #define USB_BULK_UPLOAD_ADDR 7
  14. #define USB_BULK_UPLOAD_NEXT 8
  15. #define USB_BULK_UPLOAD_END 9
  16. #define USB_MODE_SNES 10
  17. #define USB_MODE_AVR 11
  18. #define USB_AVR_RESET 12
  19. #define USB_SET_LOADER 13
  20. /* -------------------------- Device Description --------------------------- */
  21. #define USB_CFG_VENDOR_ID 0xc0, 0x16
  22. /* USB vendor ID for the device, low byte first. If you have registered your
  23. * own Vendor ID, define it here. Otherwise you use one of obdev's free shared
  24. * VID/PID pairs. Be sure to read USBID-License.txt for rules!
  25. */
  26. #define USB_CFG_DEVICE_ID 0xdd, 0x05
  27. /* This is the ID of the product, low byte first. It is interpreted in the
  28. * scope of the vendor ID. If you have registered your own VID with usb.org
  29. * or if you have licensed a PID from somebody else, define it here. Otherwise
  30. * you use obdev's free shared VID/PID pair. Be sure to read the rules in
  31. * USBID-License.txt!
  32. */
  33. #define USB_CFG_DEVICE_VERSION 0x00, 0x01
  34. /* Version number of the device: Minor number first, then major number.
  35. */
  36. #define USB_CFG_VENDOR_NAME 'o', 'p', 't', 'i', 'x', 'x', '.', 'o', 'r', 'g'
  37. #define USB_CFG_VENDOR_NAME_LEN 10
  38. /* These two values define the vendor name returned by the USB device. The name
  39. * must be given as a list of characters under single quotes. The characters
  40. * are interpreted as Unicode (UTF-16) entities.
  41. * If you don't want a vendor name string, undefine these macros.
  42. * ALWAYS define a vendor name containing your Internet domain name if you use
  43. * obdev's free shared VID/PID pair. See the file USBID-License.txt for
  44. * details.
  45. */
  46. #define USB_CFG_DEVICE_NAME 'Q', 'U', 'I', 'C', 'K', 'D', 'E', 'V', '1', '6'
  47. #define USB_CFG_DEVICE_NAME_LEN 10
  48. /* end of quickdev protocol defines */
  49. #endif