require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&GUS_IOH4_OFFSET)) {
    sub GUS_IOH4_OFFSET () {	0x100;}
}
unless(defined(&GUS_NPORT4)) {
    sub GUS_NPORT4 () {	2;}
}
unless(defined(&GUS_MIDI_CONTROL)) {
    sub GUS_MIDI_CONTROL () {	(0x100- &GUS_IOH4_OFFSET);}
}
unless(defined(&GUS_MIDI_STATUS)) {
    sub GUS_MIDI_STATUS () {	(0x100- &GUS_IOH4_OFFSET);}
}
unless(defined(&GUS_MIDI_READ)) {
    sub GUS_MIDI_READ () {	(0x101- &GUS_IOH4_OFFSET);}
}
unless(defined(&GUS_MIDI_WRITE)) {
    sub GUS_MIDI_WRITE () {	(0x101- &GUS_IOH4_OFFSET);}
}
unless(defined(&GUS_JOYSTICK)) {
    sub GUS_JOYSTICK () {	0x201;}
}
unless(defined(&GUS_MIX_CONTROL)) {
    sub GUS_MIX_CONTROL () {	0x;}
}
unless(defined(&GUS_IRQ_STATUS)) {
    sub GUS_IRQ_STATUS () {	0x6;}
}
unless(defined(&GUS_TIMER_CONTROL)) {
    sub GUS_TIMER_CONTROL () {	0x8;}
}
unless(defined(&GUS_TIMER_DATA)) {
    sub GUS_TIMER_DATA () {	0x9;}
}
unless(defined(&GUS_REG_CONTROL)) {
    sub GUS_REG_CONTROL () {	0xf;}
}
unless(defined(&GUS_REG_NORMAL)) {
    sub GUS_REG_NORMAL () {	0x;}
}
unless(defined(&GUS_REG_IRQCTL)) {
    sub GUS_REG_IRQCTL () {	0x5;}
}
unless(defined(&GUS_REG_JUMPER)) {
    sub GUS_REG_JUMPER () {	0x6;}
}
unless(defined(&GUS_JUMPER_MIDIEN)) {
    sub GUS_JUMPER_MIDIEN () {	0x2;}
}
unless(defined(&GUS_JUMPER_JOYEN)) {
    sub GUS_JUMPER_JOYEN () {	0x4;}
}
unless(defined(&GUS_IRQ_CONTROL)) {
    sub GUS_IRQ_CONTROL () {	0xb;}
}
unless(defined(&GUS_DMA_CONTROL)) {
    sub GUS_DMA_CONTROL () {	0xb;}
}
unless(defined(&GUS_IRQCTL_CONTROL)) {
    sub GUS_IRQCTL_CONTROL () {	0xb;}
}
unless(defined(&GUS_JUMPER_CONTROL)) {
    sub GUS_JUMPER_CONTROL () {	0xb;}
}
unless(defined(&GUS_NPORT1)) {
    sub GUS_NPORT1 () {	16;}
}
unless(defined(&GUS_IOH2_OFFSET)) {
    sub GUS_IOH2_OFFSET () {	0x102;}
}
unless(defined(&GUS_VOICE_SELECT)) {
    sub GUS_VOICE_SELECT () {	(0x102- &GUS_IOH2_OFFSET);}
}
unless(defined(&GUS_REG_SELECT)) {
    sub GUS_REG_SELECT () {	(0x103- &GUS_IOH2_OFFSET);}
}
unless(defined(&GUS_DATA_LOW)) {
    sub GUS_DATA_LOW () {	(0x104- &GUS_IOH2_OFFSET);}
}
unless(defined(&GUS_DATA_HIGH)) {
    sub GUS_DATA_HIGH () {	(0x105- &GUS_IOH2_OFFSET);}
}
unless(defined(&GUS_DRAM_DATA)) {
    sub GUS_DRAM_DATA () {	(0x107- &GUS_IOH2_OFFSET);}
}
unless(defined(&GUS_NPORT2)) {
    sub GUS_NPORT2 () {	6;}
}
unless(defined(&GUSREG_DMA_CONTROL)) {
    sub GUSREG_DMA_CONTROL () {	0x41;}
}
unless(defined(&GUSREG_DMA_START)) {
    sub GUSREG_DMA_START () {	0x42;}
}
unless(defined(&GUSREG_DRAM_ADDR_LOW)) {
    sub GUSREG_DRAM_ADDR_LOW () {	0x43;}
}
unless(defined(&GUSREG_DRAM_ADDR_HIGH)) {
    sub GUSREG_DRAM_ADDR_HIGH () {	0x44;}
}
unless(defined(&GUSREG_TIMER_CONTROL)) {
    sub GUSREG_TIMER_CONTROL () {	0x45;}
}
unless(defined(&GUSREG_TIMER1_COUNT)) {
    sub GUSREG_TIMER1_COUNT () {	0x46;}
}
unless(defined(&GUSREG_TIMER2_COUNT)) {
    sub GUSREG_TIMER2_COUNT () {	0x47;}
}
unless(defined(&GUSREG_SAMPLE_FREQ)) {
    sub GUSREG_SAMPLE_FREQ () {	0x48;}
}
unless(defined(&GUSREG_SAMPLE_CONTROL)) {
    sub GUSREG_SAMPLE_CONTROL () {	0x49;}
}
unless(defined(&GUSREG_JOYSTICK_TRIM)) {
    sub GUSREG_JOYSTICK_TRIM () {	0x4b;}
}
unless(defined(&GUSREG_RESET)) {
    sub GUSREG_RESET () {	0x4c;}
}
unless(defined(&GUSREG_READ)) {
    sub GUSREG_READ () {	0x80;}
}
unless(defined(&GUSREG_VOICE_CNTL)) {
    sub GUSREG_VOICE_CNTL () {	0x;}
}
unless(defined(&GUSREG_FREQ_CONTROL)) {
    sub GUSREG_FREQ_CONTROL () {	0x1;}
}
unless(defined(&GUSREG_START_ADDR_HIGH)) {
    sub GUSREG_START_ADDR_HIGH () {	0x2;}
}
unless(defined(&GUSREG_START_ADDR_LOW)) {
    sub GUSREG_START_ADDR_LOW () {	0x3;}
}
unless(defined(&GUSREG_END_ADDR_HIGH)) {
    sub GUSREG_END_ADDR_HIGH () {	0x4;}
}
unless(defined(&GUSREG_END_ADDR_LOW)) {
    sub GUSREG_END_ADDR_LOW () {	0x5;}
}
unless(defined(&GUSREG_VOLUME_RATE)) {
    sub GUSREG_VOLUME_RATE () {	0x6;}
}
unless(defined(&GUSREG_START_VOLUME)) {
    sub GUSREG_START_VOLUME () {	0x7;}
}
unless(defined(&GUSREG_END_VOLUME)) {
    sub GUSREG_END_VOLUME () {	0x8;}
}
unless(defined(&GUSREG_CUR_VOLUME)) {
    sub GUSREG_CUR_VOLUME () {	0x9;}
}
unless(defined(&GUSREG_CUR_ADDR_HIGH)) {
    sub GUSREG_CUR_ADDR_HIGH () {	0xa;}
}
unless(defined(&GUSREG_CUR_ADDR_LOW)) {
    sub GUSREG_CUR_ADDR_LOW () {	0xb;}
}
unless(defined(&GUSREG_PAN_POS)) {
    sub GUSREG_PAN_POS () {	0xc;}
}
unless(defined(&GUSREG_VOLUME_CONTROL)) {
    sub GUSREG_VOLUME_CONTROL () {	0xd;}
}
unless(defined(&GUSREG_ACTIVE_VOICES)) {
    sub GUSREG_ACTIVE_VOICES () {	0xe;}
}
unless(defined(&GUSREG_IRQ_STATUS)) {
    sub GUSREG_IRQ_STATUS () {	0x8f;}
}
unless(defined(&GUS_PAN_FULL_LEFT)) {
    sub GUS_PAN_FULL_LEFT () {	0x;}
}
unless(defined(&GUS_PAN_FULL_RIGHT)) {
    sub GUS_PAN_FULL_RIGHT () {	0xf;}
}
unless(defined(&GUSMASK_MASTER_RESET)) {
    sub GUSMASK_MASTER_RESET () {	0x1;}
}
unless(defined(&GUSMASK_DAC_ENABLE)) {
    sub GUSMASK_DAC_ENABLE () {	0x2;}
}
unless(defined(&GUSMASK_IRQ_ENABLE)) {
    sub GUSMASK_IRQ_ENABLE () {	0x4;}
}
unless(defined(&GUSMASK_IRQ_MIDIXMIT)) {
    sub GUSMASK_IRQ_MIDIXMIT () {	0x1;}
}
unless(defined(&GUSMASK_IRQ_MIDIRCVR)) {
    sub GUSMASK_IRQ_MIDIRCVR () {	0x2;}
}
unless(defined(&GUSMASK_IRQ_TIMER1)) {
    sub GUSMASK_IRQ_TIMER1 () {	0x4;}
}
unless(defined(&GUSMASK_IRQ_TIMER2)) {
    sub GUSMASK_IRQ_TIMER2 () {	0x8;}
}
unless(defined(&GUSMASK_IRQ_RESERVED)) {
    sub GUSMASK_IRQ_RESERVED () {	0x10;}
}
unless(defined(&GUSMASK_IRQ_VOICE)) {
    sub GUSMASK_IRQ_VOICE () {	0x20;}
}
unless(defined(&GUSMASK_IRQ_VOLUME)) {
    sub GUSMASK_IRQ_VOLUME () {	0x40;}
}
unless(defined(&GUSMASK_IRQ_DMATC)) {
    sub GUSMASK_IRQ_DMATC () {	0x80;}
}
unless(defined(&GUSMASK_SAMPLE_START)) {
    sub GUSMASK_SAMPLE_START () {	0x1;}
}
unless(defined(&GUSMASK_SAMPLE_STEREO)) {
    sub GUSMASK_SAMPLE_STEREO () {	0x2;}
}
unless(defined(&GUSMASK_SAMPLE_DATA16)) {
    sub GUSMASK_SAMPLE_DATA16 () {	0x4;}
}
unless(defined(&GUSMASK_SAMPLE_IRQ)) {
    sub GUSMASK_SAMPLE_IRQ () {	0x20;}
}
unless(defined(&GUSMASK_SAMPLE_DMATC)) {
    sub GUSMASK_SAMPLE_DMATC () {	0x40;}
}
unless(defined(&GUSMASK_SAMPLE_INVBIT)) {
    sub GUSMASK_SAMPLE_INVBIT () {	0x80;}
}
unless(defined(&GUSMASK_WIRQ_VOLUME)) {
    sub GUSMASK_WIRQ_VOLUME () {	0x40;}
}
unless(defined(&GUSMASK_WIRQ_VOICE)) {
    sub GUSMASK_WIRQ_VOICE () {	0x80;}
}
unless(defined(&GUSMASK_WIRQ_VOICEMASK)) {
    sub GUSMASK_WIRQ_VOICEMASK () {	0x1f;}
}
unless(defined(&GUSMASK_LINE_IN)) {
    sub GUSMASK_LINE_IN () {	0x1;}
}
unless(defined(&GUSMASK_LINE_OUT)) {
    sub GUSMASK_LINE_OUT () {	0x2;}
}
unless(defined(&GUSMASK_MIC_IN)) {
    sub GUSMASK_MIC_IN () {	0x4;}
}
unless(defined(&GUSMASK_LATCHES)) {
    sub GUSMASK_LATCHES () {	0x8;}
}
unless(defined(&GUSMASK_COMBINE)) {
    sub GUSMASK_COMBINE () {	0x10;}
}
unless(defined(&GUSMASK_MIDI_LOOPBACK)) {
    sub GUSMASK_MIDI_LOOPBACK () {	0x20;}
}
unless(defined(&GUSMASK_CONTROL_SEL)) {
    sub GUSMASK_CONTROL_SEL () {	0x40;}
}
unless(defined(&GUSMASK_BOTH_RQ)) {
    sub GUSMASK_BOTH_RQ () {	0x40;}
}
unless(defined(&GUSMASK_DMA_ENABLE)) {
    sub GUSMASK_DMA_ENABLE () {	0x1;}
}
unless(defined(&GUSMASK_DMA_READ)) {
    sub GUSMASK_DMA_READ () {	0x2;}
}
unless(defined(&GUSMASK_DMA_WRITE)) {
    sub GUSMASK_DMA_WRITE () {	0x;}
}
unless(defined(&GUSMASK_DMA_WIDTH)) {
    sub GUSMASK_DMA_WIDTH () {	0x4;}
}
unless(defined(&GUSMASK_DMA_R0)) {
    sub GUSMASK_DMA_R0 () {	0x;}
}
unless(defined(&GUSMASK_DMA_R1)) {
    sub GUSMASK_DMA_R1 () {	0x8;}
}
unless(defined(&GUSMASK_DMA_R2)) {
    sub GUSMASK_DMA_R2 () {	0x10;}
}
unless(defined(&GUSMASK_DMA_R3)) {
    sub GUSMASK_DMA_R3 () {	0x18;}
}
unless(defined(&GUSMASK_DMA_IRQ)) {
    sub GUSMASK_DMA_IRQ () {	0x20;}
}
unless(defined(&GUSMASK_DMA_IRQPEND)) {
    sub GUSMASK_DMA_IRQPEND () {	0x40;}
}
unless(defined(&GUSMASK_DMA_DATA_SIZE)) {
    sub GUSMASK_DMA_DATA_SIZE () {	0x40;}
}
unless(defined(&GUSMASK_DMA_INVBIT)) {
    sub GUSMASK_DMA_INVBIT () {	0x80;}
}
unless(defined(&GUSMASK_VOICE_STOPPED)) {
    sub GUSMASK_VOICE_STOPPED () {	0x1;}
}
unless(defined(&GUSMASK_STOP_VOICE)) {
    sub GUSMASK_STOP_VOICE () {	0x2;}
}
unless(defined(&GUSMASK_DATA_SIZE16)) {
    sub GUSMASK_DATA_SIZE16 () {	0x4;}
}
unless(defined(&GUSMASK_LOOP_ENABLE)) {
    sub GUSMASK_LOOP_ENABLE () {	0x8;}
}
unless(defined(&GUSMASK_VOICE_BIDIR)) {
    sub GUSMASK_VOICE_BIDIR () {	0x10;}
}
unless(defined(&GUSMASK_VOICE_IRQ)) {
    sub GUSMASK_VOICE_IRQ () {	0x20;}
}
unless(defined(&GUSMASK_INCR_DIR)) {
    sub GUSMASK_INCR_DIR () {	0x40;}
}
unless(defined(&GUSMASK_VOICE_IRQPEND)) {
    sub GUSMASK_VOICE_IRQPEND () {	0x80;}
}
unless(defined(&GUSMASK_VOLUME_STOPPED)) {
    sub GUSMASK_VOLUME_STOPPED () {	0x1;}
}
unless(defined(&GUSMASK_STOP_VOLUME)) {
    sub GUSMASK_STOP_VOLUME () {	0x2;}
}
unless(defined(&GUSMASK_VOICE_ROLL)) {
    sub GUSMASK_VOICE_ROLL () {	0x4;}
}
unless(defined(&GUSMASK_VOLUME_LOOP)) {
    sub GUSMASK_VOLUME_LOOP () {	0x8;}
}
unless(defined(&GUSMASK_VOLUME_BIDIR)) {
    sub GUSMASK_VOLUME_BIDIR () {	0x10;}
}
unless(defined(&GUSMASK_VOLUME_IRQ)) {
    sub GUSMASK_VOLUME_IRQ () {	0x20;}
}
unless(defined(&GUSMASK_VOLUME_DIR)) {
    sub GUSMASK_VOLUME_DIR () {	0x40;}
}
unless(defined(&GUSMASK_VOLUME_IRQPEND)) {
    sub GUSMASK_VOLUME_IRQPEND () {	0x80;}
}
unless(defined(&MIDI_RESET)) {
    sub MIDI_RESET () {	0x3;}
}
unless(defined(&GUS_IOH3_OFFSET)) {
    sub GUS_IOH3_OFFSET () {	0x506;}
}
unless(defined(&GUS_NPORT3)) {
    sub GUS_NPORT3 () {	1;}
}
unless(defined(&GUS_MIXER_SELECT)) {
    sub GUS_MIXER_SELECT () {	(0x506- &GUS_IOH3_OFFSET);}
}
unless(defined(&GUS_BOARD_REV)) {
    sub GUS_BOARD_REV () {	(0x506- &GUS_IOH3_OFFSET);}
}
unless(defined(&GUS_MIXER_DATA)) {
    sub GUS_MIXER_DATA () {	(0x106- &GUS_IOH2_OFFSET);}
}
unless(defined(&GUSMIX_CHAN_MIC)) {
    sub GUSMIX_CHAN_MIC () {	 &ICSMIX_CHAN_0;}
}
unless(defined(&GUSMIX_CHAN_LINE)) {
    sub GUSMIX_CHAN_LINE () {	 &ICSMIX_CHAN_1;}
}
unless(defined(&GUSMIX_CHAN_CD)) {
    sub GUSMIX_CHAN_CD () {	 &ICSMIX_CHAN_2;}
}
unless(defined(&GUSMIX_CHAN_DAC)) {
    sub GUSMIX_CHAN_DAC () {	 &ICSMIX_CHAN_3;}
}
unless(defined(&GUSMIX_CHAN_MASTER)) {
    sub GUSMIX_CHAN_MASTER () {	 &ICSMIX_CHAN_5;}
}
unless(defined(&GUS_MAX_CODEC_BASE)) {
    sub GUS_MAX_CODEC_BASE () {	0x10c;}
}
unless(defined(&GUS_DAUGHTER_CODEC_BASE)) {
    sub GUS_DAUGHTER_CODEC_BASE () {	0x530;}
}
unless(defined(&GUS_DAUGHTER_CODEC_BASE2)) {
    sub GUS_DAUGHTER_CODEC_BASE2 () {	0x604;}
}
unless(defined(&GUS_DAUGHTER_CODEC_BASE3)) {
    sub GUS_DAUGHTER_CODEC_BASE3 () {	0xe80;}
}
unless(defined(&GUS_DAUGHTER_CODEC_BASE4)) {
    sub GUS_DAUGHTER_CODEC_BASE4 () {	0xf40;}
}
unless(defined(&GUS_CODEC_SELECT)) {
    sub GUS_CODEC_SELECT () {	0;}
}
unless(defined(&GUS_CODEC_DATA)) {
    sub GUS_CODEC_DATA () {	1;}
}
unless(defined(&GUS_CODEC_STATUS)) {
    sub GUS_CODEC_STATUS () {	2;}
}
unless(defined(&GUS_CODEC_PIO)) {
    sub GUS_CODEC_PIO () {	3;}
}
unless(defined(&GUS_MAX_CTRL)) {
    sub GUS_MAX_CTRL () {	0x106;}
}
unless(defined(&GUS_MAX_BASEBITS)) {
    sub GUS_MAX_BASEBITS () {	0xf;}
}
unless(defined(&GUS_MAX_RECCHAN16)) {
    sub GUS_MAX_RECCHAN16 () {	0x10;}
}
unless(defined(&GUS_MAX_PLAYCHAN16)) {
    sub GUS_MAX_PLAYCHAN16 () {	0x20;}
}
unless(defined(&GUS_MAX_CODEC_ENABLE)) {
    sub GUS_MAX_CODEC_ENABLE () {	0x40;}
}
1;
