require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&ltophys)) {
    sub ltophys () {	 &_lto3b;}
}
unless(defined(&phystol)) {
    sub phystol () {	 &_3btol;}
}
unless(defined(&WDS_STAT)) {
    sub WDS_STAT () {	0;}
}
unless(defined(&WDS_IRQSTAT)) {
    sub WDS_IRQSTAT () {	1;}
}
unless(defined(&WDS_CMD)) {
    sub WDS_CMD () {	0;}
}
unless(defined(&WDS_IRQACK)) {
    sub WDS_IRQACK () {	1;}
}
unless(defined(&WDS_HCR)) {
    sub WDS_HCR () {	2;}
}
unless(defined(&WDS_IO_PORTS)) {
    sub WDS_IO_PORTS () {	8;}
}
unless(defined(&WDSS_IRQ)) {
    sub WDSS_IRQ () {	0x80;}
}
unless(defined(&WDSS_RDY)) {
    sub WDSS_RDY () {	0x40;}
}
unless(defined(&WDSS_REJ)) {
    sub WDSS_REJ () {	0x20;}
}
unless(defined(&WDSS_INIT)) {
    sub WDSS_INIT () {	0x10;}
}
unless(defined(&WDSI_MASK)) {
    sub WDSI_MASK () {	0xc0;}
}
unless(defined(&WDSI_ERR)) {
    sub WDSI_ERR () {	0x;}
}
unless(defined(&WDSI_MFREE)) {
    sub WDSI_MFREE () {	0x80;}
}
unless(defined(&WDSI_MSVC)) {
    sub WDSI_MSVC () {	0xc0;}
}
unless(defined(&WDSC_NOOP)) {
    sub WDSC_NOOP () {	0x;}
}
unless(defined(&WDSC_INIT)) {
    sub WDSC_INIT () {	0x1;}
}
unless(defined(&WDSC_DISUNSOL)) {
    sub WDSC_DISUNSOL () {	0x2;}
}
unless(defined(&WDSC_ENAUNSOL)) {
    sub WDSC_ENAUNSOL () {	0x3;}
}
unless(defined(&WDSC_IRQMFREE)) {
    sub WDSC_IRQMFREE () {	0x4;}
}
unless(defined(&WDSC_SCSIRESETSOFT)) {
    sub WDSC_SCSIRESETSOFT () {	0x5;}
}
unless(defined(&WDSC_SCSIRESETHARD)) {
    sub WDSC_SCSIRESETHARD () {	0x6;}
}
unless(defined(&WDSC_MSTART)) {
    sub WDSC_MSTART {
	my($m) = @_;
	eval q((0x80 + ($m)));
    }
}
unless(defined(&WDSC_MMSTART)) {
    sub WDSC_MMSTART {
	my($m) = @_;
	eval q((0xc0 + ($m)));
    }
}
unless(defined(&WDSH_IRQEN)) {
    sub WDSH_IRQEN () {	0x8;}
}
unless(defined(&WDSH_DRQEN)) {
    sub WDSH_DRQEN () {	0x4;}
}
unless(defined(&WDSH_SCSIRESET)) {
    sub WDSH_SCSIRESET () {	0x2;}
}
unless(defined(&WDSH_ASCRESET)) {
    sub WDSH_ASCRESET () {	0x1;}
}
unless(defined(&WDS_NSEG)) {
    sub WDS_NSEG () {	17;}
}
unless(defined(&SCB_PHYS_SIZE)) {
    sub SCB_PHYS_SIZE () {	((0)-> &chain);}
}
unless(defined(&SCB_ALLOC)) {
    sub SCB_ALLOC () {	0x1;}
}
unless(defined(&SCB_ABORT)) {
    sub SCB_ABORT () {	0x2;}
}
if(defined(&WDSDIAG)) {
    eval 'sub SCB_SENDING () {0x4;}' unless defined(&SCB_SENDING);
}
unless(defined(&SCB_POLLED)) {
    sub SCB_POLLED () {	0x8;}
}
unless(defined(&SCB_SENSE)) {
    sub SCB_SENSE () {	0x10;}
}
unless(defined(&SCB_DONE)) {
    sub SCB_DONE () {	0x20;}
}
unless(defined(&SCB_BUFFER)) {
    sub SCB_BUFFER () {	0x40;}
}
if(defined(&notyet)) {
}
unless(defined(&WDSX_SCSICMD)) {
    sub WDSX_SCSICMD () {	0x;}
}
unless(defined(&WDSX_SCSISG)) {
    sub WDSX_SCSISG () {	0x1;}
}
unless(defined(&WDSX_OPEN_RCVBUF)) {
    sub WDSX_OPEN_RCVBUF () {	0x80;}
}
unless(defined(&WDSX_RCV_CMD)) {
    sub WDSX_RCV_CMD () {	0x81;}
}
unless(defined(&WDSX_RCV_DATA)) {
    sub WDSX_RCV_DATA () {	0x82;}
}
unless(defined(&WDSX_RCV_DATASTAT)) {
    sub WDSX_RCV_DATASTAT () {	0x83;}
}
unless(defined(&WDSX_SND_DATA)) {
    sub WDSX_SND_DATA () {	0x84;}
}
unless(defined(&WDSX_SND_DATASTAT)) {
    sub WDSX_SND_DATASTAT () {	0x85;}
}
unless(defined(&WDSX_SND_CMDSTAT)) {
    sub WDSX_SND_CMDSTAT () {	0x86;}
}
unless(defined(&WDSX_READINIT)) {
    sub WDSX_READINIT () {	0x88;}
}
unless(defined(&WDSX_READSCSIID)) {
    sub WDSX_READSCSIID () {	0x89;}
}
unless(defined(&WDSX_SETUNSOLIRQMASK)) {
    sub WDSX_SETUNSOLIRQMASK () {	0x8a;}
}
unless(defined(&WDSX_GETUNSOLIRQMASK)) {
    sub WDSX_GETUNSOLIRQMASK () {	0x8b;}
}
unless(defined(&WDSX_GETFIRMREV)) {
    sub WDSX_GETFIRMREV () {	0x8c;}
}
unless(defined(&WDSX_EXECDIAG)) {
    sub WDSX_EXECDIAG () {	0x8d;}
}
unless(defined(&WDSX_SETEXECPARM)) {
    sub WDSX_SETEXECPARM () {	0x8e;}
}
unless(defined(&WDSX_GETEXECPARM)) {
    sub WDSX_GETEXECPARM () {	0x8f;}
}
unless(defined(&WDS_MBO_FREE)) {
    sub WDS_MBO_FREE () {	0x;}
}
unless(defined(&WDS_MBO_START)) {
    sub WDS_MBO_START () {	0x1;}
}
unless(defined(&WDS_MBI_FREE)) {
    sub WDS_MBI_FREE () {	0x;}
}
unless(defined(&WDS_MBI_OK)) {
    sub WDS_MBI_OK () {	0x1;}
}
unless(defined(&WDS_MBI_OKERR)) {
    sub WDS_MBI_OKERR () {	0x2;}
}
unless(defined(&WDS_MBI_ETIME)) {
    sub WDS_MBI_ETIME () {	0x4;}
}
unless(defined(&WDS_MBI_ERESET)) {
    sub WDS_MBI_ERESET () {	0x5;}
}
unless(defined(&WDS_MBI_ETARCMD)) {
    sub WDS_MBI_ETARCMD () {	0x6;}
}
unless(defined(&WDS_MBI_ERESEL)) {
    sub WDS_MBI_ERESEL () {	0x80;}
}
unless(defined(&WDS_MBI_ESEL)) {
    sub WDS_MBI_ESEL () {	0x81;}
}
unless(defined(&WDS_MBI_EABORT)) {
    sub WDS_MBI_EABORT () {	0x82;}
}
unless(defined(&WDS_MBI_ESRESET)) {
    sub WDS_MBI_ESRESET () {	0x83;}
}
unless(defined(&WDS_MBI_EHRESET)) {
    sub WDS_MBI_EHRESET () {	0x84;}
}
1;
