NetBSD/dist/iscsi/include/scsi_cmd_codes.h
agc b95774e6d4 Implement SCSI commands:
0x1b Load/Unload Sequential
0x4d Log Sense
0x5e (unknown for just now)
0x35 Synchronise cache

as no ops for the present time - reported on current-users by Chavdar
Ivanov as being generated by the Solaris 10 initiator.
2006-02-24 20:47:30 +00:00

30 lines
591 B
C

/* taken from http://www.arkeia.com/resources/scsi_rsc.html */
#ifndef SCSI_CMD_CODES_H_
#define SCSI_CMD_CODES_H_
enum {
TEST_UNIT_READY = 0x00,
WRITE_6 = 0x06,
READ_6 = 0x08,
INQUIRY = 0x12,
MODE_SENSE_6 = 0x1a,
LOAD_UNLOAD = 0x1b,
READ_CAPACITY = 0x25,
READ_10 = 0x28,
WRITE_10 = 0x2a,
VERIFY = 0x2f,
SYNC_CACHE = 0x35,
LOG_SENSE = 0x4d,
MODE_SENSE_10 = 0x5a,
UNKNOWN_5E = 0x5e,
REPORT_LUNS = 0xa0
};
#define SIX_BYTE_COMMAND(op) ((op) <= 0x1f)
#define TEN_BYTE_COMMAND(op) ((op) > 0x1f && (op) <= 0x5f)
#define ISCSI_MODE_SENSE_LEN 11
#endif /* !SCSI_CMD_CODES_H_ */