summaryrefslogtreecommitdiff
path: root/stmhal/usbdev/class/inc
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-03 18:36:17 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-08 12:29:10 +1000
commit22cedef95f671a4f769954ab7d0b30823bf446e8 (patch)
tree76d7f4a03c68324c1b0ecebf219f37be4683e1c7 /stmhal/usbdev/class/inc
parente1cda0038718013248b86296d746deeaa0bf9a9e (diff)
stmhal/usbdev: For MSC implement SCSI SYNCHRONIZE_CACHE command.
Currently just a dummy command that returns "success", but it's needed for some O/S's to correctly talk with the SCSI layer.
Diffstat (limited to 'stmhal/usbdev/class/inc')
-rw-r--r--stmhal/usbdev/class/inc/usbd_msc_scsi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stmhal/usbdev/class/inc/usbd_msc_scsi.h b/stmhal/usbdev/class/inc/usbd_msc_scsi.h
index dea247bca..34f059ee5 100644
--- a/stmhal/usbdev/class/inc/usbd_msc_scsi.h
+++ b/stmhal/usbdev/class/inc/usbd_msc_scsi.h
@@ -55,6 +55,8 @@
#define SCSI_MODE_SENSE6 0x1A
#define SCSI_MODE_SENSE10 0x5A
#define SCSI_ALLOW_MEDIUM_REMOVAL 0x1E
+#define SCSI_SYNCHRONIZE_CACHE10 0x35
+#define SCSI_SYNCHRONIZE_CACHE16 0x91
#define SCSI_READ6 0x08
#define SCSI_READ10 0x28
#define SCSI_READ12 0xA8