/**/ /***************************************************************************/ /** **/ /** © Copyright 2010, Hewlett-Packard Development Company, L.P. **/ /** **/ /** Confidential computer software. Valid license from HP and/or **/ /** its subsidiaries required for possession, use, or copying. **/ /** **/ /** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, **/ /** Computer Software Documentation, and Technical Data for Commercial **/ /** Items are licensed to the U.S. Government under vendor's standard **/ /** commercial license. **/ /** **/ /** Neither HP nor any of its subsidiaries shall be liable for technical **/ /** or editorial errors or omissions contained herein. The information **/ /** in this document is provided "as is" without warranty of any kind and **/ /** is subject to change without notice. The warranties for HP products **/ /** are set forth in the express limited warranty statements accompanying **/ /** such products. Nothing herein should be construed as constituting an **/ /** additional warranty. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:26:26 by OpenVMS SDL EV3-3 */ /* Source: 24-DEC-1997 09:36:32 $1$DGA7274:[LIB_H.SRC]SCQDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $SCQDEF ***/ #ifndef __SCQDEF_LOADED #define __SCQDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /*+ */ /* $SCQDEF - SCSI Connect reQuest desciptor block */ /* */ /* The SCQ is passed by a SCSI class driver to a SCSI port driver as the */ /* sole argument in to the CONNECT service call. The SCQ contains all */ /* CONNECT service parameters, both input and output. */ /* +-------------------+ */ /* Buffer | 10 or 12 | argument count */ /* +-------------------+ */ /* 1 +04 | disconnects | 1 = supported, 0 = unsupported */ /* +-------------------+ */ /* 2 +08 | synchronous | Port controlled. */ /* +-------------------+ */ /* 3 +0C | Transfer_period | m * 4 nanoseconds */ /* +-------------------+ */ /* 4 +10 | Reqack_offset | */ /* +-------------------+ */ /* 5 +14 | Busy_retry_count | 0 = no retries */ /* +-------------------+ */ /* 6 +18 | Arb_retry_count | 0 = no retries */ /* +-------------------+ */ /* 7 +1C | Sel_retry_count | 0 = no retries */ /* +-------------------+ */ /* 8 +20 | Cmd_retry_count | 0 = no retries */ /* +-------------------+ */ /* 9 +24 | Dma_timeout | 0 = Phase/Dma Timeout */ /* +-------------------+ */ /* 10 +28 | Disconnect timeout| 0 = Disconnected IO timeout */ /* +-------------------+ */ /* 11 +2C | Flags | SCSI Flags */ /* +-------------------+ */ /* 12 +30 | Max Queue Depth | Maximum queue depth */ /* +-------------------+ */ /* */ /* The Flags field is defined as follows: */ /* */ /* Bit Description */ /* --- ----------- */ /* 0 CMDQ - Device supports command queuing if set */ /* 1 FLUSHQ - Flush queue on error */ /* 2 FREEZEQ - Freeze queue on error */ /* 3 SCSI-2 - Device is SCSI-2 conformant */ /* 31-4 Reserved MBZ */ /*- */ #define SCQ$C_VERSION 1 /* Compatible Version Number. */ /* Inputs */ #define SCQ$K_CLSPOT_SP1 1 /* SP1$ protocol */ #define SCQ$K_CLSPOT_SP2 2 /* SP2$ protocol */ #ifdef __cplusplus /* Define structure prototypes */ struct _scsipath; #endif /* #ifdef __cplusplus */ #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __longword #else #pragma __nomember_alignment #endif typedef struct _scq { #pragma __nomember_alignment unsigned int scq$is_clspot_protocol; /* Class/port protocol */ __union { unsigned int scq$is_version_nos; /* Data struc. version #s */ __struct { unsigned char scq$ib_scdrp_vno; /* SCDRP version */ unsigned char scq$ib_spdt_vno; /* SPDT version */ unsigned char scq$ib_scdt_vno; /* SCDT version */ unsigned char scq$ib_stdt_vno; /* STDT version */ } scq$r_fill_1_; } scq$r_fill_0_; __union { struct _scsipath *scq$ps_scsipath; /* Pointer to path info */ __union { unsigned int scq$is_scsi_ids; /* SCSI port/bus IDs */ __struct { unsigned short int scq$iw_scsi_port_id; /* SCSI port ID */ unsigned short int scq$iw_scsi_bus_id; /* SCSI bus ID */ } scq$r_fill_3_; } scq$r_fill_2_; } scq$r_scsi_id_overlay; __union { unsigned int scq$is_scsi_lun; /* SCSI LUN (longword) */ __struct { short int scq$w_lun_reserved; unsigned short int scq$iw_scsi_lun; /* SCSI_LUN (word) */ } scq$r_fill_5_; } scq$r_fill_4_; int (*scq$ps_sel_callback)(); /* Target mode callback rout. */ unsigned int scq$is_sel_context; /* Target mode context data */ int (*scq$ps_aen_callback)(); /* AEN callback routine */ unsigned int scq$is_aen_context; /* AEN context data */ int (*scq$ps_port_state_callback)(); /* Port State Callback Routine */ unsigned int scq$is_port_state_context; /* Port State Callback Context */ /* Outputs */ void *scq$ps_spdt; /* Port SPDT address */ void *scq$ps_scdt; /* SCDT address */ void *scq$ps_stdt; /* STDT address */ unsigned int scq$is_max_bcnt; /* Maximum BCNT supported */ unsigned int scq$is_port_serv_flags; /* Port service flags */ } SCQ; #if !defined(__VAXC) #define scq$is_version_nos scq$r_fill_0_.scq$is_version_nos #define scq$ib_scdrp_vno scq$r_fill_0_.scq$r_fill_1_.scq$ib_scdrp_vno #define scq$ib_spdt_vno scq$r_fill_0_.scq$r_fill_1_.scq$ib_spdt_vno #define scq$ib_scdt_vno scq$r_fill_0_.scq$r_fill_1_.scq$ib_scdt_vno #define scq$ib_stdt_vno scq$r_fill_0_.scq$r_fill_1_.scq$ib_stdt_vno #define scq$ps_scsipath scq$r_scsi_id_overlay.scq$ps_scsipath #define scq$is_scsi_ids scq$r_scsi_id_overlay.scq$r_fill_2_.scq$is_scsi_ids #define scq$iw_scsi_port_id scq$r_scsi_id_overlay.scq$r_fill_2_.scq$r_fill_3_.scq$iw_scsi_port_id #define scq$iw_scsi_bus_id scq$r_scsi_id_overlay.scq$r_fill_2_.scq$r_fill_3_.scq$iw_scsi_bus_id #define scq$is_scsi_lun scq$r_fill_4_.scq$is_scsi_lun #define scq$iw_scsi_lun scq$r_fill_4_.scq$r_fill_5_.scq$iw_scsi_lun #endif /* #if !defined(__VAXC) */ #define SCQ$K_LENGTH 60 /* Structure length */ #define SCQ$S_SCQDEF 60 #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __SCQDEF_LOADED */