require '_h2ph_pre.ph';

no warnings 'redefine';

eval("sub AC97_HOST_DONT_READ () { 0x1; }") unless defined(&AC97_HOST_DONT_READ);
eval("sub AC97_HOST_DONT_READANY () { 0x2; }") unless defined(&AC97_HOST_DONT_READANY);
eval("sub AC97_HOST_SWAPPED_CHANNELS () { 0x4; }") unless defined(&AC97_HOST_SWAPPED_CHANNELS);
eval("sub AC97_HOST_DONT_ENABLE_SPDIF () { 0x8; }") unless defined(&AC97_HOST_DONT_ENABLE_SPDIF);
unless(defined(&AC97_REG_RESET)) {
    sub AC97_REG_RESET () {	0x;}
}
unless(defined(&AC97_CAPS_MICIN)) {
    sub AC97_CAPS_MICIN () {	0x1;}
}
unless(defined(&AC97_CAPS_TONECTRL)) {
    sub AC97_CAPS_TONECTRL () {	0x4;}
}
unless(defined(&AC97_CAPS_SIMSTEREO)) {
    sub AC97_CAPS_SIMSTEREO () {	0x8;}
}
unless(defined(&AC97_CAPS_HEADPHONES)) {
    sub AC97_CAPS_HEADPHONES () {	0x10;}
}
unless(defined(&AC97_CAPS_LOUDNESS)) {
    sub AC97_CAPS_LOUDNESS () {	0x20;}
}
unless(defined(&AC97_CAPS_DAC18)) {
    sub AC97_CAPS_DAC18 () {	0x40;}
}
unless(defined(&AC97_CAPS_DAC20)) {
    sub AC97_CAPS_DAC20 () {	0x80;}
}
unless(defined(&AC97_CAPS_ADC18)) {
    sub AC97_CAPS_ADC18 () {	0x100;}
}
unless(defined(&AC97_CAPS_ADC20)) {
    sub AC97_CAPS_ADC20 () {	0x200;}
}
unless(defined(&AC97_CAPS_ENHANCEMENT_MASK)) {
    sub AC97_CAPS_ENHANCEMENT_MASK () {	0xfc00;}
}
unless(defined(&AC97_CAPS_ENHANCEMENT_SHIFT)) {
    sub AC97_CAPS_ENHANCEMENT_SHIFT () {	10;}
}
unless(defined(&AC97_CAPS_ENHANCEMENT)) {
    sub AC97_CAPS_ENHANCEMENT {
	my($reg) = @_;
	eval q(((($reg) >> 10) & 0x1f));
    }
}
unless(defined(&AC97_REG_MASTER_VOLUME)) {
    sub AC97_REG_MASTER_VOLUME () {	0x2;}
}
unless(defined(&AC97_REG_HEADPHONE_VOLUME)) {
    sub AC97_REG_HEADPHONE_VOLUME () {	0x4;}
}
unless(defined(&AC97_REG_MASTER_VOLUME_MONO)) {
    sub AC97_REG_MASTER_VOLUME_MONO () {	0x6;}
}
unless(defined(&AC97_REG_MASTER_TONE)) {
    sub AC97_REG_MASTER_TONE () {	0x8;}
}
unless(defined(&AC97_REG_PCBEEP_VOLUME)) {
    sub AC97_REG_PCBEEP_VOLUME () {	0xa;}
}
unless(defined(&AC97_REG_PHONE_VOLUME)) {
    sub AC97_REG_PHONE_VOLUME () {	0xc;}
}
unless(defined(&AC97_REG_MIC_VOLUME)) {
    sub AC97_REG_MIC_VOLUME () {	0xe;}
}
unless(defined(&AC97_REG_LINEIN_VOLUME)) {
    sub AC97_REG_LINEIN_VOLUME () {	0x10;}
}
unless(defined(&AC97_REG_CD_VOLUME)) {
    sub AC97_REG_CD_VOLUME () {	0x12;}
}
unless(defined(&AC97_REG_VIDEO_VOLUME)) {
    sub AC97_REG_VIDEO_VOLUME () {	0x14;}
}
unless(defined(&AC97_REG_AUX_VOLUME)) {
    sub AC97_REG_AUX_VOLUME () {	0x16;}
}
unless(defined(&AC97_REG_PCMOUT_VOLUME)) {
    sub AC97_REG_PCMOUT_VOLUME () {	0x18;}
}
unless(defined(&AC97_REG_RECORD_SELECT)) {
    sub AC97_REG_RECORD_SELECT () {	0x1a;}
}
unless(defined(&AC97_REG_RECORD_GAIN)) {
    sub AC97_REG_RECORD_GAIN () {	0x1c;}
}
unless(defined(&AC97_REG_RECORD_GAIN_MIC)) {
    sub AC97_REG_RECORD_GAIN_MIC () {	0x1e;}
}
unless(defined(&AC97_REG_GP)) {
    sub AC97_REG_GP () {	0x20;}
}
unless(defined(&AC97_REG_3D_CONTROL)) {
    sub AC97_REG_3D_CONTROL () {	0x22;}
}
unless(defined(&AC97_REG_MODEM_SAMPLE_RATE)) {
    sub AC97_REG_MODEM_SAMPLE_RATE () {	0x24;}
}
unless(defined(&AC97_REG_POWER)) {
    sub AC97_REG_POWER () {	0x26;}
}
unless(defined(&AC97_POWER_ADC)) {
    sub AC97_POWER_ADC () {	0x1;}
}
unless(defined(&AC97_POWER_DAC)) {
    sub AC97_POWER_DAC () {	0x2;}
}
unless(defined(&AC97_POWER_ANL)) {
    sub AC97_POWER_ANL () {	0x4;}
}
unless(defined(&AC97_POWER_REF)) {
    sub AC97_POWER_REF () {	0x8;}
}
unless(defined(&AC97_POWER_IN)) {
    sub AC97_POWER_IN () {	0x100;}
}
unless(defined(&AC97_POWER_OUT)) {
    sub AC97_POWER_OUT () {	0x200;}
}
unless(defined(&AC97_POWER_MIXER)) {
    sub AC97_POWER_MIXER () {	0x400;}
}
unless(defined(&AC97_POWER_MIXER_VREF)) {
    sub AC97_POWER_MIXER_VREF () {	0x800;}
}
unless(defined(&AC97_POWER_ACLINK)) {
    sub AC97_POWER_ACLINK () {	0x1000;}
}
unless(defined(&AC97_POWER_CLK)) {
    sub AC97_POWER_CLK () {	0x2000;}
}
unless(defined(&AC97_POWER_AUX)) {
    sub AC97_POWER_AUX () {	0x4000;}
}
unless(defined(&AC97_POWER_EAMP)) {
    sub AC97_POWER_EAMP () {	0x8000;}
}
unless(defined(&AC97_REG_EXT_AUDIO_ID)) {
    sub AC97_REG_EXT_AUDIO_ID () {	0x28;}
}
unless(defined(&AC97_REG_EXT_AUDIO_CTRL)) {
    sub AC97_REG_EXT_AUDIO_CTRL () {	0x2a;}
}
unless(defined(&AC97_EXT_AUDIO_VRA)) {
    sub AC97_EXT_AUDIO_VRA () {	0x1;}
}
unless(defined(&AC97_EXT_AUDIO_DRA)) {
    sub AC97_EXT_AUDIO_DRA () {	0x2;}
}
unless(defined(&AC97_EXT_AUDIO_SPDIF)) {
    sub AC97_EXT_AUDIO_SPDIF () {	0x4;}
}
unless(defined(&AC97_EXT_AUDIO_VRM)) {
    sub AC97_EXT_AUDIO_VRM () {	0x8;}
}
unless(defined(&AC97_EXT_AUDIO_DSA0)) {
    sub AC97_EXT_AUDIO_DSA0 () {	0x10;}
}
unless(defined(&AC97_EXT_AUDIO_DSA1)) {
    sub AC97_EXT_AUDIO_DSA1 () {	0x20;}
}
unless(defined(&AC97_EXT_AUDIO_CDAC)) {
    sub AC97_EXT_AUDIO_CDAC () {	0x40;}
}
unless(defined(&AC97_EXT_AUDIO_SDAC)) {
    sub AC97_EXT_AUDIO_SDAC () {	0x80;}
}
unless(defined(&AC97_EXT_AUDIO_LDAC)) {
    sub AC97_EXT_AUDIO_LDAC () {	0x100;}
}
unless(defined(&AC97_EXT_AUDIO_AMAP)) {
    sub AC97_EXT_AUDIO_AMAP () {	0x200;}
}
unless(defined(&AC97_EXT_AUDIO_REV_11)) {
    sub AC97_EXT_AUDIO_REV_11 () {	0x;}
}
unless(defined(&AC97_EXT_AUDIO_REV_22)) {
    sub AC97_EXT_AUDIO_REV_22 () {	0x400;}
}
unless(defined(&AC97_EXT_AUDIO_REV_23)) {
    sub AC97_EXT_AUDIO_REV_23 () {	0x800;}
}
unless(defined(&AC97_EXT_AUDIO_REV_MASK)) {
    sub AC97_EXT_AUDIO_REV_MASK () {	0xc00;}
}
unless(defined(&AC97_EXT_AUDIO_ID)) {
    sub AC97_EXT_AUDIO_ID () {	0xc000;}
}
unless(defined(&AC97_EXT_AUDIO_BITS)) {
    sub AC97_EXT_AUDIO_BITS () {	"\020\01vra\02dra\03spdif\04vrm\05dsa0\06dsa1\07cdac\010sdac\011ldac\012amap\013rev0\014rev1\017id0\020id1";}
}
unless(defined(&AC97_SINGLERATE)) {
    sub AC97_SINGLERATE () {	48000;}
}
unless(defined(&AC97_REG_FRONT_DAC_RATE)) {
    sub AC97_REG_FRONT_DAC_RATE () {	0x2c;}
}
unless(defined(&AC97_REG_SURROUND_DAC_RATE)) {
    sub AC97_REG_SURROUND_DAC_RATE () {	0x2e;}
}
unless(defined(&AC97_REG_PCM_DAC_RATE)) {
    sub AC97_REG_PCM_DAC_RATE () {	0x30;}
}
unless(defined(&AC97_REG_PCM_ADC_RATE)) {
    sub AC97_REG_PCM_ADC_RATE () {	0x32;}
}
unless(defined(&AC97_REG_MIC_ADC_RATE)) {
    sub AC97_REG_MIC_ADC_RATE () {	0x34;}
}
unless(defined(&AC97_REG_CENTER_LFE_VOLUME)) {
    sub AC97_REG_CENTER_LFE_VOLUME () {	0x36;}
}
unless(defined(&AC97_REG_SURROUND_VOLUME)) {
    sub AC97_REG_SURROUND_VOLUME () {	0x38;}
}
unless(defined(&AC97_REG_SPDIF_CTRL)) {
    sub AC97_REG_SPDIF_CTRL () {	0x3a;}
}
unless(defined(&AC97_REG_SPDIF_CTRL_BITS)) {
    sub AC97_REG_SPDIF_CTRL_BITS () {	"\02\01pro\02/audio\03copy\04pre\014l\017drs\020valid";}
}
unless(defined(&AC97_REG_VENDOR_ID1)) {
    sub AC97_REG_VENDOR_ID1 () {	0x7c;}
}
unless(defined(&AC97_REG_VENDOR_ID2)) {
    sub AC97_REG_VENDOR_ID2 () {	0x7e;}
}
unless(defined(&AC97_VENDOR_ID_MASK)) {
    sub AC97_VENDOR_ID_MASK () {	0xffffff00;}
}
unless(defined(&AC97_AD_REG_MISC)) {
    sub AC97_AD_REG_MISC () {	0x76;}
}
unless(defined(&AC97_AD_MISC_MBG0)) {
    sub AC97_AD_MISC_MBG0 () {	0x1;}
}
unless(defined(&AC97_AD_MISC_MBG1)) {
    sub AC97_AD_MISC_MBG1 () {	0x2;}
}
unless(defined(&AC97_AD_MISC_VREFD)) {
    sub AC97_AD_MISC_VREFD () {	0x4;}
}
unless(defined(&AC97_AD_MISC_VREFH)) {
    sub AC97_AD_MISC_VREFH () {	0x8;}
}
unless(defined(&AC97_AD_MISC_SRU)) {
    sub AC97_AD_MISC_SRU () {	0x10;}
}
unless(defined(&AC97_AD_MISC_LOSEL)) {
    sub AC97_AD_MISC_LOSEL () {	0x20;}
}
unless(defined(&AC97_AD_MISC_2CMIC)) {
    sub AC97_AD_MISC_2CMIC () {	0x40;}
}
unless(defined(&AC97_AD_MISC_SPRD)) {
    sub AC97_AD_MISC_SPRD () {	0x80;}
}
unless(defined(&AC97_AD_MISC_DMIX0)) {
    sub AC97_AD_MISC_DMIX0 () {	0x100;}
}
unless(defined(&AC97_AD_MISC_DMIX1)) {
    sub AC97_AD_MISC_DMIX1 () {	0x200;}
}
unless(defined(&AC97_AD_MISC_HPSEL)) {
    sub AC97_AD_MISC_HPSEL () {	0x400;}
}
unless(defined(&AC97_AD_MISC_CLDIS)) {
    sub AC97_AD_MISC_CLDIS () {	0x800;}
}
unless(defined(&AC97_AD_MISC_LODIS)) {
    sub AC97_AD_MISC_LODIS () {	0x1000;}
}
unless(defined(&AC97_AD_MISC_MSPLT)) {
    sub AC97_AD_MISC_MSPLT () {	0x2000;}
}
unless(defined(&AC97_AD_MISC_AC97NC)) {
    sub AC97_AD_MISC_AC97NC () {	0x4000;}
}
unless(defined(&AC97_AD_MISC_DACZ)) {
    sub AC97_AD_MISC_DACZ () {	0x8000;}
}
unless(defined(&AC97_AV_REG_MULTICH)) {
    sub AC97_AV_REG_MULTICH () {	0x6a;}
}
unless(defined(&AC97_AV_MULTICH_MAGIC)) {
    sub AC97_AV_MULTICH_MAGIC () {	0x8000;}
}
unless(defined(&AC97_AV_REG_MISC)) {
    sub AC97_AV_REG_MISC () {	0x7a;}
}
unless(defined(&AC97_AV_MISC_SPDIFEN)) {
    sub AC97_AV_MISC_SPDIFEN () {	0x2;}
}
unless(defined(&AC97_AV_MISC_VREFDIS)) {
    sub AC97_AV_MISC_VREFDIS () {	0x1000;}
}
unless(defined(&AC97_CX_REG_MISC)) {
    sub AC97_CX_REG_MISC () {	0x5c;}
}
unless(defined(&AC97_CX_PCM)) {
    sub AC97_CX_PCM () {	0x;}
}
unless(defined(&AC97_CX_AC3)) {
    sub AC97_CX_AC3 () {	0x2;}
}
unless(defined(&AC97_CX_MASK)) {
    sub AC97_CX_MASK () {	0x3;}
}
unless(defined(&AC97_CX_COPYRIGHT)) {
    sub AC97_CX_COPYRIGHT () {	0x4;}
}
unless(defined(&AC97_CX_SPDIFEN)) {
    sub AC97_CX_SPDIFEN () {	0x8;}
}
1;
