shithub: riscv

ref: 12fa017f3fc2687d3afb166fd30d9b134abb1da5
dir: /sys/src/cmd/scuzz/mo.words/

View raw version
/*
 * these scuzz modesense commands return the following for an hp worm drive:
 *
 * modesense
 *  Header
 *     00 5E 02 90 00 00 00 08
 *  Block 0
 *     00 13 47 70 00 00 08 00    (density 00 blocks 1263472 length 2048)
 *  Page 01 10
 *     80 05 00 00 00 00 05 00 00 00
 *  Page 02 14
 *     20 20 00 00 00 00 00 00 00 20 00 00 00 00
 *  Page 08 10
 *     06 00 00 40 00 01 00 01 00 40
 *  Page 0A 6
 *     00 00 00 00 00 00
 *  Page 0B 6
 *     00 00 02 03 00 00
 *  Page 20 10
 *     04 00 00 00 00 00 00 00 00 18
 *  Page 21 10
 *     00 00 01 00 02 00 00 00 00 00
 *  Page 00 0
 *
 * modesense6
 *  Header
 *     5B 02 90 08
 *  Block 0
 *     00 13 47 70 00 00 08 00    (density 00 blocks 1263472 length 2048)
 *  Page 01 10
 *     80 05 00 00 00 00 05 00 00 00
 *  Page 02 14
 *     20 20 00 00 00 00 00 00 00 20 00 00 00 00
 *  Page 08 10
 *     06 00 00 40 00 01 00 01 00 40
 *  Page 0A 6
 *     00 00 00 00 00 00
 *  Page 0B 6
 *     00 00 02 03 00 00
 *  Page 20 10
 *     04 00 00 00 00 00 00 00 00 18
 *  Page 21 10
 *     00 00 01 00 02 00 00 00 00 00
 *  Page 00 0
 *     Page 00 0
 *    ok 92
 *
 * the drive is:
 *
 * # cat ctl
 * inquiry HP      C1113J          1.099904323710    8XMO  
 * geometry 1263472 2048
 * part data 0 1263472
 */