require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&KVADDR)) {
    sub KVADDR {
	local($dma) = @_;
	eval q((( &void *)($dma)-> &cd_addr));
    }
}
unless(defined(&DMAADDR)) {
    sub DMAADDR {
	local($dma) = @_;
	eval q((($dma)-> ($cd_map->{dm_segs[0]}->{ds_addr})));
    }
}
unless(defined(&CMPCI_MASTER_VOL)) {
    sub CMPCI_MASTER_VOL () {	0;}
}
unless(defined(&CMPCI_FM_VOL)) {
    sub CMPCI_FM_VOL () {	1;}
}
unless(defined(&CMPCI_CD_VOL)) {
    sub CMPCI_CD_VOL () {	2;}
}
unless(defined(&CMPCI_VOICE_VOL)) {
    sub CMPCI_VOICE_VOL () {	3;}
}
unless(defined(&CMPCI_OUTPUT_CLASS)) {
    sub CMPCI_OUTPUT_CLASS () {	4;}
}
unless(defined(&CMPCI_MIC_VOL)) {
    sub CMPCI_MIC_VOL () {	5;}
}
unless(defined(&CMPCI_LINE_IN_VOL)) {
    sub CMPCI_LINE_IN_VOL () {	6;}
}
unless(defined(&CMPCI_RECORD_SOURCE)) {
    sub CMPCI_RECORD_SOURCE () {	7;}
}
unless(defined(&CMPCI_TREBLE)) {
    sub CMPCI_TREBLE () {	8;}
}
unless(defined(&CMPCI_BASS)) {
    sub CMPCI_BASS () {	9;}
}
unless(defined(&CMPCI_RECORD_CLASS)) {
    sub CMPCI_RECORD_CLASS () {	10;}
}
unless(defined(&CMPCI_INPUT_CLASS)) {
    sub CMPCI_INPUT_CLASS () {	11;}
}
unless(defined(&CMPCI_PCSPEAKER)) {
    sub CMPCI_PCSPEAKER () {	12;}
}
unless(defined(&CMPCI_INPUT_GAIN)) {
    sub CMPCI_INPUT_GAIN () {	13;}
}
unless(defined(&CMPCI_OUTPUT_GAIN)) {
    sub CMPCI_OUTPUT_GAIN () {	14;}
}
unless(defined(&CMPCI_AGC)) {
    sub CMPCI_AGC () {	15;}
}
unless(defined(&CMPCI_EQUALIZATION_CLASS)) {
    sub CMPCI_EQUALIZATION_CLASS () {	16;}
}
unless(defined(&CMPCI_CD_IN_MUTE)) {
    sub CMPCI_CD_IN_MUTE () {	17;}
}
unless(defined(&CMPCI_MIC_IN_MUTE)) {
    sub CMPCI_MIC_IN_MUTE () {	18;}
}
unless(defined(&CMPCI_LINE_IN_MUTE)) {
    sub CMPCI_LINE_IN_MUTE () {	19;}
}
unless(defined(&CMPCI_FM_IN_MUTE)) {
    sub CMPCI_FM_IN_MUTE () {	20;}
}
unless(defined(&CMPCI_CD_SWAP)) {
    sub CMPCI_CD_SWAP () {	21;}
}
unless(defined(&CMPCI_MIC_SWAP)) {
    sub CMPCI_MIC_SWAP () {	22;}
}
unless(defined(&CMPCI_LINE_SWAP)) {
    sub CMPCI_LINE_SWAP () {	23;}
}
unless(defined(&CMPCI_FM_SWAP)) {
    sub CMPCI_FM_SWAP () {	24;}
}
unless(defined(&CMPCI_CD_OUT_MUTE)) {
    sub CMPCI_CD_OUT_MUTE () {	25;}
}
unless(defined(&CMPCI_MIC_OUT_MUTE)) {
    sub CMPCI_MIC_OUT_MUTE () {	26;}
}
unless(defined(&CMPCI_LINE_OUT_MUTE)) {
    sub CMPCI_LINE_OUT_MUTE () {	27;}
}
if(defined(&CMPCI_SPDIF_SUPPORT)) {
    eval 'sub CMPCI_SPDIF_IN () {28;}' unless defined(&CMPCI_SPDIF_IN);
    eval 'sub CMPCI_SPDIF_IN_MUTE () {29;}' unless defined(&CMPCI_SPDIF_IN_MUTE);
    eval 'sub CmpciNspdif () {"spdif";}' unless defined(&CmpciNspdif);
    eval 'sub CMPCI_NDEVS () {30;}' unless defined(&CMPCI_NDEVS);
} else {
    eval 'sub CMPCI_NDEVS () {28;}' unless defined(&CMPCI_NDEVS);
}
unless(defined(&CMPCI_IS_IN_MUTE)) {
    sub CMPCI_IS_IN_MUTE {
	local($x) = @_;
	eval q((($x) <  &CMPCI_CD_SWAP));
    }
}
unless(defined(&CMPCI_LEFT)) {
    sub CMPCI_LEFT () {	0;}
}
unless(defined(&CMPCI_RIGHT)) {
    sub CMPCI_RIGHT () {	1;}
}
unless(defined(&CMPCI_LR)) {
    sub CMPCI_LR () {	0;}
}
1;
