blob: 4bad91f3753613f21d962dead07686f70b2ba6d7 [file] [log] [blame]
Kevin O'Connor7149fc82010-02-17 23:24:42 -05001#ifndef __USB_MSC_H
2#define __USB_MSC_H
3
4// usb-msc.c
5struct disk_op_s;
6int usb_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize);
7struct usb_interface_descriptor;
8int usb_msc_init(u32 endp, struct usb_interface_descriptor *iface, int imax);
9int process_usb_op(struct disk_op_s *op);
10struct drive_s;
11void describe_usb(struct drive_s *drive_g);
12
13
14/****************************************************************
15 * MSC flags
16 ****************************************************************/
17
18#define US_SC_SCSI 0x06
19
20#define US_PR_BULK 0x50
21
22#define USB_MSC_TYPE_DISK 0x00
23#define USB_MSC_TYPE_CDROM 0x05
24
25#endif // ush-msc.h