blob: 12d749c3de1b855bde613f3bb25645f3ee93f263 [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 -050011
12
13/****************************************************************
14 * MSC flags
15 ****************************************************************/
16
Kevin O'Connor9c000e62010-09-02 21:18:20 -040017#define US_SC_ATAPI_8020 0x02
18#define US_SC_ATAPI_8070 0x05
19#define US_SC_SCSI 0x06
Kevin O'Connor7149fc82010-02-17 23:24:42 -050020
Kevin O'Connor9c000e62010-09-02 21:18:20 -040021#define US_PR_BULK 0x50
Kevin O'Connor7149fc82010-02-17 23:24:42 -050022
Kevin O'Connor7149fc82010-02-17 23:24:42 -050023#endif // ush-msc.h