Modules/USB - Added prototype mass storage driver
[tpg/acess2.git] / KernelLand / Modules / USB / MSC / scsi.h
1 /*
2  * Acess2 USB Stack Mass Storage Driver
3  * - By John Hodge (thePowersGang)
4  *
5  * scsi.h
6  * - "SCSI Transparent Command Set" handling code
7  */
8 #ifndef _MSC__SCSI_H_
9 #define _MSC__SCSI_H_
10
11 // NOTE: All commands are big-endian
12
13 struct sSCSI_Cmd_ReadCapacity16
14 {
15         Uint8   Op;     // 0x9E
16         Uint8   Svc;    // 0x10
17         Uint64  LBA;    //
18         Uint32  AllocationLength;
19         Uint8   Flags;
20         Uint8   Control;
21 } PACKED;
22
23 struct sSCSI_Ret_ReadCapacity16
24 {
25         Uint64  BlockCount;
26         Uint32  BlockSize;
27         Uint8   Flags;
28         Uint8   _resvd[32-13];
29 } PACKED;
30
31 struct sSCSI_Cmd_Read16
32 {
33         Uint8   Op;     // 0x88
34         Uint8   Flags;
35         Uint64  LBA;
36         Uint32  Length;
37         Uint8   GroupNumber;
38         Uint8   Control;
39 } PACKED;
40
41 #endif
42

UCC git Repository :: git.ucc.asn.au