summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/scsitools/stmp_scsi.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-01-15 19:42:20 +0000
committerAmaury Pouly <amaury.pouly@gmail.com>2013-01-15 19:42:20 +0000
commit8ed0d198c504f2c6984de7bcdc07163b89f87ef0 (patch)
tree6ea45dbe67f757985dd9edb0243afb2b55233287 /utils/imxtools/scsitools/stmp_scsi.h
parent4b1c48f5f51d15159b6cdc1658bb78bff0fcba5f (diff)
downloadrockbox-8ed0d198c504f2c6984de7bcdc07163b89f87ef0.tar.gz
rockbox-8ed0d198c504f2c6984de7bcdc07163b89f87ef0.tar.bz2
rockbox-8ed0d198c504f2c6984de7bcdc07163b89f87ef0.zip
imxtools/scsitools: add support for more commands
Change-Id: Iddff64502ba357dcd36903d31015b9ae2d00ae62
Diffstat (limited to 'utils/imxtools/scsitools/stmp_scsi.h')
-rw-r--r--utils/imxtools/scsitools/stmp_scsi.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/utils/imxtools/scsitools/stmp_scsi.h b/utils/imxtools/scsitools/stmp_scsi.h
index 14f651f6dd..0b7453e70b 100644
--- a/utils/imxtools/scsitools/stmp_scsi.h
+++ b/utils/imxtools/scsitools/stmp_scsi.h
@@ -39,4 +39,68 @@ struct scsi_stmp_protocol_version_t
uint8_t minor;
} __attribute__((packed));
+struct scsi_stmp_rom_rev_id_t
+{
+ uint16_t rev; /* big-endian */
+} __attribute__((packed));
+
+struct scsi_stmp_chip_major_rev_id_t
+{
+ uint16_t rev; /* big-endian */
+} __attribute__((packed));
+
+struct scsi_stmp_logical_table_entry_t
+{
+ uint8_t drive_no;
+ uint8_t type;
+ uint8_t tag;
+ uint64_t size; /* big-endian */
+} __attribute__((packed));
+
+struct scsi_stmp_logical_table_t
+{
+ uint16_t count; /* big-endian */
+} __attribute__((packed));
+
+#define SCSI_STMP_MEDIA_INFO_TYPE 6
+#define SCSI_STMP_MEDIA_INFO_VENDOR 12
+
+#define SCSI_STMP_MEDIA_TYPE_NAND 0
+#define SCSI_STMP_MEDIA_TYPE_SDMMC 1
+#define SCSI_STMP_MEDIA_TYPE_HDD 2
+#define SCSI_STMP_MEDIA_TYPE_RAM 3
+#define SCSI_STMP_MEDIA_TYPE_iNAND 4
+
+#define SCSI_STMP_MEDIA_VENDOR_SAMSUNG 0xEC
+#define SCSI_STMP_MEDIA_VENDOR_STMICRO 0x20
+#define SCSI_STMP_MEDIA_VENDOR_HYNIX 0xAD
+#define SCSI_STMP_MEDIA_VENDOR_MICRON 0x2C
+#define SCSI_STMP_MEDIA_VENDOR_TOSHIBA 0x98
+#define SCSI_STMP_MEDIA_VENDOR_RENESAS 0x07
+#define SCSI_STMP_MEDIA_VENDOR_SANDISK 0x45
+#define SCSI_STMP_MEDIA_VENDOR_INTEL 0x89
+
+struct scsi_stmp_logical_media_info_type_t
+{
+ uint8_t type;
+} __attribute__((packed));
+
+struct scsi_stmp_logical_media_info_manufacturer_t
+{
+ uint32_t type; /* big-endian */
+} __attribute__((packed));
+
+#define SCSI_STMP_DRIVE_INFO_SIZE 2
+#define SCSI_STMP_DRIVE_INFO_TYPE 5
+
+struct scsi_stmp_logical_drive_info_size_t
+{
+ uint64_t size; /* big-endian */
+} __attribute__((packed));
+
+struct scsi_stmp_logical_drive_info_type_t
+{
+ uint8_t type;
+} __attribute__((packed));
+
#endif /* __STMP_SCSI__ */