aboutsummaryrefslogtreecommitdiffstats
path: root/src/usb-msc.h
blob: 71adb20797bacb01d4eceefc67393318a91295d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef __USB_MSC_H
#define __USB_MSC_H

// usb-msc.c
struct disk_op_s;
int usb_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize);
struct usb_interface_descriptor;
struct usb_pipe;
int usb_msc_init(struct usb_pipe *pipe
                 , struct usb_interface_descriptor *iface, int imax);
int process_usb_op(struct disk_op_s *op);


/****************************************************************
 * MSC flags
 ****************************************************************/

#define US_SC_ATAPI_8020   0x02
#define US_SC_ATAPI_8070   0x05
#define US_SC_SCSI         0x06

#define US_PR_BULK         0x50

#define USB_MSC_TYPE_DISK  0x00
#define USB_MSC_TYPE_CDROM 0x05

#endif // ush-msc.h