summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/scsitools/stmp_scsi.h
AgeCommit message (Collapse)AuthorFilesLines
2017-01-07imxtools: various fixes for WindowsAmaury Pouly1-13/+28
Don't use colors since the terminal doesn't support it. Also packing is broken on MinGW so use #pragma pack when compiling for windows, this is also supported by MSCV. Change-Id: I635649d52ed5f2e0af46cb9ca2ec325955b2ddb2
2017-01-07imxtools: move firmware read/write to libraryAmaury Pouly1-0/+8
Split the ugly firmware read/write into a API function and a much simplified code. Also the code can now report progress. Change-Id: I3f998eaf0c067c6da42b1d2dd9c5a5bf43c6915d
2017-01-07imxtools/scsitools: rework stmp scsi APIAmaury Pouly1-2/+167
Sanitize the whole library by hiding most of the horrible details of the implementation. This means that all logical/drive/table attributes are exported in structures that are internally filled by higher-level API functions. This makes the code much more readable and prepares for a split between scsitool and the stmp scsi library. Change-Id: Id85d450b25cf99cd7c0896c6fc35bcd00babe9e1
2017-01-07imxtools/scsitools: use new SCSI libraryAmaury Pouly1-12/+31
The function names and prototypes are also normalized so make subsequent reworks easier. Change-Id: Ifa5d64aa144b11f8c087517ddc904744e3037361
2013-10-10imxtools/scsitools: document some of the SCSI vendor commandsAmaury Pouly1-10/+48
Change-Id: I534fc467aad960c61b54d202096823d5c2c9a5e9
2013-09-05imxtools/scsitools: add option to extract firmware from the deviceAmaury Pouly1-0/+7
Change-Id: Ib8cbf2f864a9375575cea0edbba48f740bf8f12e
2013-07-03imx233: document some more stmp vendor scsi commandAmaury Pouly1-5/+35
Change-Id: Ie03c0c8288b4bd9c0b4beedae363cff6caf3c5cd
2013-01-15imxtools/scsitools: add support for more commandsAmaury Pouly1-0/+64
Change-Id: Iddff64502ba357dcd36903d31015b9ae2d00ae62
2012-12-11imxtools: introduce the new scsitoolAmaury Pouly1-0/+42
It appears that all devices based on the Sigmaltel SDK support a common vendor specific SCSI interface when in UMS mode. This applies to the STMP36xx and the STMP37xx. This interface supports many operations: - get device info - get device paritionning - get janus/drm info - read/write/allocate/erase any partition - reset (chip or to updater and/or recovery) This includes the ability to do a firmware upgrade by rewriting the firmware partition. The tool currently does mostly nothing but will be enhanced depending on the reverse engineering efforts and the use of it. It has been tested on the Fuze+ and the Zen X-Fi2/3. Change-Id: Ibd4b2ad364c03ada4f9001573ef4cc87cfb041d1