4 #define IOCTL_Ezusb_GET_STRING_DESCRIPTOR 0x222044
5 #define IOCTL_Ezusb_ANCHOR_DOWNLOAD 0x22201c
6 #define IOCTL_Ezusb_VENDOR_REQUEST 0x222014
7 #define IOCTL_EZUSB_BULK_WRITE 0x222051
8 #define IOCTL_EZUSB_BULK_READ 0x22204e
9 #define IOCTL_Ezusb_RESETPIPE 0x222035
15 UCHAR requestTypeReservedBits;
45 typedef unsigned char u8;
46 typedef signed char s8;
47 typedef unsigned short int u16;
48 typedef signed short int s16;
49 typedef unsigned int u32;
50 typedef signed int s32;
53 #define CUSB_DWLSIZE 0x2000
55 s32 usb_open(s32 n,HANDLE *h);
56 s32 usb_close(HANDLE *h);
57 s32 usb_halt(HANDLE *h);
58 s32 usb_run(HANDLE *h);
59 s32 usb_dwnload(HANDLE *h,u8 *image,s32 len);
60 s32 usb_resetpipe(HANDLE *h,ULONG p);
61 s32 usb_bulk_write(HANDLE *h,s32 pipe,u8 *buf,s32 len);
62 s32 usb_bulk_read(HANDLE *h,s32 pipe,u8 *buf,s32 len);
63 s32 cusb_init(s32 n,HANDLE *h,u8 *fw,s8 *str1,s8 *str2);