require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_I2O_IOPSPVAR_H_)) {
    eval 'sub _I2O_IOPSPVAR_H_ () {1;}' unless defined(&_I2O_IOPSPVAR_H_);
    eval 'sub IOPSP_MAX_LUN () {8;}' unless defined(&IOPSP_MAX_LUN);
    eval 'sub IOPSP_MAX_SCSI_TARGET () {15;}' unless defined(&IOPSP_MAX_SCSI_TARGET);
    eval 'sub IOPSP_MAX_FCAL_TARGET () {127;}' unless defined(&IOPSP_MAX_FCAL_TARGET);
    eval 'sub IOPSP_TIDMAP {
        my($map, $t, $l) = @_;
	    eval q(($map->[($t) *  &IOPSP_MAX_LUN + ($l)]));
    }' unless defined(&IOPSP_TIDMAP);
    eval 'sub IOPSP_TID_ABSENT () {0x;}' unless defined(&IOPSP_TID_ABSENT);
    eval 'sub IOPSP_TID_INUSE () {0xffff;}' unless defined(&IOPSP_TID_INUSE);
    if(defined(&I2OVERBOSE)) {
	eval 'sub IT_PRESENT () {0x1;}' unless defined(&IT_PRESENT);
    }
    if(defined(&I2OVERBOSE)) {
    }
}
1;
