require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&OOSIOP_SCNTL0)) {
    sub OOSIOP_SCNTL0 () {	0x;}
}
unless(defined(&OOSIOP_SCNTL1)) {
    sub OOSIOP_SCNTL1 () {	0x1;}
}
unless(defined(&OOSIOP_SDID)) {
    sub OOSIOP_SDID () {	0x2;}
}
unless(defined(&OOSIOP_SIEN)) {
    sub OOSIOP_SIEN () {	0x3;}
}
unless(defined(&OOSIOP_SCID)) {
    sub OOSIOP_SCID () {	0x4;}
}
unless(defined(&OOSIOP_SXFER)) {
    sub OOSIOP_SXFER () {	0x5;}
}
unless(defined(&OOSIOP_SODL)) {
    sub OOSIOP_SODL () {	0x6;}
}
unless(defined(&OOSIOP_SOCL)) {
    sub OOSIOP_SOCL () {	0x7;}
}
unless(defined(&OOSIOP_SFBR)) {
    sub OOSIOP_SFBR () {	0x8;}
}
unless(defined(&OOSIOP_SIDL)) {
    sub OOSIOP_SIDL () {	0x9;}
}
unless(defined(&OOSIOP_SBDL)) {
    sub OOSIOP_SBDL () {	0xa;}
}
unless(defined(&OOSIOP_SBCL)) {
    sub OOSIOP_SBCL () {	0xb;}
}
unless(defined(&OOSIOP_DSTAT)) {
    sub OOSIOP_DSTAT () {	0xc;}
}
unless(defined(&OOSIOP_SSTAT0)) {
    sub OOSIOP_SSTAT0 () {	0xd;}
}
unless(defined(&OOSIOP_SSTAT1)) {
    sub OOSIOP_SSTAT1 () {	0xe;}
}
unless(defined(&OOSIOP_SSTAT2)) {
    sub OOSIOP_SSTAT2 () {	0xf;}
}
unless(defined(&OOSIOP_SCRA0)) {
    sub OOSIOP_SCRA0 () {	0x10;}
}
unless(defined(&OOSIOP_SCRA1)) {
    sub OOSIOP_SCRA1 () {	0x11;}
}
unless(defined(&OOSIOP_SCRA2)) {
    sub OOSIOP_SCRA2 () {	0x12;}
}
unless(defined(&OOSIOP_SCRA3)) {
    sub OOSIOP_SCRA3 () {	0x13;}
}
unless(defined(&OOSIOP_CTEST0)) {
    sub OOSIOP_CTEST0 () {	0x14;}
}
unless(defined(&OOSIOP_CTEST1)) {
    sub OOSIOP_CTEST1 () {	0x15;}
}
unless(defined(&OOSIOP_CTEST2)) {
    sub OOSIOP_CTEST2 () {	0x16;}
}
unless(defined(&OOSIOP_CTEST3)) {
    sub OOSIOP_CTEST3 () {	0x17;}
}
unless(defined(&OOSIOP_CTEST4)) {
    sub OOSIOP_CTEST4 () {	0x18;}
}
unless(defined(&OOSIOP_CTEST5)) {
    sub OOSIOP_CTEST5 () {	0x19;}
}
unless(defined(&OOSIOP_CTEST6)) {
    sub OOSIOP_CTEST6 () {	0x1a;}
}
unless(defined(&OOSIOP_CTEST7)) {
    sub OOSIOP_CTEST7 () {	0x1b;}
}
unless(defined(&OOSIOP_TEMP)) {
    sub OOSIOP_TEMP () {	0x1c;}
}
unless(defined(&OOSIOP_DFIFO)) {
    sub OOSIOP_DFIFO () {	0x20;}
}
unless(defined(&OOSIOP_ISTAT)) {
    sub OOSIOP_ISTAT () {	0x21;}
}
unless(defined(&OOSIOP_CTEST8)) {
    sub OOSIOP_CTEST8 () {	0x22;}
}
unless(defined(&OOSIOP_CTEST9)) {
    sub OOSIOP_CTEST9 () {	0x23;}
}
unless(defined(&OOSIOP_DBC)) {
    sub OOSIOP_DBC () {	0x24;}
}
unless(defined(&OOSIOP_DCMD)) {
    sub OOSIOP_DCMD () {	0x27;}
}
unless(defined(&OOSIOP_DNAD)) {
    sub OOSIOP_DNAD () {	0x28;}
}
unless(defined(&OOSIOP_DSP)) {
    sub OOSIOP_DSP () {	0x2c;}
}
unless(defined(&OOSIOP_DSPS)) {
    sub OOSIOP_DSPS () {	0x30;}
}
unless(defined(&OOSIOP_DMODE)) {
    sub OOSIOP_DMODE () {	0x34;}
}
unless(defined(&OOSIOP_RES35)) {
    sub OOSIOP_RES35 () {	0x35;}
}
unless(defined(&OOSIOP_RES36)) {
    sub OOSIOP_RES36 () {	0x36;}
}
unless(defined(&OOSIOP_RES37)) {
    sub OOSIOP_RES37 () {	0x37;}
}
unless(defined(&OOSIOP_RES38)) {
    sub OOSIOP_RES38 () {	0x38;}
}
unless(defined(&OOSIOP_DIEN)) {
    sub OOSIOP_DIEN () {	0x39;}
}
unless(defined(&OOSIOP_DWT)) {
    sub OOSIOP_DWT () {	0x3a;}
}
unless(defined(&OOSIOP_DCNTL)) {
    sub OOSIOP_DCNTL () {	0x3b;}
}
unless(defined(&OOSIOP_SCRB0)) {
    sub OOSIOP_SCRB0 () {	0x3c;}
}
unless(defined(&OOSIOP_SCRB1)) {
    sub OOSIOP_SCRB1 () {	0x3d;}
}
unless(defined(&OOSIOP_SCRB2)) {
    sub OOSIOP_SCRB2 () {	0x3e;}
}
unless(defined(&OOSIOP_SCRB3)) {
    sub OOSIOP_SCRB3 () {	0x3f;}
}
unless(defined(&OOSIOP_NREGS)) {
    sub OOSIOP_NREGS () {	0x40;}
}
unless(defined(&OOSIOP_SCNTL0_ARB)) {
    sub OOSIOP_SCNTL0_ARB () {	0xc0;}
}
unless(defined(&OOSIOP_ARB_SIMPLE)) {
    sub OOSIOP_ARB_SIMPLE () {	0x;}
}
unless(defined(&OOSIOP_ARB_FULL)) {
    sub OOSIOP_ARB_FULL () {	0xc0;}
}
unless(defined(&OOSIOP_SCNTL0_START)) {
    sub OOSIOP_SCNTL0_START () {	0x20;}
}
unless(defined(&OOSIOP_SCNTL0_WATN)) {
    sub OOSIOP_SCNTL0_WATN () {	0x10;}
}
unless(defined(&OOSIOP_SCNTL0_EPC)) {
    sub OOSIOP_SCNTL0_EPC () {	0x8;}
}
unless(defined(&OOSIOP_SCNTL0_EPG)) {
    sub OOSIOP_SCNTL0_EPG () {	0x4;}
}
unless(defined(&OOSIOP_SCNTL0_AAP)) {
    sub OOSIOP_SCNTL0_AAP () {	0x2;}
}
unless(defined(&OOSIOP_SCNTL0_TRG)) {
    sub OOSIOP_SCNTL0_TRG () {	0x1;}
}
unless(defined(&OOSIOP_SCNTL1_EXC)) {
    sub OOSIOP_SCNTL1_EXC () {	0x80;}
}
unless(defined(&OOSIOP_SCNTL1_ADB)) {
    sub OOSIOP_SCNTL1_ADB () {	0x40;}
}
unless(defined(&OOSIOP_SCNTL1_ESR)) {
    sub OOSIOP_SCNTL1_ESR () {	0x20;}
}
unless(defined(&OOSIOP_SCNTL1_CON)) {
    sub OOSIOP_SCNTL1_CON () {	0x10;}
}
unless(defined(&OOSIOP_SCNTL1_RST)) {
    sub OOSIOP_SCNTL1_RST () {	0x8;}
}
unless(defined(&OOSIOP_SCNTL1_AESP)) {
    sub OOSIOP_SCNTL1_AESP () {	0x4;}
}
unless(defined(&OOSIOP_SCNTL1_SND)) {
    sub OOSIOP_SCNTL1_SND () {	0x2;}
}
unless(defined(&OOSIOP_SCNTL1_RCV)) {
    sub OOSIOP_SCNTL1_RCV () {	0x1;}
}
unless(defined(&OOSIOP_SIEN_M_A)) {
    sub OOSIOP_SIEN_M_A () {	0x80;}
}
unless(defined(&OOSIOP_SIEN_FC)) {
    sub OOSIOP_SIEN_FC () {	0x40;}
}
unless(defined(&OOSIOP_SIEN_STO)) {
    sub OOSIOP_SIEN_STO () {	0x20;}
}
unless(defined(&OOSIOP_SIEN_SEL)) {
    sub OOSIOP_SIEN_SEL () {	0x10;}
}
unless(defined(&OOSIOP_SIEN_SGE)) {
    sub OOSIOP_SIEN_SGE () {	0x8;}
}
unless(defined(&OOSIOP_SIEN_UDC)) {
    sub OOSIOP_SIEN_UDC () {	0x4;}
}
unless(defined(&OOSIOP_SIEN_RST)) {
    sub OOSIOP_SIEN_RST () {	0x2;}
}
unless(defined(&OOSIOP_SIEN_PAR)) {
    sub OOSIOP_SIEN_PAR () {	0x1;}
}
unless(defined(&OOSIOP_SCID_VALUE)) {
    sub OOSIOP_SCID_VALUE {
	my($i) = @_;
	eval q((1<< $i));
    }
}
unless(defined(&OOSIOP_SXFER_DHP)) {
    sub OOSIOP_SXFER_DHP () {	0x80;}
}
unless(defined(&OOSIOP_SXFER_TP)) {
    sub OOSIOP_SXFER_TP () {	0x70;}
}
unless(defined(&OOSIOP_SXFER_MO)) {
    sub OOSIOP_SXFER_MO () {	0xf;}
}
unless(defined(&OOSIOP_MAX_OFFSET)) {
    sub OOSIOP_MAX_OFFSET () {	8;}
}
unless(defined(&OOSIOP_REQ)) {
    sub OOSIOP_REQ () {	0x80;}
}
unless(defined(&OOSIOP_ACK)) {
    sub OOSIOP_ACK () {	0x40;}
}
unless(defined(&OOSIOP_BSY)) {
    sub OOSIOP_BSY () {	0x20;}
}
unless(defined(&OOSIOP_SEL)) {
    sub OOSIOP_SEL () {	0x10;}
}
unless(defined(&OOSIOP_ATN)) {
    sub OOSIOP_ATN () {	0x8;}
}
unless(defined(&OOSIOP_MSG)) {
    sub OOSIOP_MSG () {	0x4;}
}
unless(defined(&OOSIOP_CD)) {
    sub OOSIOP_CD () {	0x2;}
}
unless(defined(&OOSIOP_IO)) {
    sub OOSIOP_IO () {	0x1;}
}
unless(defined(&OOSIOP_PHASE)) {
    sub OOSIOP_PHASE {
	my($socl) = @_;
	eval q( &SCSI_PHASE($socl));
    }
}
unless(defined(&OOSIOP_SBCL_SSCF1)) {
    sub OOSIOP_SBCL_SSCF1 () {	0x2;}
}
unless(defined(&OOSIOP_SBCL_SSCF0)) {
    sub OOSIOP_SBCL_SSCF0 () {	0x1;}
}
unless(defined(&OOSIOP_DSTAT_DFE)) {
    sub OOSIOP_DSTAT_DFE () {	0x80;}
}
unless(defined(&OOSIOP_DSTAT_ABRT)) {
    sub OOSIOP_DSTAT_ABRT () {	0x10;}
}
unless(defined(&OOSIOP_DSTAT_SSI)) {
    sub OOSIOP_DSTAT_SSI () {	0x8;}
}
unless(defined(&OOSIOP_DSTAT_SIR)) {
    sub OOSIOP_DSTAT_SIR () {	0x4;}
}
unless(defined(&OOSIOP_DSTAT_WTD)) {
    sub OOSIOP_DSTAT_WTD () {	0x2;}
}
unless(defined(&OOSIOP_DSTAT_IID)) {
    sub OOSIOP_DSTAT_IID () {	0x1;}
}
unless(defined(&OOSIOP_SSTAT0_M_A)) {
    sub OOSIOP_SSTAT0_M_A () {	0x80;}
}
unless(defined(&OOSIOP_SSTAT0_FC)) {
    sub OOSIOP_SSTAT0_FC () {	0x40;}
}
unless(defined(&OOSIOP_SSTAT0_STO)) {
    sub OOSIOP_SSTAT0_STO () {	0x20;}
}
unless(defined(&OOSIOP_SSTAT0_SEL)) {
    sub OOSIOP_SSTAT0_SEL () {	0x10;}
}
unless(defined(&OOSIOP_SSTAT0_SGE)) {
    sub OOSIOP_SSTAT0_SGE () {	0x8;}
}
unless(defined(&OOSIOP_SSTAT0_UDC)) {
    sub OOSIOP_SSTAT0_UDC () {	0x4;}
}
unless(defined(&OOSIOP_SSTAT0_RST)) {
    sub OOSIOP_SSTAT0_RST () {	0x2;}
}
unless(defined(&OOSIOP_SSTAT0_PAR)) {
    sub OOSIOP_SSTAT0_PAR () {	0x1;}
}
unless(defined(&OOSIOP_SSTAT1_ILF)) {
    sub OOSIOP_SSTAT1_ILF () {	0x80;}
}
unless(defined(&OOSIOP_SSTAT1_ORF)) {
    sub OOSIOP_SSTAT1_ORF () {	0x40;}
}
unless(defined(&OOSIOP_SSTAT1_OLF)) {
    sub OOSIOP_SSTAT1_OLF () {	0x20;}
}
unless(defined(&OOSIOP_SSTAT1_AIP)) {
    sub OOSIOP_SSTAT1_AIP () {	0x10;}
}
unless(defined(&OOSIOP_SSTAT1_LOA)) {
    sub OOSIOP_SSTAT1_LOA () {	0x8;}
}
unless(defined(&OOSIOP_SSTAT1_WOA)) {
    sub OOSIOP_SSTAT1_WOA () {	0x4;}
}
unless(defined(&OOSIOP_SSTAT1_RST)) {
    sub OOSIOP_SSTAT1_RST () {	0x2;}
}
unless(defined(&OOSIOP_SSTAT1_SDP)) {
    sub OOSIOP_SSTAT1_SDP () {	0x1;}
}
unless(defined(&OOSIOP_SSTAT2_FF)) {
    sub OOSIOP_SSTAT2_FF () {	0xf0;}
}
unless(defined(&OOSIOP_SCSI_FIFO_DEEP)) {
    sub OOSIOP_SCSI_FIFO_DEEP () {	8;}
}
unless(defined(&OOSIOP_SSTAT2_SDP)) {
    sub OOSIOP_SSTAT2_SDP () {	0x8;}
}
unless(defined(&OOSIOP_SSTAT2_MSG)) {
    sub OOSIOP_SSTAT2_MSG () {	0x4;}
}
unless(defined(&OOSIOP_SSTAT2_CD)) {
    sub OOSIOP_SSTAT2_CD () {	0x2;}
}
unless(defined(&OOSIOP_SSTAT2_IO)) {
    sub OOSIOP_SSTAT2_IO () {	0x1;}
}
unless(defined(&OOSIOP_CTEST0_RTRG)) {
    sub OOSIOP_CTEST0_RTRG () {	0x2;}
}
unless(defined(&OOSIOP_CTEST0_DDIR)) {
    sub OOSIOP_CTEST0_DDIR () {	0x1;}
}
unless(defined(&OOSIOP_CTEST1_FMT)) {
    sub OOSIOP_CTEST1_FMT () {	0xf0;}
}
unless(defined(&OOSIOP_CTEST1_FFL)) {
    sub OOSIOP_CTEST1_FFL () {	0xf;}
}
unless(defined(&OOSIOP_CTEST2_SOFF)) {
    sub OOSIOP_CTEST2_SOFF () {	0x20;}
}
unless(defined(&OOSIOP_CTEST2_SFP)) {
    sub OOSIOP_CTEST2_SFP () {	0x10;}
}
unless(defined(&OOSIOP_CTEST2_DFP)) {
    sub OOSIOP_CTEST2_DFP () {	0x8;}
}
unless(defined(&OOSIOP_CTEST2_TEOP)) {
    sub OOSIOP_CTEST2_TEOP () {	0x4;}
}
unless(defined(&OOSIOP_CTEST2_DREQ)) {
    sub OOSIOP_CTEST2_DREQ () {	0x2;}
}
unless(defined(&OOSIOP_CTEST2_DACK)) {
    sub OOSIOP_CTEST2_DACK () {	0x1;}
}
unless(defined(&OOSIOP_CTEST4_ZMOD)) {
    sub OOSIOP_CTEST4_ZMOD () {	0x40;}
}
unless(defined(&OOSIOP_CTEST4_SZM)) {
    sub OOSIOP_CTEST4_SZM () {	0x20;}
}
unless(defined(&OOSIOP_CTEST4_SLBE)) {
    sub OOSIOP_CTEST4_SLBE () {	0x10;}
}
unless(defined(&OOSIOP_CTEST4_SFWR)) {
    sub OOSIOP_CTEST4_SFWR () {	0x8;}
}
unless(defined(&OOSIOP_CTEST4_FBL)) {
    sub OOSIOP_CTEST4_FBL () {	0x7;}
}
unless(defined(&OOSIOP_CTEST5_ADCK)) {
    sub OOSIOP_CTEST5_ADCK () {	0x80;}
}
unless(defined(&OOSIOP_CTEST5_BBCK)) {
    sub OOSIOP_CTEST5_BBCK () {	0x40;}
}
unless(defined(&OOSIOP_CTEST5_ROFF)) {
    sub OOSIOP_CTEST5_ROFF () {	0x20;}
}
unless(defined(&OOSIOP_CTEST5_MASR)) {
    sub OOSIOP_CTEST5_MASR () {	0x10;}
}
unless(defined(&OOSIOP_CTEST5_DDIR)) {
    sub OOSIOP_CTEST5_DDIR () {	0x8;}
}
unless(defined(&OOSIOP_CTEST5_EOP)) {
    sub OOSIOP_CTEST5_EOP () {	0x4;}
}
unless(defined(&OOSIOP_CTEST5_DREQ)) {
    sub OOSIOP_CTEST5_DREQ () {	0x2;}
}
unless(defined(&OOSIOP_CTEST5_DACK)) {
    sub OOSIOP_CTEST5_DACK () {	0x1;}
}
unless(defined(&OOSIOP_CTEST7_STD)) {
    sub OOSIOP_CTEST7_STD () {	0x10;}
}
unless(defined(&OOSIOP_CTEST7_DFP)) {
    sub OOSIOP_CTEST7_DFP () {	0x8;}
}
unless(defined(&OOSIOP_CTEST7_EVP)) {
    sub OOSIOP_CTEST7_EVP () {	0x4;}
}
unless(defined(&OOSIOP_CTEST7_DIFF)) {
    sub OOSIOP_CTEST7_DIFF () {	0x1;}
}
unless(defined(&OOSIOP_DFIFO_FLF)) {
    sub OOSIOP_DFIFO_FLF () {	0x80;}
}
unless(defined(&OOSIOP_DFIFO_CLF)) {
    sub OOSIOP_DFIFO_CLF () {	0x40;}
}
unless(defined(&OOSIOP_DFIFO_BO)) {
    sub OOSIOP_DFIFO_BO () {	0x3f;}
}
unless(defined(&OOSIOP_ISTAT_ABRT)) {
    sub OOSIOP_ISTAT_ABRT () {	0x80;}
}
unless(defined(&OOSIOP_ISTAT_CON)) {
    sub OOSIOP_ISTAT_CON () {	0x8;}
}
unless(defined(&OOSIOP_ISTAT_PRE)) {
    sub OOSIOP_ISTAT_PRE () {	0x4;}
}
unless(defined(&OOSIOP_ISTAT_SIP)) {
    sub OOSIOP_ISTAT_SIP () {	0x2;}
}
unless(defined(&OOSIOP_ISTAT_DIP)) {
    sub OOSIOP_ISTAT_DIP () {	0x1;}
}
unless(defined(&OOSIOP_DBC_MAX)) {
    sub OOSIOP_DBC_MAX () {	0xffffff;}
}
unless(defined(&OOSIOP_DMODE_BL_MASK)) {
    sub OOSIOP_DMODE_BL_MASK () {	0xc0;}
}
unless(defined(&OOSIOP_DMODE_BL_1)) {
    sub OOSIOP_DMODE_BL_1 () {	0x;}
}
unless(defined(&OOSIOP_DMODE_BL_2)) {
    sub OOSIOP_DMODE_BL_2 () {	0x40;}
}
unless(defined(&OOSIOP_DMODE_BL_4)) {
    sub OOSIOP_DMODE_BL_4 () {	0x80;}
}
unless(defined(&OOSIOP_DMODE_BL_8)) {
    sub OOSIOP_DMODE_BL_8 () {	0xc0;}
}
unless(defined(&OOSIOP_DMODE_BW16)) {
    sub OOSIOP_DMODE_BW16 () {	0x20;}
}
unless(defined(&OOSIOP_DMODE_286)) {
    sub OOSIOP_DMODE_286 () {	0x10;}
}
unless(defined(&OOSIOP_DMODE_IO_M)) {
    sub OOSIOP_DMODE_IO_M () {	0x8;}
}
unless(defined(&OOSIOP_DMODE_FAM)) {
    sub OOSIOP_DMODE_FAM () {	0x4;}
}
unless(defined(&OOSIOP_DMODE_PIPE)) {
    sub OOSIOP_DMODE_PIPE () {	0x2;}
}
unless(defined(&OOSIOP_DMODE_MAN)) {
    sub OOSIOP_DMODE_MAN () {	0x1;}
}
unless(defined(&OOSIOP_DIEN_BF)) {
    sub OOSIOP_DIEN_BF () {	0x20;}
}
unless(defined(&OOSIOP_DIEN_ABRT)) {
    sub OOSIOP_DIEN_ABRT () {	0x10;}
}
unless(defined(&OOSIOP_DIEN_SSI)) {
    sub OOSIOP_DIEN_SSI () {	0x8;}
}
unless(defined(&OOSIOP_DIEN_SIR)) {
    sub OOSIOP_DIEN_SIR () {	0x4;}
}
unless(defined(&OOSIOP_DIEN_WTD)) {
    sub OOSIOP_DIEN_WTD () {	0x2;}
}
unless(defined(&OOSIOP_DIEN_IID)) {
    sub OOSIOP_DIEN_IID () {	0x1;}
}
unless(defined(&OOSIOP_DCNTL_CF_MASK)) {
    sub OOSIOP_DCNTL_CF_MASK () {	0xc0;}
}
unless(defined(&OOSIOP_DCNTL_CF_2)) {
    sub OOSIOP_DCNTL_CF_2 () {	0x;}
}
unless(defined(&OOSIOP_DCNTL_CF_1_5)) {
    sub OOSIOP_DCNTL_CF_1_5 () {	0x40;}
}
unless(defined(&OOSIOP_DCNTL_CF_1)) {
    sub OOSIOP_DCNTL_CF_1 () {	0x80;}
}
unless(defined(&OOSIOP_DCNTL_CF_3)) {
    sub OOSIOP_DCNTL_CF_3 () {	0xc0;}
}
unless(defined(&OOSIOP_DCNTL_S16)) {
    sub OOSIOP_DCNTL_S16 () {	0x20;}
}
unless(defined(&OOSIOP_DCNTL_SSM)) {
    sub OOSIOP_DCNTL_SSM () {	0x10;}
}
unless(defined(&OOSIOP_DCNTL_LLM)) {
    sub OOSIOP_DCNTL_LLM () {	0x8;}
}
unless(defined(&OOSIOP_DCNTL_STD)) {
    sub OOSIOP_DCNTL_STD () {	0x4;}
}
unless(defined(&OOSIOP_DCNTL_RST)) {
    sub OOSIOP_DCNTL_RST () {	0x1;}
}
1;
