blob: 71adb20797bacb01d4eceefc67393318a91295d9 [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;
Kevin O'Connor357bdfa2010-02-26 08:57:13 -05008struct usb_pipe;
9int usb_msc_init(struct usb_pipe *pipe
10 , struct usb_interface_descriptor *iface, int imax);
Kevin O'Connor7149fc82010-02-17 23:24:42 -050011int process_usb_op(struct disk_op_s *op);
Kevin O'Connor7149fc82010-02-17 23:24:42 -050012
13
14/****************************************************************
15 * MSC flags
16 ****************************************************************/
17
Kevin O'Connor9c000e62010-09-02 21:18:20 -040018#define US_SC_ATAPI_8020 0x02
19#define US_SC_ATAPI_8070 0x05
20#define US_SC_SCSI 0x06
Kevin O'Connor7149fc82010-02-17 23:24:42 -050021
Kevin O'Connor9c000e62010-09-02 21:18:20 -040022#define US_PR_BULK 0x50
Kevin O'Connor7149fc82010-02-17 23:24:42 -050023
24#define USB_MSC_TYPE_DISK 0x00
25#define USB_MSC_TYPE_CDROM 0x05
26
27#endif // ush-msc.h