summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include/usb/usbmsc.h
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/include/usb/usbmsc.h')
-rw-r--r--payloads/libpayload/include/usb/usbmsc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/payloads/libpayload/include/usb/usbmsc.h b/payloads/libpayload/include/usb/usbmsc.h
index 5c3dadc180..8930156619 100644
--- a/payloads/libpayload/include/usb/usbmsc.h
+++ b/payloads/libpayload/include/usb/usbmsc.h
@@ -36,9 +36,17 @@ typedef struct {
endpoint_t *bulk_in;
endpoint_t *bulk_out;
int usbdisk_created;
+ int ready;
void *data; /* For use by consumers of libpayload. */
} usbmsc_inst_t;
+/* Possible values for ready field. */
+enum {
+ USB_MSC_DETACHED = -1, /* Disk detached or out to lunch. */
+ USB_MSC_NOT_READY = 0, /* Disk not ready yet -- empty card reader */
+ USB_MSC_READY = 1, /* Disk ready to communicate. */
+};
+
#define MSC_INST(dev) ((usbmsc_inst_t*)(dev)->data)
typedef enum { cbw_direction_data_in = 0x80, cbw_direction_data_out = 0