1 #ifndef __LUNAIX_SCSI_H
2 #define __LUNAIX_SCSI_H
6 #define SCSI_FLIP(val) \
7 ((((val)&0x000000ff) << 24) | (((val)&0x0000ff00) << 8) | \
8 (((val)&0x00ff0000) >> 8) | (((val)&0xff000000) >> 24))
10 #define SCSI_READ_CAPACITY_16 0x9e
11 #define SCSI_READ_CAPACITY_10 0x25
12 #define SCSI_READ_BLOCKS_16 0x88
13 #define SCSI_READ_BLOCKS_12 0xa8
14 #define SCSI_WRITE_BLOCKS_16 0x8a
15 #define SCSI_WRITE_BLOCKS_12 0xaa
25 } __attribute__((packed));
36 } __attribute__((packed));
39 scsi_create_packet12(struct scsi_cdb12* cdb,
45 scsi_create_packet16(struct scsi_cdb16* cdb,
51 #endif /* __LUNAIX_ATAPI_H */