require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_PCI_AUACERREG_H_)) {
    eval 'sub _DEV_PCI_AUACERREG_H_ () {1;}' unless defined(&_DEV_PCI_AUACERREG_H_);
    eval 'sub ALI_SCR () {0x;}' unless defined(&ALI_SCR);
    eval 'sub ALI_SCR_RESET () {(1<<31);}' unless defined(&ALI_SCR_RESET);
    eval 'sub ALI_SCR_AC97_DBL () {(1<<30);}' unless defined(&ALI_SCR_AC97_DBL);
    eval 'sub ALI_SCR_CODEC_SPDF () {(3<<20);}' unless defined(&ALI_SCR_CODEC_SPDF);
    eval 'sub ALI_SCR_IN_BITS () {(3<<18);}' unless defined(&ALI_SCR_IN_BITS);
    eval 'sub ALI_SCR_OUT_BITS () {(3<<16);}' unless defined(&ALI_SCR_OUT_BITS);
    eval 'sub ALI_SCR_6CH_CFG () {(3<<14);}' unless defined(&ALI_SCR_6CH_CFG);
    eval 'sub ALI_SCR_PCM_4 () {(1<<8);}' unless defined(&ALI_SCR_PCM_4);
    eval 'sub ALI_SCR_PCM_6 () {(2<<8);}' unless defined(&ALI_SCR_PCM_6);
    eval 'sub ALI_SCR_PCM_246_MASK () {( &ALI_SCR_PCM_4 |  &ALI_SCR_PCM_6);}' unless defined(&ALI_SCR_PCM_246_MASK);
    eval 'sub ALI_SSR () {0x4;}' unless defined(&ALI_SSR);
    eval 'sub ALI_SSR_SEC_ID () {(3<<5);}' unless defined(&ALI_SSR_SEC_ID);
    eval 'sub ALI_SSR_PRI_ID () {(3<<3);}' unless defined(&ALI_SSR_PRI_ID);
    eval 'sub ALI_DMACR () {0x8;}' unless defined(&ALI_DMACR);
    eval 'sub ALI_DMACR_PAUSE () {16;}' unless defined(&ALI_DMACR_PAUSE);
    eval 'sub ALI_FIFOCR1 () {0xc;}' unless defined(&ALI_FIFOCR1);
    eval 'sub ALI_INTERFACECR () {0x10;}' unless defined(&ALI_INTERFACECR);
    eval 'sub ALI_INTERRUPTCR () {0x14;}' unless defined(&ALI_INTERRUPTCR);
    eval 'sub ALI_INTERRUPTSR () {0x18;}' unless defined(&ALI_INTERRUPTSR);
    eval 'sub ALI_INT_MICIN2 () {(1<<26);}' unless defined(&ALI_INT_MICIN2);
    eval 'sub ALI_INT_PCMIN2 () {(1<<25);}' unless defined(&ALI_INT_PCMIN2);
    eval 'sub ALI_INT_I2SIN () {(1<<24);}' unless defined(&ALI_INT_I2SIN);
    eval 'sub ALI_INT_SPDIFOUT () {(1<<23);}' unless defined(&ALI_INT_SPDIFOUT);
    eval 'sub ALI_INT_SPDIFIN () {(1<<22);}' unless defined(&ALI_INT_SPDIFIN);
    eval 'sub ALI_INT_LFEOUT () {(1<<21);}' unless defined(&ALI_INT_LFEOUT);
    eval 'sub ALI_INT_CENTEROUT () {(1<<20);}' unless defined(&ALI_INT_CENTEROUT);
    eval 'sub ALI_INT_CODECSPDIFOUT () {(1<<19);}' unless defined(&ALI_INT_CODECSPDIFOUT);
    eval 'sub ALI_INT_MICIN () {(1<<18);}' unless defined(&ALI_INT_MICIN);
    eval 'sub ALI_INT_PCMOUT () {(1<<17);}' unless defined(&ALI_INT_PCMOUT);
    eval 'sub ALI_INT_PCMIN () {(1<<16);}' unless defined(&ALI_INT_PCMIN);
    eval 'sub ALI_INT_CPRAIS () {(1<<7);}' unless defined(&ALI_INT_CPRAIS);
    eval 'sub ALI_INT_SPRAIS () {(1<<5);}' unless defined(&ALI_INT_SPRAIS);
    eval 'sub ALI_INT_GPIO () {(1<<1);}' unless defined(&ALI_INT_GPIO);
    eval 'sub ALI_FIFOCR2 () {0x1c;}' unless defined(&ALI_FIFOCR2);
    eval 'sub ALI_CPR () {0x20;}' unless defined(&ALI_CPR);
    eval 'sub ALI_CPR_ADDR_SECONDARY () {0x100;}' unless defined(&ALI_CPR_ADDR_SECONDARY);
    eval 'sub ALI_CPR_ADDR_READ () {0x80;}' unless defined(&ALI_CPR_ADDR_READ);
    eval 'sub ALI_CPR_ADDR () {0x22;}' unless defined(&ALI_CPR_ADDR);
    eval 'sub ALI_SPR () {0x24;}' unless defined(&ALI_SPR);
    eval 'sub ALI_SPR_ADDR () {0x26;}' unless defined(&ALI_SPR_ADDR);
    eval 'sub ALI_FIFOCR3 () {0x2c;}' unless defined(&ALI_FIFOCR3);
    eval 'sub ALI_TTSR () {0x30;}' unless defined(&ALI_TTSR);
    eval 'sub ALI_RTSR () {0x34;}' unless defined(&ALI_RTSR);
    eval 'sub ALI_CSPSR () {0x38;}' unless defined(&ALI_CSPSR);
    eval 'sub ALI_CSPSR_CODEC_READY () {0x8;}' unless defined(&ALI_CSPSR_CODEC_READY);
    eval 'sub ALI_CSPSR_READ_OK () {0x2;}' unless defined(&ALI_CSPSR_READ_OK);
    eval 'sub ALI_CSPSR_WRITE_OK () {0x1;}' unless defined(&ALI_CSPSR_WRITE_OK);
    eval 'sub ALI_CAS () {0x3c;}' unless defined(&ALI_CAS);
    eval 'sub ALI_CAS_SEM_BUSY () {0x80000000;}' unless defined(&ALI_CAS_SEM_BUSY);
    eval 'sub ALI_HWVOL () {0xf0;}' unless defined(&ALI_HWVOL);
    eval 'sub ALI_I2SCR () {0xf4;}' unless defined(&ALI_I2SCR);
    eval 'sub ALI_SPDIFCSR () {0xf8;}' unless defined(&ALI_SPDIFCSR);
    eval 'sub ALI_SPDIFICS () {0xfc;}' unless defined(&ALI_SPDIFICS);
    eval 'sub ALI_OFF_BDBAR () {0x;}' unless defined(&ALI_OFF_BDBAR);
    eval 'sub ALI_OFF_CIV () {0x4;}' unless defined(&ALI_OFF_CIV);
    eval 'sub ALI_OFF_LVI () {0x5;}' unless defined(&ALI_OFF_LVI);
    eval 'sub ALI_LVI_MASK () {0x1f;}' unless defined(&ALI_LVI_MASK);
    eval 'sub ALI_OFF_SR () {0x6;}' unless defined(&ALI_OFF_SR);
    eval 'sub ALI_SR_DMA_INT_FIFO () {(1<<4);}' unless defined(&ALI_SR_DMA_INT_FIFO);
    eval 'sub ALI_SR_DMA_INT_COMPLETE () {(1<<3);}' unless defined(&ALI_SR_DMA_INT_COMPLETE);
    eval 'sub ALI_SR_DMA_INT_LVI () {(1<<2);}' unless defined(&ALI_SR_DMA_INT_LVI);
    eval 'sub ALI_SR_DMA_INT_CELV () {(1<<1);}' unless defined(&ALI_SR_DMA_INT_CELV);
    eval 'sub ALI_SR_DMA_INT_DCH () {(1<<0);}' unless defined(&ALI_SR_DMA_INT_DCH);
    eval 'sub ALI_SR_W1TC () {( &ALI_SR_DMA_INT_LVI |  &ALI_SR_DMA_INT_COMPLETE |  &ALI_SR_DMA_INT_FIFO |  &ALI_SR_DMA_INT_CELV);}' unless defined(&ALI_SR_W1TC);
    eval 'sub ALI_OFF_PICB () {0x8;}' unless defined(&ALI_OFF_PICB);
    eval 'sub ALI_PIV () {0xa;}' unless defined(&ALI_PIV);
    eval 'sub ALI_OFF_CR () {0xb;}' unless defined(&ALI_OFF_CR);
    eval 'sub ALI_CR_IOCE () {0x10;}' unless defined(&ALI_CR_IOCE);
    eval 'sub ALI_CR_FEIE () {0x8;}' unless defined(&ALI_CR_FEIE);
    eval 'sub ALI_CR_LVBIE () {0x4;}' unless defined(&ALI_CR_LVBIE);
    eval 'sub ALI_CR_RR () {0x2;}' unless defined(&ALI_CR_RR);
    eval 'sub ALI_CR_RPBM () {0x1;}' unless defined(&ALI_CR_RPBM);
    eval 'sub ALI_BASE_PI () {0x40;}' unless defined(&ALI_BASE_PI);
    eval 'sub ALI_BASE_PO () {0x50;}' unless defined(&ALI_BASE_PO);
    eval 'sub ALI_BASE_MC () {0x60;}' unless defined(&ALI_BASE_MC);
    eval 'sub ALI_BASE_CODEC_SPDIFO () {0x70;}' unless defined(&ALI_BASE_CODEC_SPDIFO);
    eval 'sub ALI_BASE_CENTER () {0x80;}' unless defined(&ALI_BASE_CENTER);
    eval 'sub ALI_BASE_LFE () {0x90;}' unless defined(&ALI_BASE_LFE);
    eval 'sub ALI_BASE_CTL_SPDIFI () {0xa0;}' unless defined(&ALI_BASE_CTL_SPDIFI);
    eval 'sub ALI_BASE_CTL_SPDIFO () {0xb0;}' unless defined(&ALI_BASE_CTL_SPDIFO);
    eval 'sub ALI_PORT2SLOT {
        my($port) = @_;
	    eval q(((($port) - 0x40) / 0x10));
    }' unless defined(&ALI_PORT2SLOT);
    eval 'sub ALI_PORT2INTR {
        my($port) = @_;
	    eval q(( &ALI_PORT2SLOT($port) + 16));
    }' unless defined(&ALI_PORT2INTR);
    eval 'sub ALI_IF_AC97SP () {(1<<21);}' unless defined(&ALI_IF_AC97SP);
    eval 'sub ALI_IF_MC () {(1<<20);}' unless defined(&ALI_IF_MC);
    eval 'sub ALI_IF_PI () {(1<<19);}' unless defined(&ALI_IF_PI);
    eval 'sub ALI_IF_MC2 () {(1<<18);}' unless defined(&ALI_IF_MC2);
    eval 'sub ALI_IF_PI2 () {(1<<17);}' unless defined(&ALI_IF_PI2);
    eval 'sub ALI_IF_LINE_SRC () {(1<<15);}' unless defined(&ALI_IF_LINE_SRC);
    eval 'sub ALI_IF_MIC_SRC () {(1<<14);}' unless defined(&ALI_IF_MIC_SRC);
    eval 'sub ALI_IF_SPDF_SRC () {(3<<12);}' unless defined(&ALI_IF_SPDF_SRC);
    eval 'sub ALI_IF_AC97_OUT () {(3<<8);}' unless defined(&ALI_IF_AC97_OUT);
    eval 'sub ALI_IF_PO_SPDF () {(1<<3);}' unless defined(&ALI_IF_PO_SPDF);
    eval 'sub ALI_IF_PO () {(1<<1);}' unless defined(&ALI_IF_PO);
    eval 'sub ALI_INT_MASK () {( &ALI_INT_SPDIFOUT| &ALI_INT_CODECSPDIFOUT| &ALI_INT_MICIN| &ALI_INT_PCMOUT| &ALI_INT_PCMIN);}' unless defined(&ALI_INT_MASK);
    eval 'sub ALI_SAMPLE_SIZE () {2;}' unless defined(&ALI_SAMPLE_SIZE);
    eval 'sub ALI_DMALIST_MAX () {32;}' unless defined(&ALI_DMALIST_MAX);
    eval 'sub ALI_DMASEG_MAX () {(65536*2);}' unless defined(&ALI_DMASEG_MAX);
    eval 'sub ALI_DMAF_IOC () {0x80000000;}' unless defined(&ALI_DMAF_IOC);
    eval 'sub ALI_DMAF_BUP () {0x40000000;}' unless defined(&ALI_DMAF_BUP);
}
1;
