require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_PCI_ESOREG_H_)) {
    eval 'sub _DEV_PCI_ESOREG_H_ () {1;}' unless defined(&_DEV_PCI_ESOREG_H_);
    eval 'sub ESO_PCI_BAR_IO () {0x10;}' unless defined(&ESO_PCI_BAR_IO);
    eval 'sub ESO_PCI_BAR_SB () {0x14;}' unless defined(&ESO_PCI_BAR_SB);
    eval 'sub ESO_PCI_BAR_VC () {0x18;}' unless defined(&ESO_PCI_BAR_VC);
    eval 'sub ESO_PCI_BAR_MPU () {0x1c;}' unless defined(&ESO_PCI_BAR_MPU);
    eval 'sub ESO_PCI_BAR_GAME () {0x20;}' unless defined(&ESO_PCI_BAR_GAME);
    eval 'sub ESO_PCI_S1C () {0x50;}' unless defined(&ESO_PCI_S1C);
    eval 'sub ESO_PCI_S1C_IRQP_MASK () {0x6000;}' unless defined(&ESO_PCI_S1C_IRQP_MASK);
    eval 'sub ESO_PCI_S1C_DMAP_MASK () {0x700;}' unless defined(&ESO_PCI_S1C_DMAP_MASK);
    eval 'sub ESO_PCI_DDMAC () {0x60;}' unless defined(&ESO_PCI_DDMAC);
    eval 'sub ESO_PCI_DDMAC_DE () {0x1;}' unless defined(&ESO_PCI_DDMAC_DE);
    eval 'sub ESO_PCI_REVISION_ES1938 () {0x;}' unless defined(&ESO_PCI_REVISION_ES1938);
    eval 'sub ESO_PCI_REVISION_ES1946 () {0x1;}' unless defined(&ESO_PCI_REVISION_ES1946);
    eval 'sub ESO_VALID_DDMAC_BASE {
        my($addr) = @_;
	    eval q(((($addr) & 0x3ff) != 0));
    }' unless defined(&ESO_VALID_DDMAC_BASE);
    eval 'sub ESO_IO_A2DMAA () {0x;}' unless defined(&ESO_IO_A2DMAA);
    eval 'sub ESO_IO_A2DMAC () {0x4;}' unless defined(&ESO_IO_A2DMAC);
    eval 'sub ESO_IO_A2DMAM () {0x6;}' unless defined(&ESO_IO_A2DMAM);
    eval 'sub ESO_IO_A2DMAM_DMAENB () {0x2;}' unless defined(&ESO_IO_A2DMAM_DMAENB);
    eval 'sub ESO_IO_A2DMAM_AUTO () {0x8;}' unless defined(&ESO_IO_A2DMAM_AUTO);
    eval 'sub ESO_IO_IRQCTL () {0x7;}' unless defined(&ESO_IO_IRQCTL);
    eval 'sub ESO_IO_IRQCTL_A1IRQ () {0x10;}' unless defined(&ESO_IO_IRQCTL_A1IRQ);
    eval 'sub ESO_IO_IRQCTL_A2IRQ () {0x20;}' unless defined(&ESO_IO_IRQCTL_A2IRQ);
    eval 'sub ESO_IO_IRQCTL_HVIRQ () {0x40;}' unless defined(&ESO_IO_IRQCTL_HVIRQ);
    eval 'sub ESO_IO_IRQCTL_MPUIRQ () {0x80;}' unless defined(&ESO_IO_IRQCTL_MPUIRQ);
    eval 'sub ESO_IO_IRQCTL_MASK () {0xf0;}' unless defined(&ESO_IO_IRQCTL_MASK);
    eval 'sub ESO_SB_STATUS () {0x;}' unless defined(&ESO_SB_STATUS);
    eval 'sub ESO_SB_LBA () {0x;}' unless defined(&ESO_SB_LBA);
    eval 'sub ESO_SB_LBDW () {0x1;}' unless defined(&ESO_SB_LBDW);
    eval 'sub ESO_SB_HBA () {0x2;}' unless defined(&ESO_SB_HBA);
    eval 'sub ESO_SB_HBDW () {0x3;}' unless defined(&ESO_SB_HBDW);
    eval 'sub ESO_SB_MIXERADDR () {0x4;}' unless defined(&ESO_SB_MIXERADDR);
    eval 'sub ESO_SB_MIXERDATA () {0x5;}' unless defined(&ESO_SB_MIXERDATA);
    eval 'sub ESO_SB_RESET () {0x6;}' unless defined(&ESO_SB_RESET);
    eval 'sub ESO_SB_RESET_SW () {0x1;}' unless defined(&ESO_SB_RESET_SW);
    eval 'sub ESO_SB_RESET_FIFO () {0x2;}' unless defined(&ESO_SB_RESET_FIFO);
    eval 'sub ESO_SB_STATUSFLAGS () {0x6;}' unless defined(&ESO_SB_STATUSFLAGS);
    eval 'sub ESO_SB_PMR () {0x7;}' unless defined(&ESO_SB_PMR);
    eval 'sub ESO_SB_RDR () {0xa;}' unless defined(&ESO_SB_RDR);
    eval 'sub ESO_SB_RDR_RESETMAGIC () {0xaa;}' unless defined(&ESO_SB_RDR_RESETMAGIC);
    eval 'sub ESO_SB_WDR () {0xc;}' unless defined(&ESO_SB_WDR);
    eval 'sub ESO_SB_RSR () {0xc;}' unless defined(&ESO_SB_RSR);
    eval 'sub ESO_SB_RSR_BUSY () {0x80;}' unless defined(&ESO_SB_RSR_BUSY);
    eval 'sub ESO_SB_RBSR () {0xe;}' unless defined(&ESO_SB_RBSR);
    eval 'sub ESO_SB_RBSR_RDAV () {0x80;}' unless defined(&ESO_SB_RBSR_RDAV);
    eval 'sub ESO_SB_PIOAFR () {0xf;}' unless defined(&ESO_SB_PIOAFR);
    eval 'sub ESO_DMAC_DMAA () {0x;}' unless defined(&ESO_DMAC_DMAA);
    eval 'sub ESO_DMAC_DMAC () {0x4;}' unless defined(&ESO_DMAC_DMAC);
    eval 'sub ESO_DMAC_COMMAND () {0x8;}' unless defined(&ESO_DMAC_COMMAND);
    eval 'sub ESO_DMAC_COMMAND_ENB () {0x4;}' unless defined(&ESO_DMAC_COMMAND_ENB);
    eval 'sub ESO_DMAC_COMMAND_DREQPOL () {0x40;}' unless defined(&ESO_DMAC_COMMAND_DREQPOL);
    eval 'sub ESO_DMAC_COMMAND_DACKPOL () {0x80;}' unless defined(&ESO_DMAC_COMMAND_DACKPOL);
    eval 'sub ESO_DMAC_STATUS () {0x8;}' unless defined(&ESO_DMAC_STATUS);
    eval 'sub ESO_DMAC_MODE () {0xb;}' unless defined(&ESO_DMAC_MODE);
    eval 'sub ESO_DMAC_CLEAR () {0xd;}' unless defined(&ESO_DMAC_CLEAR);
    eval 'sub ESO_DMAC_MASK () {0xf;}' unless defined(&ESO_DMAC_MASK);
    eval 'sub ESO_DMAC_MASK_MASK () {0x1;}' unless defined(&ESO_DMAC_MASK_MASK);
    eval 'sub ESO_CMD_RCR () {0xc0;}' unless defined(&ESO_CMD_RCR);
    eval 'sub ESO_CMD_EXTENB () {0xc6;}' unless defined(&ESO_CMD_EXTENB);
    eval 'sub ESO_CMD_EXTDIS () {0xc7;}' unless defined(&ESO_CMD_EXTDIS);
    eval 'sub ESO_MIXREG_RESET () {0x;}' unless defined(&ESO_MIXREG_RESET);
    eval 'sub ESO_MIXREG_RESET_RESET () {0x;}' unless defined(&ESO_MIXREG_RESET_RESET);
    eval 'sub ESO_MIXREG_PVR_MIC () {0x1a;}' unless defined(&ESO_MIXREG_PVR_MIC);
    eval 'sub ESO_MIXREG_ERS () {0x1c;}' unless defined(&ESO_MIXREG_ERS);
    eval 'sub ESO_MIXREG_ERS_MIC () {0x;}' unless defined(&ESO_MIXREG_ERS_MIC);
    eval 'sub ESO_MIXREG_ERS_CD () {0x2;}' unless defined(&ESO_MIXREG_ERS_CD);
    eval 'sub ESO_MIXREG_ERS_MIC2 () {0x4;}' unless defined(&ESO_MIXREG_ERS_MIC2);
    eval 'sub ESO_MIXREG_ERS_MIXER () {0x5;}' unless defined(&ESO_MIXREG_ERS_MIXER);
    eval 'sub ESO_MIXREG_ERS_LINE () {0x6;}' unless defined(&ESO_MIXREG_ERS_LINE);
    eval 'sub ESO_MIXREG_ERS_MUTE () {0x10;}' unless defined(&ESO_MIXREG_ERS_MUTE);
    eval 'sub ESO_MIXREG_PCSVR () {0x3c;}' unless defined(&ESO_MIXREG_PCSVR);
    eval 'sub ESO_MIXREG_PCSVR_RESV () {0xf8;}' unless defined(&ESO_MIXREG_PCSVR_RESV);
    eval 'sub ESO_MIXREG_PVR_SYNTH () {0x36;}' unless defined(&ESO_MIXREG_PVR_SYNTH);
    eval 'sub ESO_MIXREG_PVR_CD () {0x38;}' unless defined(&ESO_MIXREG_PVR_CD);
    eval 'sub ESO_MIXREG_PVR_AUXB () {0x3a;}' unless defined(&ESO_MIXREG_PVR_AUXB);
    eval 'sub ESO_MIXREG_PCSPKR_VOL () {0x3c;}' unless defined(&ESO_MIXREG_PCSPKR_VOL);
    eval 'sub ESO_MIXREG_PVR_LINE () {0x3e;}' unless defined(&ESO_MIXREG_PVR_LINE);
    eval 'sub ESO_MIXREG_SPAT () {0x50;}' unless defined(&ESO_MIXREG_SPAT);
    eval 'sub ESO_MIXREG_SPAT_MONO () {0x2;}' unless defined(&ESO_MIXREG_SPAT_MONO);
    eval 'sub ESO_MIXREG_SPAT_RSTREL () {0x4;}' unless defined(&ESO_MIXREG_SPAT_RSTREL);
    eval 'sub ESO_MIXREG_SPAT_ENB () {0x8;}' unless defined(&ESO_MIXREG_SPAT_ENB);
    eval 'sub ESO_MIXREG_SPATLVL () {0x52;}' unless defined(&ESO_MIXREG_SPATLVL);
    eval 'sub ESO_MIXREG_LMVM () {0x60;}' unless defined(&ESO_MIXREG_LMVM);
    eval 'sub ESO_MIXREG_LMVM_MUTE () {0x40;}' unless defined(&ESO_MIXREG_LMVM_MUTE);
    eval 'sub ESO_MIXREG_RMVM () {0x62;}' unless defined(&ESO_MIXREG_RMVM);
    eval 'sub ESO_MIXREG_RMVM_MUTE () {0x40;}' unless defined(&ESO_MIXREG_RMVM_MUTE);
    eval 'sub ESO_MIXREG_MVCTL () {0x64;}' unless defined(&ESO_MIXREG_MVCTL);
    eval 'sub ESO_MIXREG_RVR_MIC () {0x68;}' unless defined(&ESO_MIXREG_RVR_MIC);
    eval 'sub ESO_MIXREG_RVR_A2 () {0x69;}' unless defined(&ESO_MIXREG_RVR_A2);
    eval 'sub ESO_MIXREG_RVR_CD () {0x6a;}' unless defined(&ESO_MIXREG_RVR_CD);
    eval 'sub ESO_MIXREG_RVR_SYNTH () {0x6b;}' unless defined(&ESO_MIXREG_RVR_SYNTH);
    eval 'sub ESO_MIXREG_RVR_AUXB () {0x6c;}' unless defined(&ESO_MIXREG_RVR_AUXB);
    eval 'sub ESO_MIXREG_PVR_MONO () {0x6d;}' unless defined(&ESO_MIXREG_PVR_MONO);
    eval 'sub ESO_MIXREG_RVR_LINE () {0x6e;}' unless defined(&ESO_MIXREG_RVR_LINE);
    eval 'sub ESO_MIXREG_RVR_MONO () {0x6f;}' unless defined(&ESO_MIXREG_RVR_MONO);
    eval 'sub ESO_MIXREG_A2SRG () {0x70;}' unless defined(&ESO_MIXREG_A2SRG);
    eval 'sub ESO_MIXREG_A2MODE () {0x71;}' unless defined(&ESO_MIXREG_A2MODE);
    eval 'sub ESO_MIXREG_A2MODE_ASYNC () {0x2;}' unless defined(&ESO_MIXREG_A2MODE_ASYNC);
    eval 'sub ESO_MIXREG_A2MODE_NEWA1 () {0x20;}' unless defined(&ESO_MIXREG_A2MODE_NEWA1);
    eval 'sub ESO_MIXREG_A2FLTDIV () {0x72;}' unless defined(&ESO_MIXREG_A2FLTDIV);
    eval 'sub ESO_MIXREG_A2TCRLO () {0x74;}' unless defined(&ESO_MIXREG_A2TCRLO);
    eval 'sub ESO_MIXREG_A2TCRHI () {0x76;}' unless defined(&ESO_MIXREG_A2TCRHI);
    eval 'sub ESO_MIXREG_A2C1 () {0x78;}' unless defined(&ESO_MIXREG_A2C1);
    eval 'sub ESO_MIXREG_A2C1_FIFOENB () {0x1;}' unless defined(&ESO_MIXREG_A2C1_FIFOENB);
    eval 'sub ESO_MIXREG_A2C1_DMAENB () {0x2;}' unless defined(&ESO_MIXREG_A2C1_DMAENB);
    eval 'sub ESO_MIXREG_A2C1_RESV0 () {0xcc;}' unless defined(&ESO_MIXREG_A2C1_RESV0);
    eval 'sub ESO_MIXREG_A2C1_AUTO () {0x10;}' unless defined(&ESO_MIXREG_A2C1_AUTO);
    eval 'sub ESO_MIXREG_A2C2 () {0x7a;}' unless defined(&ESO_MIXREG_A2C2);
    eval 'sub ESO_MIXREG_A2C2_16BIT () {0x1;}' unless defined(&ESO_MIXREG_A2C2_16BIT);
    eval 'sub ESO_MIXREG_A2C2_STEREO () {0x2;}' unless defined(&ESO_MIXREG_A2C2_STEREO);
    eval 'sub ESO_MIXREG_A2C2_SIGNED () {0x4;}' unless defined(&ESO_MIXREG_A2C2_SIGNED);
    eval 'sub ESO_MIXREG_A2C2_RESV0 () {0x38;}' unless defined(&ESO_MIXREG_A2C2_RESV0);
    eval 'sub ESO_MIXREG_A2C2_IRQM () {0x40;}' unless defined(&ESO_MIXREG_A2C2_IRQM);
    eval 'sub ESO_MIXREG_A2C2_IRQ () {0x80;}' unless defined(&ESO_MIXREG_A2C2_IRQ);
    eval 'sub ESO_MIXREG_PVR_A2 () {0x7c;}' unless defined(&ESO_MIXREG_PVR_A2);
    eval 'sub ESO_MIXREG_MPM () {0x7d;}' unless defined(&ESO_MIXREG_MPM);
    eval 'sub ESO_MIXREG_MPM_MOMASK () {0x3;}' unless defined(&ESO_MIXREG_MPM_MOMASK);
    eval 'sub ESO_MIXREG_MPM_MOMUTE () {0x;}' unless defined(&ESO_MIXREG_MPM_MOMUTE);
    eval 'sub ESO_MIXREG_MPM_MOCINR () {0x1;}' unless defined(&ESO_MIXREG_MPM_MOCINR);
    eval 'sub ESO_MIXREG_MPM_MOA2R () {0x2;}' unless defined(&ESO_MIXREG_MPM_MOA2R);
    eval 'sub ESO_MIXREG_MPM_MOREC () {0x3;}' unless defined(&ESO_MIXREG_MPM_MOREC);
    eval 'sub ESO_MIXREG_MPM_PREAMP () {0x8;}' unless defined(&ESO_MIXREG_MPM_PREAMP);
    eval 'sub ESO_MIXREG_MPM_RESV0 () {0xf0;}' unless defined(&ESO_MIXREG_MPM_RESV0);
    eval 'sub ESO_CTLREG_SRG () {0xa1;}' unless defined(&ESO_CTLREG_SRG);
    eval 'sub ESO_CTLREG_FLTDIV () {0xa2;}' unless defined(&ESO_CTLREG_FLTDIV);
    eval 'sub ESO_CTLREG_A1TCRLO () {0xa4;}' unless defined(&ESO_CTLREG_A1TCRLO);
    eval 'sub ESO_CTLREG_A1TCRHI () {0xa5;}' unless defined(&ESO_CTLREG_A1TCRHI);
    eval 'sub ESO_CTLREG_ACTL () {0xa8;}' unless defined(&ESO_CTLREG_ACTL);
    eval 'sub ESO_CTLREG_ACTL_STEREO () {0x1;}' unless defined(&ESO_CTLREG_ACTL_STEREO);
    eval 'sub ESO_CTLREG_ACTL_MONO () {0x2;}' unless defined(&ESO_CTLREG_ACTL_MONO);
    eval 'sub ESO_CTLREG_ACTL_RESV1 () {0x10;}' unless defined(&ESO_CTLREG_ACTL_RESV1);
    eval 'sub ESO_CTLREG_ACTL_RESV0 () {0xe4;}' unless defined(&ESO_CTLREG_ACTL_RESV0);
    eval 'sub ESO_CTLREG_ACTL_RECMON () {0x8;}' unless defined(&ESO_CTLREG_ACTL_RECMON);
    eval 'sub ESO_CTLREG_LAIC () {0xb1;}' unless defined(&ESO_CTLREG_LAIC);
    eval 'sub ESO_CTLREG_LAIC_PINENB () {0x10;}' unless defined(&ESO_CTLREG_LAIC_PINENB);
    eval 'sub ESO_CTLREG_LAIC_EXTENB () {0x40;}' unless defined(&ESO_CTLREG_LAIC_EXTENB);
    eval 'sub ESO_CTLREG_DRQCTL () {0xb2;}' unless defined(&ESO_CTLREG_DRQCTL);
    eval 'sub ESO_CTLREG_DRQCTL_ENB1 () {0x10;}' unless defined(&ESO_CTLREG_DRQCTL_ENB1);
    eval 'sub ESO_CTLREG_DRQCTL_EXTENB () {0x40;}' unless defined(&ESO_CTLREG_DRQCTL_EXTENB);
    eval 'sub ESO_CTLREG_RECLVL () {0xb4;}' unless defined(&ESO_CTLREG_RECLVL);
    eval 'sub ESO_CTLREG_A1C1 () {0xb7;}' unless defined(&ESO_CTLREG_A1C1);
    eval 'sub ESO_CTLREG_A1C1_LOAD () {0x1;}' unless defined(&ESO_CTLREG_A1C1_LOAD);
    eval 'sub ESO_CTLREG_A1C1_RESV0 () {0x2;}' unless defined(&ESO_CTLREG_A1C1_RESV0);
    eval 'sub ESO_CTLREG_A1C1_16BIT () {0x4;}' unless defined(&ESO_CTLREG_A1C1_16BIT);
    eval 'sub ESO_CTLREG_A1C1_STEREO () {0x8;}' unless defined(&ESO_CTLREG_A1C1_STEREO);
    eval 'sub ESO_CTLREG_A1C1_RESV1 () {0x10;}' unless defined(&ESO_CTLREG_A1C1_RESV1);
    eval 'sub ESO_CTLREG_A1C1_SIGNED () {0x20;}' unless defined(&ESO_CTLREG_A1C1_SIGNED);
    eval 'sub ESO_CTLREG_A1C1_MONO () {0x40;}' unless defined(&ESO_CTLREG_A1C1_MONO);
    eval 'sub ESO_CTLREG_A1C1_FIFOENB () {0x80;}' unless defined(&ESO_CTLREG_A1C1_FIFOENB);
    eval 'sub ESO_CTLREG_A1C2 () {0xb8;}' unless defined(&ESO_CTLREG_A1C2);
    eval 'sub ESO_CTLREG_A1C2_DMAENB () {0x1;}' unless defined(&ESO_CTLREG_A1C2_DMAENB);
    eval 'sub ESO_CTLREG_A1C2_READ () {0x2;}' unless defined(&ESO_CTLREG_A1C2_READ);
    eval 'sub ESO_CTLREG_A1C2_AUTO () {0x4;}' unless defined(&ESO_CTLREG_A1C2_AUTO);
    eval 'sub ESO_CTLREG_A1C2_ADC () {0x8;}' unless defined(&ESO_CTLREG_A1C2_ADC);
    eval 'sub ESO_CTLREG_A1TT () {0xb9;}' unless defined(&ESO_CTLREG_A1TT);
    eval 'sub ESO_CTLREG_A1TT_SINGLE () {0x;}' unless defined(&ESO_CTLREG_A1TT_SINGLE);
    eval 'sub ESO_CTLREG_A1TT_DEMAND2 () {0x1;}' unless defined(&ESO_CTLREG_A1TT_DEMAND2);
    eval 'sub ESO_CTLREG_A1TT_DEMAND4 () {0x2;}' unless defined(&ESO_CTLREG_A1TT_DEMAND4);
    eval 'sub ESO_MINRATE () {6000;}' unless defined(&ESO_MINRATE);
    eval 'sub ESO_MAXRATE () {48000;}' unless defined(&ESO_MAXRATE);
    eval 'sub ESO_CLK0 () {793800;}' unless defined(&ESO_CLK0);
    eval 'sub ESO_CLK1 () {768000;}' unless defined(&ESO_CLK1);
    eval 'sub ESO_CLK1_SELECT () {0x80;}' unless defined(&ESO_CLK1_SELECT);
    eval 'sub ESO_RESET_TIMEOUT () {5000;}' unless defined(&ESO_RESET_TIMEOUT);
    eval 'sub ESO_RDR_TIMEOUT () {5000;}' unless defined(&ESO_RDR_TIMEOUT);
    eval 'sub ESO_WDR_TIMEOUT () {5000;}' unless defined(&ESO_WDR_TIMEOUT);
    eval 'sub ESO_GAIN_TO_3BIT {
        my($x) = @_;
	    eval q((($x) & 0xe0));
    }' unless defined(&ESO_GAIN_TO_3BIT);
    eval 'sub ESO_GAIN_TO_4BIT {
        my($x) = @_;
	    eval q((($x) & 0xf0));
    }' unless defined(&ESO_GAIN_TO_4BIT);
    eval 'sub ESO_GAIN_TO_6BIT {
        my($x) = @_;
	    eval q((($x) & 0xfc));
    }' unless defined(&ESO_GAIN_TO_6BIT);
    eval 'sub ESO_4BIT_GAIN_TO_STEREO {
        my($l,$r) = @_;
	    eval q((($l) | (($r) >> 4)));
    }' unless defined(&ESO_4BIT_GAIN_TO_STEREO);
}
1;
