summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/scsitools/stmp_scsi.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-09-05 23:14:57 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-09-05 23:16:06 +0200
commit3713bc4b7ce68ebedc9d938dbcf38c20c39e049a (patch)
tree1179a2c30435c813fd9b67f96b058e2d56410fd2 /utils/imxtools/scsitools/stmp_scsi.h
parent1ac762aebb142fe96a8f204614d1a2d66a05258d (diff)
downloadrockbox-3713bc4b7ce68ebedc9d938dbcf38c20c39e049a.tar.gz
rockbox-3713bc4b7ce68ebedc9d938dbcf38c20c39e049a.tar.bz2
rockbox-3713bc4b7ce68ebedc9d938dbcf38c20c39e049a.zip
imxtools/scsitools: add option to extract firmware from the device
Change-Id: Ib8cbf2f864a9375575cea0edbba48f740bf8f12e
Diffstat (limited to 'utils/imxtools/scsitools/stmp_scsi.h')
-rw-r--r--utils/imxtools/scsitools/stmp_scsi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/imxtools/scsitools/stmp_scsi.h b/utils/imxtools/scsitools/stmp_scsi.h
index 2da17baf47..167c9a042d 100644
--- a/utils/imxtools/scsitools/stmp_scsi.h
+++ b/utils/imxtools/scsitools/stmp_scsi.h
@@ -71,6 +71,13 @@ struct scsi_stmp_logical_table_entry_t
uint64_t size; /* big-endian */
} __attribute__((packed));
+#define SCSI_STMP_DRIVE_TYPE_USER 0
+#define SCSI_STMP_DRIVE_TYPE_SYSTEM 1
+#define SCSI_STMP_DRIVE_TYPE_JANUS 2
+
+#define SCSI_STMP_DRIVE_TAG_USER_STORAGE 0xa
+#define SCSI_STMP_DRIVE_TAG_SYSTEM_BOOT 0x50
+
struct scsi_stmp_logical_table_t
{
uint16_t count; /* big-endian */