scsi_da.h (255307) | scsi_da.h (267537) |
---|---|
1/* 2 * Structures and definitions for SCSI commands to Direct Access Devices 3 */ 4 5/*- 6 * Some lines of this file come from a file of the name "scsi.h" 7 * distributed by OSF as part of mach2.5, 8 * so the following disclaimer has been kept. --- 32 unchanged lines hidden (view full) --- 41 * organisations permission to use or modify this software. 42 * 43 * TFS supplies this software to be publicly redistributed 44 * on the understanding that TFS is not responsible for the correct 45 * functioning of this software in any circumstances. 46 * 47 * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 48 * | 1/* 2 * Structures and definitions for SCSI commands to Direct Access Devices 3 */ 4 5/*- 6 * Some lines of this file come from a file of the name "scsi.h" 7 * distributed by OSF as part of mach2.5, 8 * so the following disclaimer has been kept. --- 32 unchanged lines hidden (view full) --- 41 * organisations permission to use or modify this software. 42 * 43 * TFS supplies this software to be publicly redistributed 44 * on the understanding that TFS is not responsible for the correct 45 * functioning of this software in any circumstances. 46 * 47 * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 48 * |
49 * $FreeBSD: head/sys/cam/scsi/scsi_da.h 255307 2013-09-06 15:19:57Z bryanv $ | 49 * $FreeBSD: head/sys/cam/scsi/scsi_da.h 267537 2014-06-16 11:00:14Z mav $ |
50 */ 51 52#ifndef _SCSI_SCSI_DA_H 53#define _SCSI_SCSI_DA_H 1 54 55#include <sys/cdefs.h> 56 57struct scsi_rezero_unit --- 159 unchanged lines hidden (view full) --- 217 uint8_t opcode; /* READ_FORMAT_CAPACITIES */ 218 uint8_t byte2; 219#define SRFC_LUN_MASK 0xE0 220 uint8_t reserved0[5]; 221 uint8_t alloc_length[2]; 222 uint8_t reserved1[3]; 223}; 224 | 50 */ 51 52#ifndef _SCSI_SCSI_DA_H 53#define _SCSI_SCSI_DA_H 1 54 55#include <sys/cdefs.h> 56 57struct scsi_rezero_unit --- 159 unchanged lines hidden (view full) --- 217 uint8_t opcode; /* READ_FORMAT_CAPACITIES */ 218 uint8_t byte2; 219#define SRFC_LUN_MASK 0xE0 220 uint8_t reserved0[5]; 221 uint8_t alloc_length[2]; 222 uint8_t reserved1[3]; 223}; 224 |
225struct scsi_verify | 225struct scsi_verify_10 |
226{ | 226{ |
227 uint8_t opcode; /* VERIFY */ | 227 uint8_t opcode; /* VERIFY(10) */ |
228 uint8_t byte2; 229#define SVFY_LUN_MASK 0xE0 230#define SVFY_RELADR 0x01 | 228 uint8_t byte2; 229#define SVFY_LUN_MASK 0xE0 230#define SVFY_RELADR 0x01 |
231#define SVFY_BYTECHK 0x02 | 231#define SVFY_BYTCHK 0x02 |
232#define SVFY_DPO 0x10 233 uint8_t addr[4]; /* LBA to begin verification at */ | 232#define SVFY_DPO 0x10 233 uint8_t addr[4]; /* LBA to begin verification at */ |
234 uint8_t reserved0[1]; 235 uint8_t len[2]; /* number of blocks to verify */ 236 uint8_t reserved1[3]; | 234 uint8_t group; 235 uint8_t length[2]; /* number of blocks to verify */ 236 uint8_t control; |
237}; 238 | 237}; 238 |
239struct scsi_verify_12 240{ 241 uint8_t opcode; /* VERIFY(12) */ 242 uint8_t byte2; 243 uint8_t addr[4]; /* LBA to begin verification at */ 244 uint8_t length[4]; /* number of blocks to verify */ 245 uint8_t group; 246 uint8_t control; 247}; 248 249struct scsi_verify_16 250{ 251 uint8_t opcode; /* VERIFY(16) */ 252 uint8_t byte2; 253 uint8_t addr[8]; /* LBA to begin verification at */ 254 uint8_t length[4]; /* number of blocks to verify */ 255 uint8_t group; 256 uint8_t control; 257}; 258 259struct scsi_compare_and_write 260{ 261 uint8_t opcode; /* COMPARE AND WRITE */ 262 uint8_t byte2; 263 uint8_t addr[8]; /* LBA to begin verification at */ 264 uint8_t reserved[3]; 265 uint8_t length; /* number of blocks */ 266 uint8_t group; 267 uint8_t control; 268}; 269 |
|
239struct scsi_write_and_verify 240{ 241 uint8_t opcode; /* WRITE_AND_VERIFY */ 242 uint8_t byte2; 243#define SWVY_LUN_MASK 0xE0 244#define SWVY_RELADR 0x01 245#define SWVY_BYTECHK 0x02 246#define SWVY_DPO 0x10 --- 300 unchanged lines hidden --- | 270struct scsi_write_and_verify 271{ 272 uint8_t opcode; /* WRITE_AND_VERIFY */ 273 uint8_t byte2; 274#define SWVY_LUN_MASK 0xE0 275#define SWVY_RELADR 0x01 276#define SWVY_BYTECHK 0x02 277#define SWVY_DPO 0x10 --- 300 unchanged lines hidden --- |