require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_ISP_STDS_H)) {
    eval 'sub _ISP_STDS_H () {1;}' unless defined(&_ISP_STDS_H);
    eval 'sub FCP_CMND_TASK_ATTR_SIMPLE () {0x;}' unless defined(&FCP_CMND_TASK_ATTR_SIMPLE);
    eval 'sub FCP_CMND_TASK_ATTR_HEAD () {0x1;}' unless defined(&FCP_CMND_TASK_ATTR_HEAD);
    eval 'sub FCP_CMND_TASK_ATTR_ORDERED () {0x2;}' unless defined(&FCP_CMND_TASK_ATTR_ORDERED);
    eval 'sub FCP_CMND_TASK_ATTR_ACA () {0x4;}' unless defined(&FCP_CMND_TASK_ATTR_ACA);
    eval 'sub FCP_CMND_TASK_ATTR_UNTAGGED () {0x5;}' unless defined(&FCP_CMND_TASK_ATTR_UNTAGGED);
    eval 'sub FCP_CMND_TASK_ATTR_MASK () {0x7;}' unless defined(&FCP_CMND_TASK_ATTR_MASK);
    eval 'sub FCP_CMND_ADDTL_CDBLEN_SHIFT () {2;}' unless defined(&FCP_CMND_ADDTL_CDBLEN_SHIFT);
    eval 'sub FCP_CMND_DATA_WRITE () {0x1;}' unless defined(&FCP_CMND_DATA_WRITE);
    eval 'sub FCP_CMND_DATA_READ () {0x2;}' unless defined(&FCP_CMND_DATA_READ);
    eval 'sub FCP_CMND_DATA_DIR_MASK () {0x3;}' unless defined(&FCP_CMND_DATA_DIR_MASK);
    eval 'sub FCP_CMND_TMF_CLEAR_ACA () {0x40;}' unless defined(&FCP_CMND_TMF_CLEAR_ACA);
    eval 'sub FCP_CMND_TMF_TGT_RESET () {0x20;}' unless defined(&FCP_CMND_TMF_TGT_RESET);
    eval 'sub FCP_CMND_TMF_LUN_RESET () {0x10;}' unless defined(&FCP_CMND_TMF_LUN_RESET);
    eval 'sub FCP_CMND_TMF_CLEAR_TASK_SET () {0x4;}' unless defined(&FCP_CMND_TMF_CLEAR_TASK_SET);
    eval 'sub FCP_CMND_TMF_ABORT_TASK_SET () {0x2;}' unless defined(&FCP_CMND_TMF_ABORT_TASK_SET);
    eval 'sub CT_REVISION () {1;}' unless defined(&CT_REVISION);
    eval 'sub CT_FC_TYPE_FC () {0xfc;}' unless defined(&CT_FC_TYPE_FC);
    eval 'sub CT_FC_SUBTYPE_NS () {0x2;}' unless defined(&CT_FC_SUBTYPE_NS);
    eval 'sub FCP_RSPNS_CODE_OFFSET () {3;}' unless defined(&FCP_RSPNS_CODE_OFFSET);
    eval 'sub FCP_RSPNS_TMF_DONE () {0;}' unless defined(&FCP_RSPNS_TMF_DONE);
    eval 'sub FCP_RSPNS_DLBRSTX () {1;}' unless defined(&FCP_RSPNS_DLBRSTX);
    eval 'sub FCP_RSPNS_BADCMND () {2;}' unless defined(&FCP_RSPNS_BADCMND);
    eval 'sub FCP_RSPNS_EROFS () {3;}' unless defined(&FCP_RSPNS_EROFS);
    eval 'sub FCP_RSPNS_TMF_REJECT () {4;}' unless defined(&FCP_RSPNS_TMF_REJECT);
    eval 'sub FCP_RSPNS_TMF_FAILED () {5;}' unless defined(&FCP_RSPNS_TMF_FAILED);
    eval 'sub ABTS () {0x81;}' unless defined(&ABTS);
    eval 'sub BA_ACC () {0x84;}' unless defined(&BA_ACC);
    eval 'sub BA_RJT () {0x85;}' unless defined(&BA_RJT);
    eval 'sub LS_ACC () {0x8002;}' unless defined(&LS_ACC);
    eval 'sub LS_RJT () {0x8001;}' unless defined(&LS_RJT);
    eval 'sub PLOGI () {0x3;}' unless defined(&PLOGI);
    eval 'sub FLOGI () {0x4;}' unless defined(&FLOGI);
    eval 'sub LOGO () {0x5;}' unless defined(&LOGO);
    eval 'sub ABTX () {0x6;}' unless defined(&ABTX);
    eval 'sub PRLI () {0x20;}' unless defined(&PRLI);
    eval 'sub PRLO () {0x21;}' unless defined(&PRLO);
    eval 'sub TPRLO () {0x24;}' unless defined(&TPRLO);
    eval 'sub RNC () {0x53;}' unless defined(&RNC);
    eval 'sub FC4_IP () {5;}' unless defined(&FC4_IP);
    eval 'sub FC4_SCSI () {8;}' unless defined(&FC4_SCSI);
    eval 'sub FC4_FC_SVC () {0x20;}' unless defined(&FC4_FC_SVC);
    unless(defined(&MSG_ABORT)) {
	eval 'sub MSG_ABORT () {0x6;}' unless defined(&MSG_ABORT);
    }
    unless(defined(&MSG_BUS_DEV_RESET)) {
	eval 'sub MSG_BUS_DEV_RESET () {0xc;}' unless defined(&MSG_BUS_DEV_RESET);
    }
    unless(defined(&MSG_ABORT_TAG)) {
	eval 'sub MSG_ABORT_TAG () {0xd;}' unless defined(&MSG_ABORT_TAG);
    }
    unless(defined(&MSG_CLEAR_QUEUE)) {
	eval 'sub MSG_CLEAR_QUEUE () {0xe;}' unless defined(&MSG_CLEAR_QUEUE);
    }
    unless(defined(&MSG_REL_RECOVERY)) {
	eval 'sub MSG_REL_RECOVERY () {0x10;}' unless defined(&MSG_REL_RECOVERY);
    }
    unless(defined(&MSG_TERM_IO_PROC)) {
	eval 'sub MSG_TERM_IO_PROC () {0x11;}' unless defined(&MSG_TERM_IO_PROC);
    }
    unless(defined(&MSG_LUN_RESET)) {
	eval 'sub MSG_LUN_RESET () {0x17;}' unless defined(&MSG_LUN_RESET);
    }
}
1;
