scsi_target.h (124307) | scsi_target.h (162704) |
---|---|
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 124307 2004-01-09 19:26:30Z njl $ | 28 * $FreeBSD: head/share/examples/scsi_target/scsi_target.h 162704 2006-09-27 15:38:13Z mjacob $ |
29 */ 30 31#ifndef _SCSI_TARGET_H 32#define _SCSI_TARGET_H 33 34/* 35 * Maximum number of parallel commands to accept, | 29 */ 30 31#ifndef _SCSI_TARGET_H 32#define _SCSI_TARGET_H 33 34/* 35 * Maximum number of parallel commands to accept, |
36 * 256 for Fibre Channel (SPI is 16). | 36 * 1024 for Fibre Channel (SPI is 16). |
37 */ | 37 */ |
38#define MAX_INITIATORS 256 | 38#define MAX_INITIATORS 1024 |
39#define SECTOR_SIZE 512 40#define MAX_EVENTS (MAX_INITIATORS + 5) 41 /* kqueue for AIO, signals */ 42 43/* Additional SCSI 3 defines for inquiry response */ 44#define SID_Addr16 0x0100 45 46TAILQ_HEAD(io_queue, ccb_hdr); --- 62 unchanged lines hidden (view full) --- 109 u_int8_t flags, 110 u_int8_t asc, u_int8_t ascq); 111extern void tcmd_ua(u_int init_id, ua_types new_ua); 112extern int work_atio(struct ccb_accept_tio *atio); 113extern void send_ccb(union ccb *ccb, int priority); 114extern void free_ccb(union ccb *ccb); 115static __inline u_int min(u_int a, u_int b) { return (a < b ? a : b); } 116 | 39#define SECTOR_SIZE 512 40#define MAX_EVENTS (MAX_INITIATORS + 5) 41 /* kqueue for AIO, signals */ 42 43/* Additional SCSI 3 defines for inquiry response */ 44#define SID_Addr16 0x0100 45 46TAILQ_HEAD(io_queue, ccb_hdr); --- 62 unchanged lines hidden (view full) --- 109 u_int8_t flags, 110 u_int8_t asc, u_int8_t ascq); 111extern void tcmd_ua(u_int init_id, ua_types new_ua); 112extern int work_atio(struct ccb_accept_tio *atio); 113extern void send_ccb(union ccb *ccb, int priority); 114extern void free_ccb(union ccb *ccb); 115static __inline u_int min(u_int a, u_int b) { return (a < b ? a : b); } 116 |
117/* Global Data */ 118extern int notaio; 119 120/* 121 * Compat Defines 122 */ 123#if __FreeBSD_version >= 500000 124#define OFF_FMT "%ju" 125#else 126#define OFF_FMT "%llu" 127#endif 128 |
|
117#endif /* _SCSI_TARGET_H */ | 129#endif /* _SCSI_TARGET_H */ |