require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_ISP_TARGET_H)) {
    eval 'sub _ISP_TARGET_H () {1;}' unless defined(&_ISP_TARGET_H);
    eval 'sub QLTM_SENSELEN () {18;}' unless defined(&QLTM_SENSELEN);
    eval 'sub QLTM_SVALID () {0x80;}' unless defined(&QLTM_SVALID);
    eval 'sub LUN_TQAE () {0x2;}' unless defined(&LUN_TQAE);
    eval 'sub LUN_DSSM () {0x1000000;}' unless defined(&LUN_DSSM);
    eval 'sub LUN_DISAD () {0x2000000;}' unless defined(&LUN_DISAD);
    eval 'sub LUN_DM () {0x40000000;}' unless defined(&LUN_DM);
    eval 'sub LUN_CCINCR () {0x1;}' unless defined(&LUN_CCINCR);
    eval 'sub LUN_CCDECR () {0x2;}' unless defined(&LUN_CCDECR);
    eval 'sub LUN_ININCR () {0x40;}' unless defined(&LUN_ININCR);
    eval 'sub LUN_INDECR () {0x80;}' unless defined(&LUN_INDECR);
    eval 'sub LUN_OK () {0x1;}' unless defined(&LUN_OK);
    eval 'sub LUN_ERR () {0x4;}' unless defined(&LUN_ERR);
    eval 'sub LUN_INVAL () {0x6;}' unless defined(&LUN_INVAL);
    eval 'sub LUN_NOCAP () {0x16;}' unless defined(&LUN_NOCAP);
    eval 'sub LUN_ENABLED () {0x3e;}' unless defined(&LUN_ENABLED);
    eval 'sub IN_MSGLEN () {8;}' unless defined(&IN_MSGLEN);
    eval 'sub IN_RSVDLEN () {8;}' unless defined(&IN_RSVDLEN);
    eval 'sub IN_REJECT () {0xd;}' unless defined(&IN_REJECT);
    eval 'sub IN_RESET () {0xe;}' unless defined(&IN_RESET);
    eval 'sub IN_NO_RCAP () {0x16;}' unless defined(&IN_NO_RCAP);
    eval 'sub IN_IDE_RECEIVED () {0x33;}' unless defined(&IN_IDE_RECEIVED);
    eval 'sub IN_RSRC_UNAVAIL () {0x34;}' unless defined(&IN_RSRC_UNAVAIL);
    eval 'sub IN_MSG_RECEIVED () {0x36;}' unless defined(&IN_MSG_RECEIVED);
    eval 'sub IN_ABORT_TASK () {0x20;}' unless defined(&IN_ABORT_TASK);
    eval 'sub IN_PORT_LOGOUT () {0x29;}' unless defined(&IN_PORT_LOGOUT);
    eval 'sub IN_PORT_CHANGED () {0x2a;}' unless defined(&IN_PORT_CHANGED);
    eval 'sub IN_GLOBAL_LOGO () {0x2e;}' unless defined(&IN_GLOBAL_LOGO);
    eval 'sub IN_NO_NEXUS () {0x3b;}' unless defined(&IN_NO_NEXUS);
    eval 'sub TASK_FLAGS_RESERVED_MASK () {(0xe700);}' unless defined(&TASK_FLAGS_RESERVED_MASK);
    eval 'sub TASK_FLAGS_CLEAR_ACA () {(1<<14);}' unless defined(&TASK_FLAGS_CLEAR_ACA);
    eval 'sub TASK_FLAGS_TARGET_RESET () {(1<<13);}' unless defined(&TASK_FLAGS_TARGET_RESET);
    eval 'sub TASK_FLAGS_LUN_RESET () {(1<<12);}' unless defined(&TASK_FLAGS_LUN_RESET);
    eval 'sub TASK_FLAGS_CLEAR_TASK_SET () {(1<<10);}' unless defined(&TASK_FLAGS_CLEAR_TASK_SET);
    eval 'sub TASK_FLAGS_ABORT_TASK_SET () {(1<<9);}' unless defined(&TASK_FLAGS_ABORT_TASK_SET);
    eval 'sub IN24XX_FLAG_PUREX_IOCB () {0x1;}' unless defined(&IN24XX_FLAG_PUREX_IOCB);
    eval 'sub IN24XX_FLAG_GLOBAL_LOGOUT () {0x2;}' unless defined(&IN24XX_FLAG_GLOBAL_LOGOUT);
    eval 'sub IN24XX_LIP_RESET () {0xe;}' unless defined(&IN24XX_LIP_RESET);
    eval 'sub IN24XX_LINK_RESET () {0xf;}' unless defined(&IN24XX_LINK_RESET);
    eval 'sub IN24XX_PORT_LOGOUT () {0x29;}' unless defined(&IN24XX_PORT_LOGOUT);
    eval 'sub IN24XX_PORT_CHANGED () {0x2a;}' unless defined(&IN24XX_PORT_CHANGED);
    eval 'sub IN24XX_LINK_FAILED () {0x2e;}' unless defined(&IN24XX_LINK_FAILED);
    eval 'sub IN24XX_SRR_RCVD () {0x45;}' unless defined(&IN24XX_SRR_RCVD);
    eval 'sub IN24XX_ELS_RCVD () {0x46;}' unless defined(&IN24XX_ELS_RCVD);
    eval 'sub NA_RSVDLEN () {22;}' unless defined(&NA_RSVDLEN);
    eval 'sub NA_RST_CLRD () {0x80;}' unless defined(&NA_RST_CLRD);
    eval 'sub NA_OK () {0x1;}' unless defined(&NA_OK);
    eval 'sub NA_INVALID () {0x6;}' unless defined(&NA_INVALID);
    eval 'sub NA2_RSVDLEN () {21;}' unless defined(&NA2_RSVDLEN);
    eval 'sub NAFC_RCOUNT () {0x80;}' unless defined(&NAFC_RCOUNT);
    eval 'sub NAFC_RST_CLRD () {0x20;}' unless defined(&NAFC_RST_CLRD);
    eval 'sub NAFC_TVALID () {0x10;}' unless defined(&NAFC_TVALID);
    eval 'sub ATIO_CDBLEN () {26;}' unless defined(&ATIO_CDBLEN);
    eval 'sub AT_NODISC () {0x8000;}' unless defined(&AT_NODISC);
    eval 'sub AT_TQAE () {0x2;}' unless defined(&AT_TQAE);
    eval 'sub AT_PATH_INVALID () {0x7;}' unless defined(&AT_PATH_INVALID);
    eval 'sub AT_RESET () {0xe;}' unless defined(&AT_RESET);
    eval 'sub AT_PHASE_ERROR () {0x14;}' unless defined(&AT_PHASE_ERROR);
    eval 'sub AT_NOCAP () {0x16;}' unless defined(&AT_NOCAP);
    eval 'sub AT_BDR_MSG () {0x17;}' unless defined(&AT_BDR_MSG);
    eval 'sub AT_CDB () {0x3d;}' unless defined(&AT_CDB);
    eval 'sub AT_MAKE_TAGID {
        my($tid, $bus, $inst, $aep) = @_;
	    eval q($tid =  ($aep->{at_handle});  &if ( ($aep->{at_flags}) &  &AT_TQAE) { $tid |= ( ($aep->{at_tag_val}) << 16); $tid |= (1<< 24); } $tid |= ($bus << 25); $tid |= ($inst << 26));
    }' unless defined(&AT_MAKE_TAGID);
    eval 'sub CT_MAKE_TAGID {
        my($tid, $bus, $inst, $ct) = @_;
	    eval q($tid =  ($ct->{ct_fwhandle});  &if ( ($ct->{ct_flags}) &  &CT_TQAE) { $tid |= ( ($ct->{ct_tag_val}) << 16); $tid |= (1<< 24); } $tid |= (($bus & 0x1) << 25); $tid |= ($inst << 26));
    }' unless defined(&CT_MAKE_TAGID);
    eval 'sub AT_HAS_TAG {
        my($val) = @_;
	    eval q((($val) & (1<< 24)));
    }' unless defined(&AT_HAS_TAG);
    eval 'sub AT_GET_TAG {
        my($val) = @_;
	    eval q(((($val) >> 16) & 0xff));
    }' unless defined(&AT_GET_TAG);
    eval 'sub AT_GET_INST {
        my($val) = @_;
	    eval q(((($val) >> 26) & 0x3f));
    }' unless defined(&AT_GET_INST);
    eval 'sub AT_GET_BUS {
        my($val) = @_;
	    eval q(((($val) >> 25) & 0x1));
    }' unless defined(&AT_GET_BUS);
    eval 'sub AT_GET_HANDLE {
        my($val) = @_;
	    eval q((($val) & 0xffff));
    }' unless defined(&AT_GET_HANDLE);
    eval 'sub IN_MAKE_TAGID {
        my($tid, $bus, $inst, $inp) = @_;
	    eval q($tid =  ($inp->{in_seqid}); $tid |= ( ($inp->{in_tag_val}) << 16); $tid |= (1<< 24); $tid |= ($bus << 25); $tid |= ($inst << 26));
    }' unless defined(&IN_MAKE_TAGID);
    eval 'sub TAG_INSERT_INST {
        my($tid, $inst) = @_;
	    eval q($tid &= ~(0x3ffffff); $tid |= ($inst << 26));
    }' unless defined(&TAG_INSERT_INST);
    eval 'sub TAG_INSERT_BUS {
        my($tid, $bus) = @_;
	    eval q($tid &= ~(1<< 25); $tid |= ($bus << 25));
    }' unless defined(&TAG_INSERT_BUS);
    eval 'sub ATIO2_CDBLEN () {16;}' unless defined(&ATIO2_CDBLEN);
    eval 'sub ATIO2_WWPN_OFFSET () {0x2a;}' unless defined(&ATIO2_WWPN_OFFSET);
    eval 'sub ATIO2_OXID_OFFSET () {0x3e;}' unless defined(&ATIO2_OXID_OFFSET);
    eval 'sub ATIO2_TC_ATTR_MASK () {0x7;}' unless defined(&ATIO2_TC_ATTR_MASK);
    eval 'sub ATIO2_TC_ATTR_SIMPLEQ () {0;}' unless defined(&ATIO2_TC_ATTR_SIMPLEQ);
    eval 'sub ATIO2_TC_ATTR_HEADOFQ () {1;}' unless defined(&ATIO2_TC_ATTR_HEADOFQ);
    eval 'sub ATIO2_TC_ATTR_ORDERED () {2;}' unless defined(&ATIO2_TC_ATTR_ORDERED);
    eval 'sub ATIO2_TC_ATTR_ACAQ () {4;}' unless defined(&ATIO2_TC_ATTR_ACAQ);
    eval 'sub ATIO2_TC_ATTR_UNTAGGED () {5;}' unless defined(&ATIO2_TC_ATTR_UNTAGGED);
    eval 'sub ATIO2_EX_WRITE () {0x1;}' unless defined(&ATIO2_EX_WRITE);
    eval 'sub ATIO2_EX_READ () {0x2;}' unless defined(&ATIO2_EX_READ);
    eval 'sub AT2_MAKE_TAGID {
        my($tid, $bus, $inst, $aep) = @_;
	    eval q($tid =  ($aep->{at_rxid}); $tid |= ((( &u_int64_t)$inst) << 32); $tid |= ((( &u_int64_t)$bus) << 48));
    }' unless defined(&AT2_MAKE_TAGID);
    eval 'sub CT2_MAKE_TAGID {
        my($tid, $bus, $inst, $ct) = @_;
	    eval q($tid =  ($ct->{ct_rxid}); $tid |= ((( &u_int64_t)$inst) << 32); $tid |= ((( &u_int64_t)($bus & 0xff)) << 48));
    }' unless defined(&CT2_MAKE_TAGID);
    eval 'sub AT2_HAS_TAG {
        my($val) = @_;
	    eval q(1);
    }' unless defined(&AT2_HAS_TAG);
    eval 'sub AT2_GET_TAG {
        my($val) = @_;
	    eval q((($val) & 0xffffffff));
    }' unless defined(&AT2_GET_TAG);
    eval 'sub AT2_GET_INST {
        my($val) = @_;
	    eval q((($val) >> 32));
    }' unless defined(&AT2_GET_INST);
    eval 'sub AT2_GET_HANDLE () { &AT2_GET_TAG;}' unless defined(&AT2_GET_HANDLE);
    eval 'sub AT2_GET_BUS {
        my($val) = @_;
	    eval q(((($val) >> 48) & 0xff));
    }' unless defined(&AT2_GET_BUS);
    eval 'sub FC_HAS_TAG () { &AT2_HAS_TAG;}' unless defined(&FC_HAS_TAG);
    eval 'sub FC_GET_TAG () { &AT2_GET_TAG;}' unless defined(&FC_GET_TAG);
    eval 'sub FC_GET_INST () { &AT2_GET_INST;}' unless defined(&FC_GET_INST);
    eval 'sub FC_GET_HANDLE () { &AT2_GET_HANDLE;}' unless defined(&FC_GET_HANDLE);
    eval 'sub IN_FC_MAKE_TAGID {
        my($tid, $bus, $inst, $seqid) = @_;
	    eval q($tid = $seqid; $tid |= ((( &u_int64_t)$inst) << 32); $tid |= ((( &u_int64_t)($bus & 0xff)) << 48));
    }' unless defined(&IN_FC_MAKE_TAGID);
    eval 'sub FC_TAG_INSERT_INST {
        my($tid, $inst) = @_;
	    eval q($tid &= ~281470681743360; $tid |= ((( &u_int64_t)$inst) << 32));
    }' unless defined(&FC_TAG_INSERT_INST);
    eval 'sub GET_IID_VAL {
        my($x) = @_;
	    eval q(($x & 0x3f));
    }' unless defined(&GET_IID_VAL);
    eval 'sub GET_BUS_VAL {
        my($x) = @_;
	    eval q((($x >> 7) & 0x1));
    }' unless defined(&GET_BUS_VAL);
    eval 'sub SET_IID_VAL {
        my($y, $x) = @_;
	    eval q($y = (($y & ~0x3f) | ($x & 0x3f)));
    }' unless defined(&SET_IID_VAL);
    eval 'sub SET_BUS_VAL {
        my($y, $x) = @_;
	    eval q($y = (($y & 0x3f) | (($x & 0x1) << 7)));
    }' unless defined(&SET_BUS_VAL);
    eval 'sub CT_TQAE () {0x2;}' unless defined(&CT_TQAE);
    eval 'sub CT_DATA_IN () {0x40;}' unless defined(&CT_DATA_IN);
    eval 'sub CT_DATA_OUT () {0x80;}' unless defined(&CT_DATA_OUT);
    eval 'sub CT_NO_DATA () {0xc0;}' unless defined(&CT_NO_DATA);
    eval 'sub CT_CCINCR () {0x100;}' unless defined(&CT_CCINCR);
    eval 'sub CT_DATAMASK () {0xc0;}' unless defined(&CT_DATAMASK);
    eval 'sub CT_INISYNCWIDE () {0x4000;}' unless defined(&CT_INISYNCWIDE);
    eval 'sub CT_NODISC () {0x8000;}' unless defined(&CT_NODISC);
    eval 'sub CT_DSDP () {0x1000000;}' unless defined(&CT_DSDP);
    eval 'sub CT_SENDRDP () {0x4000000;}' unless defined(&CT_SENDRDP);
    eval 'sub CT_SENDSTATUS () {0x80000000;}' unless defined(&CT_SENDSTATUS);
    eval 'sub CT_OK () {0x1;}' unless defined(&CT_OK);
    eval 'sub CT_ABORTED () {0x2;}' unless defined(&CT_ABORTED);
    eval 'sub CT_ERR () {0x4;}' unless defined(&CT_ERR);
    eval 'sub CT_INVAL () {0x6;}' unless defined(&CT_INVAL);
    eval 'sub CT_NOPATH () {0x7;}' unless defined(&CT_NOPATH);
    eval 'sub CT_INVRXID () {0x8;}' unless defined(&CT_INVRXID);
    eval 'sub CT_DATA_OVER () {0x9;}' unless defined(&CT_DATA_OVER);
    eval 'sub CT_RSELTMO () {0xa;}' unless defined(&CT_RSELTMO);
    eval 'sub CT_TIMEOUT () {0xb;}' unless defined(&CT_TIMEOUT);
    eval 'sub CT_RESET () {0xe;}' unless defined(&CT_RESET);
    eval 'sub CT_PARITY () {0xf;}' unless defined(&CT_PARITY);
    eval 'sub CT_BUS_ERROR () {0x10;}' unless defined(&CT_BUS_ERROR);
    eval 'sub CT_PANIC () {0x13;}' unless defined(&CT_PANIC);
    eval 'sub CT_PHASE_ERROR () {0x14;}' unless defined(&CT_PHASE_ERROR);
    eval 'sub CT_DATA_UNDER () {0x15;}' unless defined(&CT_DATA_UNDER);
    eval 'sub CT_BDR_MSG () {0x17;}' unless defined(&CT_BDR_MSG);
    eval 'sub CT_TERMINATED () {0x19;}' unless defined(&CT_TERMINATED);
    eval 'sub CT_PORTUNAVAIL () {0x28;}' unless defined(&CT_PORTUNAVAIL);
    eval 'sub CT_LOGOUT () {0x29;}' unless defined(&CT_LOGOUT);
    eval 'sub CT_PORTCHANGED () {0x2a;}' unless defined(&CT_PORTCHANGED);
    eval 'sub CT_IDE () {0x33;}' unless defined(&CT_IDE);
    eval 'sub CT_NOACK () {0x35;}' unless defined(&CT_NOACK);
    eval 'sub CT_SRR () {0x45;}' unless defined(&CT_SRR);
    eval 'sub CT_LUN_RESET () {0x48;}' unless defined(&CT_LUN_RESET);
    eval 'sub CTIO_SENSE_OFFSET () {0x2e;}' unless defined(&CTIO_SENSE_OFFSET);
    eval 'sub UINT32_ENTRY_SIZE () {($sizeof{ &at_entry_t}/$sizeof{ &u_int32_t});}' unless defined(&UINT32_ENTRY_SIZE);
    eval 'sub MAXRESPLEN () {26;}' unless defined(&MAXRESPLEN);
    eval 'sub CT2_FLAG_MODE0 () {0x;}' unless defined(&CT2_FLAG_MODE0);
    eval 'sub CT2_FLAG_MODE1 () {0x1;}' unless defined(&CT2_FLAG_MODE1);
    eval 'sub CT2_FLAG_MODE2 () {0x2;}' unless defined(&CT2_FLAG_MODE2);
    eval 'sub CT2_FLAG_MMASK () {0x3;}' unless defined(&CT2_FLAG_MMASK);
    eval 'sub CT2_DATA_IN () {0x40;}' unless defined(&CT2_DATA_IN);
    eval 'sub CT2_DATA_OUT () {0x80;}' unless defined(&CT2_DATA_OUT);
    eval 'sub CT2_NO_DATA () {0xc0;}' unless defined(&CT2_NO_DATA);
    eval 'sub CT2_DATAMASK () {0xc0;}' unless defined(&CT2_DATAMASK);
    eval 'sub CT2_CCINCR () {0x100;}' unless defined(&CT2_CCINCR);
    eval 'sub CT2_FASTPOST () {0x200;}' unless defined(&CT2_FASTPOST);
    eval 'sub CT2_CONFIRM () {0x2000;}' unless defined(&CT2_CONFIRM);
    eval 'sub CT2_TERMINATE () {0x4000;}' unless defined(&CT2_TERMINATE);
    eval 'sub CT2_SENDSTATUS () {0x8000;}' unless defined(&CT2_SENDSTATUS);
    eval 'sub CT2_RSPLEN_VALID () {0x100;}' unless defined(&CT2_RSPLEN_VALID);
    eval 'sub CT2_SNSLEN_VALID () {0x200;}' unless defined(&CT2_SNSLEN_VALID);
    eval 'sub CT2_DATA_OVER () {0x400;}' unless defined(&CT2_DATA_OVER);
    eval 'sub CT2_DATA_UNDER () {0x800;}' unless defined(&CT2_DATA_UNDER);
    eval 'sub MAXRESPLEN_24XX () {24;}' unless defined(&MAXRESPLEN_24XX);
    eval 'sub CT7_DATA_IN () {0x2;}' unless defined(&CT7_DATA_IN);
    eval 'sub CT7_DATA_OUT () {0x1;}' unless defined(&CT7_DATA_OUT);
    eval 'sub CT7_NO_DATA () {0x;}' unless defined(&CT7_NO_DATA);
    eval 'sub CT7_DATAMASK () {0x3;}' unless defined(&CT7_DATAMASK);
    eval 'sub CT7_DSD_ENABLE () {0x4;}' unless defined(&CT7_DSD_ENABLE);
    eval 'sub CT7_CONF_STSFD () {0x10;}' unless defined(&CT7_CONF_STSFD);
    eval 'sub CT7_EXPLCT_CONF () {0x20;}' unless defined(&CT7_EXPLCT_CONF);
    eval 'sub CT7_FLAG_MODE0 () {0x;}' unless defined(&CT7_FLAG_MODE0);
    eval 'sub CT7_FLAG_MODE1 () {0x40;}' unless defined(&CT7_FLAG_MODE1);
    eval 'sub CT7_FLAG_MODE7 () {0x80;}' unless defined(&CT7_FLAG_MODE7);
    eval 'sub CT7_FLAG_MMASK () {0xc0;}' unless defined(&CT7_FLAG_MMASK);
    eval 'sub CT7_FASTPOST () {0x100;}' unless defined(&CT7_FASTPOST);
    eval 'sub CT7_ATTR_MASK () {0x1e00;}' unless defined(&CT7_ATTR_MASK);
    eval 'sub CT7_CONFIRM () {0x2000;}' unless defined(&CT7_CONFIRM);
    eval 'sub CT7_TERMINATE () {0x4000;}' unless defined(&CT7_TERMINATE);
    eval 'sub CT7_SENDSTATUS () {0x8000;}' unless defined(&CT7_SENDSTATUS);
    eval 'sub CT7_OK () {0x1;}' unless defined(&CT7_OK);
    eval 'sub CT7_ABORTED () {0x2;}' unless defined(&CT7_ABORTED);
    eval 'sub CT7_ERR () {0x4;}' unless defined(&CT7_ERR);
    eval 'sub CT7_INVAL () {0x6;}' unless defined(&CT7_INVAL);
    eval 'sub CT7_INVRXID () {0x8;}' unless defined(&CT7_INVRXID);
    eval 'sub CT7_DATA_OVER () {0x9;}' unless defined(&CT7_DATA_OVER);
    eval 'sub CT7_TIMEOUT () {0xb;}' unless defined(&CT7_TIMEOUT);
    eval 'sub CT7_RESET () {0xe;}' unless defined(&CT7_RESET);
    eval 'sub CT7_BUS_ERROR () {0x10;}' unless defined(&CT7_BUS_ERROR);
    eval 'sub CT7_REASSY_ERR () {0x11;}' unless defined(&CT7_REASSY_ERR);
    eval 'sub CT7_DATA_UNDER () {0x15;}' unless defined(&CT7_DATA_UNDER);
    eval 'sub CT7_PORTUNAVAIL () {0x28;}' unless defined(&CT7_PORTUNAVAIL);
    eval 'sub CT7_LOGOUT () {0x29;}' unless defined(&CT7_LOGOUT);
    eval 'sub CT7_PORTCHANGED () {0x2a;}' unless defined(&CT7_PORTCHANGED);
    eval 'sub CT7_SRR () {0x45;}' unless defined(&CT7_SRR);
    eval 'sub ISP24XX_ABTS_RSP_TERMINATE () {0x1;}' unless defined(&ISP24XX_ABTS_RSP_TERMINATE);
    eval 'sub ISP24XX_ABTS_RSP_COMPLETE () {0x;}' unless defined(&ISP24XX_ABTS_RSP_COMPLETE);
    eval 'sub ISP24XX_ABTS_RSP_RESET () {0x4;}' unless defined(&ISP24XX_ABTS_RSP_RESET);
    eval 'sub ISP24XX_ABTS_RSP_ABORTED () {0x5;}' unless defined(&ISP24XX_ABTS_RSP_ABORTED);
    eval 'sub ISP24XX_ABTS_RSP_TIMEOUT () {0x6;}' unless defined(&ISP24XX_ABTS_RSP_TIMEOUT);
    eval 'sub ISP24XX_ABTS_RSP_INVXID () {0x8;}' unless defined(&ISP24XX_ABTS_RSP_INVXID);
    eval 'sub ISP24XX_ABTS_RSP_LOGOUT () {0x29;}' unless defined(&ISP24XX_ABTS_RSP_LOGOUT);
    eval 'sub ISP24XX_ABTS_RSP_SUBCODE () {0x31;}' unless defined(&ISP24XX_ABTS_RSP_SUBCODE);
    eval 'sub ISP_TDQE {
        my($isp, $msg, $idx, $arg) = @_;
	    eval q( &if ( ($isp->{isp_dblev}) &  &ISP_LOGTDEBUG2)  &isp_print_qentry($isp, $msg, $idx, $arg));
    }' unless defined(&ISP_TDQE);
    unless(defined(&ISP_TOOLS)) {
	eval 'sub DFLT_CMND_CNT () {0xfe;}' unless defined(&DFLT_CMND_CNT);
	eval 'sub DFLT_INOT_CNT () {0xfe;}' unless defined(&DFLT_INOT_CNT);
	eval 'sub ECMD_SVALID () {0x100;}' unless defined(&ECMD_SVALID);
    }
}
1;
