require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&ltophys)) {
    sub ltophys () {	 &_lto4l;}
}
unless(defined(&phystol)) {
    sub phystol () {	 &_4ltol;}
}
unless(defined(&BHA_CTRL_PORT)) {
    sub BHA_CTRL_PORT () {	0;}
}
unless(defined(&BHA_STAT_PORT)) {
    sub BHA_STAT_PORT () {	0;}
}
unless(defined(&BHA_CMD_PORT)) {
    sub BHA_CMD_PORT () {	1;}
}
unless(defined(&BHA_DATA_PORT)) {
    sub BHA_DATA_PORT () {	1;}
}
unless(defined(&BHA_INTR_PORT)) {
    sub BHA_INTR_PORT () {	2;}
}
unless(defined(&BHA_EXTGEOM_PORT)) {
    sub BHA_EXTGEOM_PORT () {	3;}
}
unless(defined(&BHA_CTRL_HRST)) {
    sub BHA_CTRL_HRST () {	0x80;}
}
unless(defined(&BHA_CTRL_SRST)) {
    sub BHA_CTRL_SRST () {	0x40;}
}
unless(defined(&BHA_CTRL_IRST)) {
    sub BHA_CTRL_IRST () {	0x20;}
}
unless(defined(&BHA_CTRL_SCRST)) {
    sub BHA_CTRL_SCRST () {	0x10;}
}
unless(defined(&BHA_STAT_STST)) {
    sub BHA_STAT_STST () {	0x80;}
}
unless(defined(&BHA_STAT_DIAGF)) {
    sub BHA_STAT_DIAGF () {	0x40;}
}
unless(defined(&BHA_STAT_INIT)) {
    sub BHA_STAT_INIT () {	0x20;}
}
unless(defined(&BHA_STAT_IDLE)) {
    sub BHA_STAT_IDLE () {	0x10;}
}
unless(defined(&BHA_STAT_CDF)) {
    sub BHA_STAT_CDF () {	0x8;}
}
unless(defined(&BHA_STAT_DF)) {
    sub BHA_STAT_DF () {	0x4;}
}
unless(defined(&BHA_STAT_INVDCMD)) {
    sub BHA_STAT_INVDCMD () {	0x1;}
}
unless(defined(&BHA_STAT_BITS)) {
    sub BHA_STAT_BITS () {	"\020\1invcmd\3df\4cdf\5idle\6init\7diagf\10stst";}
}
unless(defined(&BHA_NOP)) {
    sub BHA_NOP () {	0x;}
}
unless(defined(&BHA_MBX_INIT)) {
    sub BHA_MBX_INIT () {	0x1;}
}
unless(defined(&BHA_START_SCSI)) {
    sub BHA_START_SCSI () {	0x2;}
}
unless(defined(&BHA_EXECUTE_BIOS_CMD)) {
    sub BHA_EXECUTE_BIOS_CMD () {	0x3;}
}
unless(defined(&BHA_INQUIRE_REVISION)) {
    sub BHA_INQUIRE_REVISION () {	0x4;}
}
unless(defined(&BHA_MBO_INTR_EN)) {
    sub BHA_MBO_INTR_EN () {	0x5;}
}
unless(defined(&BHA_SEL_TIMEOUT_SET)) {
    sub BHA_SEL_TIMEOUT_SET () {	0x6;}
}
unless(defined(&BHA_BUS_ON_TIME_SET)) {
    sub BHA_BUS_ON_TIME_SET () {	0x7;}
}
unless(defined(&BHA_BUS_OFF_TIME_SET)) {
    sub BHA_BUS_OFF_TIME_SET () {	0x8;}
}
unless(defined(&BHA_BUS_SPEED_SET)) {
    sub BHA_BUS_SPEED_SET () {	0x9;}
}
unless(defined(&BHA_INQUIRE_DEVICES)) {
    sub BHA_INQUIRE_DEVICES () {	0xa;}
}
unless(defined(&BHA_INQUIRE_CONFIG)) {
    sub BHA_INQUIRE_CONFIG () {	0xb;}
}
unless(defined(&BHA_TARGET_EN)) {
    sub BHA_TARGET_EN () {	0xc;}
}
unless(defined(&BHA_INQUIRE_SETUP)) {
    sub BHA_INQUIRE_SETUP () {	0xd;}
}
unless(defined(&BHA_WRITE_LRAM)) {
    sub BHA_WRITE_LRAM () {	0x1a;}
}
unless(defined(&BHA_READ_LRAM)) {
    sub BHA_READ_LRAM () {	0x1b;}
}
unless(defined(&BHA_WRITE_CHIP_FIFO)) {
    sub BHA_WRITE_CHIP_FIFO () {	0x1c;}
}
unless(defined(&BHA_READ_CHIP_FIFO)) {
    sub BHA_READ_CHIP_FIFO () {	0x1d;}
}
unless(defined(&BHA_ECHO)) {
    sub BHA_ECHO () {	0x1f;}
}
unless(defined(&BHA_ADAPTER_DIAGNOSTICS)) {
    sub BHA_ADAPTER_DIAGNOSTICS () {	0x20;}
}
unless(defined(&BHA_SET_ADAPTER_OPTIONS)) {
    sub BHA_SET_ADAPTER_OPTIONS () {	0x21;}
}
unless(defined(&BHA_INQUIRE_DEVICES_2)) {
    sub BHA_INQUIRE_DEVICES_2 () {	0x23;}
}
unless(defined(&BHA_INQUIRE_TARG_DEVS)) {
    sub BHA_INQUIRE_TARG_DEVS () {	0x24;}
}
unless(defined(&BHA_DISABLE_HAC_INTR)) {
    sub BHA_DISABLE_HAC_INTR () {	0x25;}
}
unless(defined(&BHA_MBX_INIT_EXTENDED)) {
    sub BHA_MBX_INIT_EXTENDED () {	0x81;}
}
unless(defined(&BHA_EXECUTE_SCSI_CMD)) {
    sub BHA_EXECUTE_SCSI_CMD () {	0x83;}
}
unless(defined(&BHA_INQUIRE_REVISION_3)) {
    sub BHA_INQUIRE_REVISION_3 () {	0x84;}
}
unless(defined(&BHA_INQUIRE_REVISION_4)) {
    sub BHA_INQUIRE_REVISION_4 () {	0x85;}
}
unless(defined(&BHA_INQUIRE_PCI_INFO)) {
    sub BHA_INQUIRE_PCI_INFO () {	0x86;}
}
unless(defined(&BHA_INQUIRE_MODEL)) {
    sub BHA_INQUIRE_MODEL () {	0x8b;}
}
unless(defined(&BHA_INQUIRE_PERIOD)) {
    sub BHA_INQUIRE_PERIOD () {	0x8c;}
}
unless(defined(&BHA_INQUIRE_EXTENDED)) {
    sub BHA_INQUIRE_EXTENDED () {	0x8d;}
}
unless(defined(&BHA_ROUND_ROBIN)) {
    sub BHA_ROUND_ROBIN () {	0x8f;}
}
unless(defined(&BHA_STORE_LRAM)) {
    sub BHA_STORE_LRAM () {	0x90;}
}
unless(defined(&BHA_FETCH_LRAM)) {
    sub BHA_FETCH_LRAM () {	0x91;}
}
unless(defined(&BHA_SAVE_TO_EEPROM)) {
    sub BHA_SAVE_TO_EEPROM () {	0x92;}
}
unless(defined(&BHA_UPLOAD_AUTOSCSI)) {
    sub BHA_UPLOAD_AUTOSCSI () {	0x94;}
}
unless(defined(&BHA_MODIFY_IOPORT)) {
    sub BHA_MODIFY_IOPORT () {	0x95;}
}
unless(defined(&BHA_SET_CCB_FORMAT)) {
    sub BHA_SET_CCB_FORMAT () {	0x96;}
}
unless(defined(&BHA_WRITE_INQUIRY_BUF)) {
    sub BHA_WRITE_INQUIRY_BUF () {	0x9a;}
}
unless(defined(&BHA_READ_INQUIRY_BUF)) {
    sub BHA_READ_INQUIRY_BUF () {	0x9b;}
}
unless(defined(&BHA_FLASH_UP_DOWNLOAD)) {
    sub BHA_FLASH_UP_DOWNLOAD () {	0xa7;}
}
unless(defined(&BHA_READ_SCAM_DATA)) {
    sub BHA_READ_SCAM_DATA () {	0xa8;}
}
unless(defined(&BHA_WRITE_SCAM_DATA)) {
    sub BHA_WRITE_SCAM_DATA () {	0xa9;}
}
unless(defined(&BHA_INTR_ANYINTR)) {
    sub BHA_INTR_ANYINTR () {	0x80;}
}
unless(defined(&BHA_INTR_SCRD)) {
    sub BHA_INTR_SCRD () {	0x8;}
}
unless(defined(&BHA_INTR_HACC)) {
    sub BHA_INTR_HACC () {	0x4;}
}
unless(defined(&BHA_INTR_MBOA)) {
    sub BHA_INTR_MBOA () {	0x2;}
}
unless(defined(&BHA_INTR_MBIF)) {
    sub BHA_INTR_MBIF () {	0x1;}
}
unless(defined(&BHA_MBO_FREE)) {
    sub BHA_MBO_FREE () {	0x;}
}
unless(defined(&BHA_MBO_START)) {
    sub BHA_MBO_START () {	0x1;}
}
unless(defined(&BHA_MBO_ABORT)) {
    sub BHA_MBO_ABORT () {	0x2;}
}
unless(defined(&BHA_MBI_FREE)) {
    sub BHA_MBI_FREE () {	0x;}
}
unless(defined(&BHA_MBI_OK)) {
    sub BHA_MBI_OK () {	0x1;}
}
unless(defined(&BHA_MBI_ABORT)) {
    sub BHA_MBI_ABORT () {	0x2;}
}
unless(defined(&BHA_MBI_UNKNOWN)) {
    sub BHA_MBI_UNKNOWN () {	0x3;}
}
unless(defined(&BHA_MBI_ERROR)) {
    sub BHA_MBI_ERROR () {	0x4;}
}
if(defined( &BIG_DMA)) {
    if(0) {
	eval 'sub BHA_NSEG () {2048;}' unless defined(&BHA_NSEG);
    }
    eval 'sub BHA_NSEG () {128;}' unless defined(&BHA_NSEG);
} else {
    eval 'sub BHA_NSEG () {33;}' unless defined(&BHA_NSEG);
}
if((defined(&BYTE_ORDER) ? &BYTE_ORDER : 0) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : 0)) {
} else {
}
if((defined(&BYTE_ORDER) ? &BYTE_ORDER : 0) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : 0)) {
} else {
}
unless(defined(&CCB_ALLOC)) {
    sub CCB_ALLOC () {	0x1;}
}
unless(defined(&CCB_ABORT)) {
    sub CCB_ABORT () {	0x2;}
}
if(defined(&BHADIAG)) {
    eval 'sub CCB_SENDING () {0x4;}' unless defined(&CCB_SENDING);
}
unless(defined(&BHA_INITIATOR_CCB)) {
    sub BHA_INITIATOR_CCB () {	0x;}
}
unless(defined(&BHA_TARGET_CCB)) {
    sub BHA_TARGET_CCB () {	0x1;}
}
unless(defined(&BHA_INIT_SCAT_GATH_CCB)) {
    sub BHA_INIT_SCAT_GATH_CCB () {	0x2;}
}
unless(defined(&BHA_INIT_RESID_CCB)) {
    sub BHA_INIT_RESID_CCB () {	0x3;}
}
unless(defined(&BHA_INIT_RESID_SG_CCB)) {
    sub BHA_INIT_RESID_SG_CCB () {	0x4;}
}
unless(defined(&BHA_RESET_CCB)) {
    sub BHA_RESET_CCB () {	0x81;}
}
unless(defined(&BHA_OK)) {
    sub BHA_OK () {	0x;}
}
unless(defined(&BHA_LINK_OK)) {
    sub BHA_LINK_OK () {	0xa;}
}
unless(defined(&BHA_LINK_IT)) {
    sub BHA_LINK_IT () {	0xb;}
}
unless(defined(&BHA_DATA_UNDRN)) {
    sub BHA_DATA_UNDRN () {	0xc;}
}
unless(defined(&BHA_SEL_TIMEOUT)) {
    sub BHA_SEL_TIMEOUT () {	0x11;}
}
unless(defined(&BHA_OVER_UNDER)) {
    sub BHA_OVER_UNDER () {	0x12;}
}
unless(defined(&BHA_BUS_FREE)) {
    sub BHA_BUS_FREE () {	0x13;}
}
unless(defined(&BHA_INV_BUS)) {
    sub BHA_INV_BUS () {	0x14;}
}
unless(defined(&BHA_BAD_MBO)) {
    sub BHA_BAD_MBO () {	0x15;}
}
unless(defined(&BHA_BAD_CCB)) {
    sub BHA_BAD_CCB () {	0x16;}
}
unless(defined(&BHA_BAD_LINK)) {
    sub BHA_BAD_LINK () {	0x17;}
}
unless(defined(&BHA_INV_TARGET)) {
    sub BHA_INV_TARGET () {	0x18;}
}
unless(defined(&BHA_CCB_DUP)) {
    sub BHA_CCB_DUP () {	0x19;}
}
unless(defined(&BHA_INV_CCB)) {
    sub BHA_INV_CCB () {	0x1a;}
}
unless(defined(&BHA_AUTOSENSE_FAILED)) {
    sub BHA_AUTOSENSE_FAILED () {	0x1b;}
}
unless(defined(&BHA_TAGGED_MSG_REJ)) {
    sub BHA_TAGGED_MSG_REJ () {	0x1c;}
}
unless(defined(&BHA_UNSUP_MSG_RECVD)) {
    sub BHA_UNSUP_MSG_RECVD () {	0x1d;}
}
unless(defined(&BHA_HARDWARE_FAILURE)) {
    sub BHA_HARDWARE_FAILURE () {	0x20;}
}
unless(defined(&BHA_TARG_IGNORED_ATN)) {
    sub BHA_TARG_IGNORED_ATN () {	0x21;}
}
unless(defined(&BHA_HA_SCSI_BUS_RESET)) {
    sub BHA_HA_SCSI_BUS_RESET () {	0x22;}
}
unless(defined(&BHA_OTHER_SCSI_BUS_RESET)) {
    sub BHA_OTHER_SCSI_BUS_RESET () {	0x23;}
}
unless(defined(&BHA_BAD_RECONNECT)) {
    sub BHA_BAD_RECONNECT () {	0x24;}
}
unless(defined(&BHA_HA_BUS_DEVICE_RESET)) {
    sub BHA_HA_BUS_DEVICE_RESET () {	0x25;}
}
unless(defined(&BHA_ABORT_QUEUE)) {
    sub BHA_ABORT_QUEUE () {	0x26;}
}
unless(defined(&BHA_SOFTWARE_FAILURE)) {
    sub BHA_SOFTWARE_FAILURE () {	0x27;}
}
unless(defined(&BHA_HARDWARE_WATCHDOG)) {
    sub BHA_HARDWARE_WATCHDOG () {	0x30;}
}
unless(defined(&BHA_SCSI_PARITY_ERROR)) {
    sub BHA_SCSI_PARITY_ERROR () {	0x34;}
}
unless(defined(&BHA_BUS_TYPE_24BIT)) {
    sub BHA_BUS_TYPE_24BIT () {	ord('A');}
}
unless(defined(&BHA_BUS_TYPE_32BIT)) {
    sub BHA_BUS_TYPE_32BIT () {	ord('E');}
}
unless(defined(&BHA_BUS_TYPE_MCA)) {
    sub BHA_BUS_TYPE_MCA () {	ord('M');}
}
unless(defined(&BHA_INTR_FASTEISA)) {
    sub BHA_INTR_FASTEISA () {	0x4;}
}
unless(defined(&BHA_INTR_LEVEL)) {
    sub BHA_INTR_LEVEL () {	0x40;}
}
unless(defined(&BHA_SCSI_WIDE)) {
    sub BHA_SCSI_WIDE () {	0x1;}
}
unless(defined(&BHA_SCSI_DIFFERENTIAL)) {
    sub BHA_SCSI_DIFFERENTIAL () {	0x2;}
}
unless(defined(&BHA_SCSI_SCAM)) {
    sub BHA_SCSI_SCAM () {	0x4;}
}
unless(defined(&BHA_SCSI_ULTRA)) {
    sub BHA_SCSI_ULTRA () {	0x8;}
}
unless(defined(&BHA_SCSI_TERMINATION)) {
    sub BHA_SCSI_TERMINATION () {	0x10;}
}
if((defined(&BYTE_ORDER) ? &BYTE_ORDER : 0) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : 0)) {
} else {
}
if((defined(&BYTE_ORDER) ? &BYTE_ORDER : 0) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : 0)) {
} else {
}
if((defined(&BYTE_ORDER) ? &BYTE_ORDER : 0) == (defined(&LITTLE_ENDIAN) ? &LITTLE_ENDIAN : 0)) {
} else {
}
unless(defined(&BHA_IOMODIFY_330)) {
    sub BHA_IOMODIFY_330 () {	0x;}
}
unless(defined(&BHA_IOMODIFY_334)) {
    sub BHA_IOMODIFY_334 () {	0x1;}
}
unless(defined(&BHA_IOMODIFY_DISABLE1)) {
    sub BHA_IOMODIFY_DISABLE1 () {	0x6;}
}
unless(defined(&BHA_IOMODIFY_DISABLE2)) {
    sub BHA_IOMODIFY_DISABLE2 () {	0x7;}
}
unless(defined(&INT9)) {
    sub INT9 () {	0x1;}
}
unless(defined(&INT10)) {
    sub INT10 () {	0x2;}
}
unless(defined(&INT11)) {
    sub INT11 () {	0x4;}
}
unless(defined(&INT12)) {
    sub INT12 () {	0x8;}
}
unless(defined(&INT14)) {
    sub INT14 () {	0x20;}
}
unless(defined(&INT15)) {
    sub INT15 () {	0x40;}
}
unless(defined(&EISADMA)) {
    sub EISADMA () {	0x;}
}
unless(defined(&CHAN0)) {
    sub CHAN0 () {	0x1;}
}
unless(defined(&CHAN5)) {
    sub CHAN5 () {	0x20;}
}
unless(defined(&CHAN6)) {
    sub CHAN6 () {	0x40;}
}
unless(defined(&CHAN7)) {
    sub CHAN7 () {	0x80;}
}
1;
