scsi_target.h (107178) | scsi_target.h (121184) |
---|---|
1/* 2 * SCSI Target Emulator 3 * 4 * Copyright (c) 2002 Nate Lawson. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/* 2 * SCSI Target Emulator 3 * 4 * Copyright (c) 2002 Nate Lawson. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/share/examples/scsi_target/scsi_target.h 107178 2002-11-22 22:55:51Z njl $ | 28 * $FreeBSD: head/share/examples/scsi_target/scsi_target.h 121184 2003-10-18 04:54:08Z simokawa $ |
29 */ 30 31#ifndef _SCSI_TARGET_H 32#define _SCSI_TARGET_H 33 34/* 35 * Maximum number of parallel commands to accept 36 * Set to 256 for Fibre Channel (SPI is 16) --- 9 unchanged lines hidden (view full) --- 46TAILQ_HEAD(io_queue, ccb_hdr); 47 48/* Offset into the private CCB area for storing our descriptor */ 49#define targ_descr periph_priv.entries[1].ptr 50 51/* Descriptor attached to each ATIO */ 52struct atio_descr { 53 off_t base_off; /* Base offset for ATIO */ | 29 */ 30 31#ifndef _SCSI_TARGET_H 32#define _SCSI_TARGET_H 33 34/* 35 * Maximum number of parallel commands to accept 36 * Set to 256 for Fibre Channel (SPI is 16) --- 9 unchanged lines hidden (view full) --- 46TAILQ_HEAD(io_queue, ccb_hdr); 47 48/* Offset into the private CCB area for storing our descriptor */ 49#define targ_descr periph_priv.entries[1].ptr 50 51/* Descriptor attached to each ATIO */ 52struct atio_descr { 53 off_t base_off; /* Base offset for ATIO */ |
54 size_t total_len; /* Total xfer len for this ATIO */ 55 size_t init_req; /* Transfer count requested to/from init */ 56 size_t init_ack; /* Data transferred ok to/from init */ 57 size_t targ_req; /* Transfer count requested to/from target */ 58 size_t targ_ack; /* Data transferred ok to/from target */ | 54 uint total_len; /* Total xfer len for this ATIO */ 55 uint init_req; /* Transfer count requested to/from init */ 56 uint init_ack; /* Data transferred ok to/from init */ 57 uint targ_req; /* Transfer count requested to/from target */ 58 uint targ_ack; /* Data transferred ok to/from target */ |
59 int flags; /* Flags for CTIOs */ 60 u_int8_t *cdb; /* Pointer to received CDB */ 61 /* List of completed AIO/CTIOs */ 62 struct io_queue cmplt_io; 63}; 64 65typedef enum { 66 ATIO_WORK, --- 51 unchanged lines hidden --- | 59 int flags; /* Flags for CTIOs */ 60 u_int8_t *cdb; /* Pointer to received CDB */ 61 /* List of completed AIO/CTIOs */ 62 struct io_queue cmplt_io; 63}; 64 65typedef enum { 66 ATIO_WORK, --- 51 unchanged lines hidden --- |