require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_PCI_CMPCIVAR_H_)) {
    eval 'sub _DEV_PCI_CMPCIVAR_H_ () {1;}' unless defined(&_DEV_PCI_CMPCIVAR_H_);
    eval 'sub KVADDR {
        my($dma) = @_;
	    eval q((( &void *)($dma)-> &cd_addr));
    }' unless defined(&KVADDR);
    eval 'sub DMAADDR {
        my($dma) = @_;
	    eval q((($dma)-> ($cd_map->{dm_segs[0]}->{ds_addr})));
    }' unless defined(&DMAADDR);
    eval 'sub CMPCI_DAC_VOL () {0;}' unless defined(&CMPCI_DAC_VOL);
    eval 'sub CMPCI_FM_VOL () {1;}' unless defined(&CMPCI_FM_VOL);
    eval 'sub CMPCI_CD_VOL () {2;}' unless defined(&CMPCI_CD_VOL);
    eval 'sub CMPCI_LINE_IN_VOL () {3;}' unless defined(&CMPCI_LINE_IN_VOL);
    eval 'sub CMPCI_AUX_IN_VOL () {4;}' unless defined(&CMPCI_AUX_IN_VOL);
    eval 'sub CMPCI_MIC_VOL () {5;}' unless defined(&CMPCI_MIC_VOL);
    eval 'sub CMPCI_DAC_MUTE () {6;}' unless defined(&CMPCI_DAC_MUTE);
    eval 'sub CMPCI_FM_MUTE () {7;}' unless defined(&CMPCI_FM_MUTE);
    eval 'sub CMPCI_CD_MUTE () {8;}' unless defined(&CMPCI_CD_MUTE);
    eval 'sub CMPCI_LINE_IN_MUTE () {9;}' unless defined(&CMPCI_LINE_IN_MUTE);
    eval 'sub CMPCI_AUX_IN_MUTE () {10;}' unless defined(&CMPCI_AUX_IN_MUTE);
    eval 'sub CMPCI_MIC_MUTE () {11;}' unless defined(&CMPCI_MIC_MUTE);
    eval 'sub CMPCI_MIC_PREAMP () {12;}' unless defined(&CMPCI_MIC_PREAMP);
    eval 'sub CMPCI_PCSPEAKER () {13;}' unless defined(&CMPCI_PCSPEAKER);
    eval 'sub CMPCI_RECORD_SOURCE () {14;}' unless defined(&CMPCI_RECORD_SOURCE);
    eval 'sub CMPCI_MIC_RECVOL () {15;}' unless defined(&CMPCI_MIC_RECVOL);
    eval 'sub CMPCI_PLAYBACK_MODE () {16;}' unless defined(&CMPCI_PLAYBACK_MODE);
    eval 'sub CMPCI_SPDIF_IN_SELECT () {17;}' unless defined(&CMPCI_SPDIF_IN_SELECT);
    eval 'sub CMPCI_SPDIF_IN_PHASE () {18;}' unless defined(&CMPCI_SPDIF_IN_PHASE);
    eval 'sub CMPCI_SPDIF_LOOP () {19;}' unless defined(&CMPCI_SPDIF_LOOP);
    eval 'sub CMPCI_SPDIF_OUT_PLAYBACK () {20;}' unless defined(&CMPCI_SPDIF_OUT_PLAYBACK);
    eval 'sub CMPCI_SPDIF_OUT_VOLTAGE () {21;}' unless defined(&CMPCI_SPDIF_OUT_VOLTAGE);
    eval 'sub CMPCI_MONITOR_DAC () {22;}' unless defined(&CMPCI_MONITOR_DAC);
    eval 'sub CMPCI_MASTER_VOL () {23;}' unless defined(&CMPCI_MASTER_VOL);
    eval 'sub CMPCI_REAR () {24;}' unless defined(&CMPCI_REAR);
    eval 'sub CMPCI_INDIVIDUAL () {25;}' unless defined(&CMPCI_INDIVIDUAL);
    eval 'sub CMPCI_REVERSE () {26;}' unless defined(&CMPCI_REVERSE);
    eval 'sub CMPCI_SURROUND () {27;}' unless defined(&CMPCI_SURROUND);
    eval 'sub CMPCI_NDEVS () {28;}' unless defined(&CMPCI_NDEVS);
    eval 'sub CMPCI_INPUT_CLASS () {28;}' unless defined(&CMPCI_INPUT_CLASS);
    eval 'sub CMPCI_OUTPUT_CLASS () {29;}' unless defined(&CMPCI_OUTPUT_CLASS);
    eval 'sub CMPCI_RECORD_CLASS () {30;}' unless defined(&CMPCI_RECORD_CLASS);
    eval 'sub CMPCI_PLAYBACK_CLASS () {31;}' unless defined(&CMPCI_PLAYBACK_CLASS);
    eval 'sub CMPCI_SPDIF_CLASS () {32;}' unless defined(&CMPCI_SPDIF_CLASS);
    eval 'sub CmpciNspdif () {"spdif";}' unless defined(&CmpciNspdif);
    eval 'sub CmpciCspdif () {"spdif";}' unless defined(&CmpciCspdif);
    eval 'sub CmpciNspdin () {"spdin";}' unless defined(&CmpciNspdin);
    eval 'sub CmpciNspdin1 () {"spdin1";}' unless defined(&CmpciNspdin1);
    eval 'sub CmpciNspdin2 () {"spdin2";}' unless defined(&CmpciNspdin2);
    eval 'sub CmpciNspdout () {"spdout";}' unless defined(&CmpciNspdout);
    eval 'sub CmpciNplayback () {"playback";}' unless defined(&CmpciNplayback);
    eval 'sub CmpciCplayback () {"playback";}' unless defined(&CmpciCplayback);
    eval 'sub CmpciNlegacy () {"legacy";}' unless defined(&CmpciNlegacy);
    eval 'sub CmpciNvoltage () {"voltage";}' unless defined(&CmpciNvoltage);
    eval 'sub CmpciNphase () {"phase";}' unless defined(&CmpciNphase);
    eval 'sub CmpciNpositive () {"positive";}' unless defined(&CmpciNpositive);
    eval 'sub CmpciNnegative () {"negative";}' unless defined(&CmpciNnegative);
    eval 'sub CmpciNrear () {"rear";}' unless defined(&CmpciNrear);
    eval 'sub CmpciNindividual () {"individual";}' unless defined(&CmpciNindividual);
    eval 'sub CmpciNreverse () {"reverse";}' unless defined(&CmpciNreverse);
    eval 'sub CmpciNhigh_v () {"5V";}' unless defined(&CmpciNhigh_v);
    eval 'sub CmpciNlow_v () {"0.5V";}' unless defined(&CmpciNlow_v);
    eval 'sub CmpciNsurround () {"surround";}' unless defined(&CmpciNsurround);
    eval 'sub CMPCI_RECORD_SOURCE_MIC () { &CMPCI_SB16_MIXER_MIC_SRC;}' unless defined(&CMPCI_RECORD_SOURCE_MIC);
    eval 'sub CMPCI_RECORD_SOURCE_CD () { &CMPCI_SB16_MIXER_CD_SRC_R;}' unless defined(&CMPCI_RECORD_SOURCE_CD);
    eval 'sub CMPCI_RECORD_SOURCE_LINE_IN () { &CMPCI_SB16_MIXER_LINE_SRC_R;}' unless defined(&CMPCI_RECORD_SOURCE_LINE_IN);
    eval 'sub CMPCI_RECORD_SOURCE_AUX_IN () {(1<< 8);}' unless defined(&CMPCI_RECORD_SOURCE_AUX_IN);
    eval 'sub CMPCI_RECORD_SOURCE_WAVE () {(1<< 9);}' unless defined(&CMPCI_RECORD_SOURCE_WAVE);
    eval 'sub CMPCI_RECORD_SOURCE_FM () { &CMPCI_SB16_MIXER_FM_SRC_R;}' unless defined(&CMPCI_RECORD_SOURCE_FM);
    eval 'sub CMPCI_RECORD_SOURCE_SPDIF () {(1<< 10);}' unless defined(&CMPCI_RECORD_SOURCE_SPDIF);
    eval 'sub CMPCI_PLAYBACK_MODE_WAVE () {0;}' unless defined(&CMPCI_PLAYBACK_MODE_WAVE);
    eval 'sub CMPCI_PLAYBACK_MODE_SPDIF () {1;}' unless defined(&CMPCI_PLAYBACK_MODE_SPDIF);
    eval 'sub CMPCI_SPDIFIN_SPDIFIN2 () {0x1;}' unless defined(&CMPCI_SPDIFIN_SPDIFIN2);
    eval 'sub CMPCI_SPDIFIN_SPDIFOUT () {0x2;}' unless defined(&CMPCI_SPDIFIN_SPDIFOUT);
    eval 'sub CMPCI_SPDIF_IN_SPDIN1 () {0;}' unless defined(&CMPCI_SPDIF_IN_SPDIN1);
    eval 'sub CMPCI_SPDIF_IN_SPDIN2 () { &CMPCI_SPDIFIN_SPDIFIN2;}' unless defined(&CMPCI_SPDIF_IN_SPDIN2);
    eval 'sub CMPCI_SPDIF_IN_SPDOUT () {( &CMPCI_SPDIFIN_SPDIFIN2| &CMPCI_SPDIFIN_SPDIFOUT);}' unless defined(&CMPCI_SPDIF_IN_SPDOUT);
    eval 'sub CMPCI_SPDIF_IN_PHASE_POSITIVE () {0;}' unless defined(&CMPCI_SPDIF_IN_PHASE_POSITIVE);
    eval 'sub CMPCI_SPDIF_IN_PHASE_NEGATIVE () {1;}' unless defined(&CMPCI_SPDIF_IN_PHASE_NEGATIVE);
    eval 'sub CMPCI_SPDIF_LOOP_OFF () {0;}' unless defined(&CMPCI_SPDIF_LOOP_OFF);
    eval 'sub CMPCI_SPDIF_LOOP_ON () {1;}' unless defined(&CMPCI_SPDIF_LOOP_ON);
    eval 'sub CMPCI_SPDIF_OUT_PLAYBACK_WAVE () {0;}' unless defined(&CMPCI_SPDIF_OUT_PLAYBACK_WAVE);
    eval 'sub CMPCI_SPDIF_OUT_PLAYBACK_LEGACY () {1;}' unless defined(&CMPCI_SPDIF_OUT_PLAYBACK_LEGACY);
    eval 'sub CMPCI_SPDIF_OUT_VOLTAGE_HIGH () {0;}' unless defined(&CMPCI_SPDIF_OUT_VOLTAGE_HIGH);
    eval 'sub CMPCI_SPDIF_OUT_VOLTAGE_LOW () {1;}' unless defined(&CMPCI_SPDIF_OUT_VOLTAGE_LOW);
    eval 'sub CMPCI_MONDAC_ENABLE () {0x1;}' unless defined(&CMPCI_MONDAC_ENABLE);
    eval 'sub CMPCI_MONDAC_SPDOUT () {0x2;}' unless defined(&CMPCI_MONDAC_SPDOUT);
    eval 'sub CMPCI_MONITOR_DAC_OFF () {0;}' unless defined(&CMPCI_MONITOR_DAC_OFF);
    eval 'sub CMPCI_MONITOR_DAC_SPDIN () { &CMPCI_MONDAC_ENABLE;}' unless defined(&CMPCI_MONITOR_DAC_SPDIN);
    eval 'sub CMPCI_MONITOR_DAC_SPDOUT () {( &CMPCI_MONDAC_ENABLE |  &CMPCI_MONDAC_SPDOUT);}' unless defined(&CMPCI_MONITOR_DAC_SPDOUT);
    eval 'sub CMPCI_CAP_SPDIN () {0x1;}' unless defined(&CMPCI_CAP_SPDIN);
    eval 'sub CMPCI_CAP_SPDOUT () {0x2;}' unless defined(&CMPCI_CAP_SPDOUT);
    eval 'sub CMPCI_CAP_SPDLOOP () {0x4;}' unless defined(&CMPCI_CAP_SPDLOOP);
    eval 'sub CMPCI_CAP_SPDLEGACY () {0x8;}' unless defined(&CMPCI_CAP_SPDLEGACY);
    eval 'sub CMPCI_CAP_SPDIN_MONITOR () {0x10;}' unless defined(&CMPCI_CAP_SPDIN_MONITOR);
    eval 'sub CMPCI_CAP_XSPDOUT () {0x20;}' unless defined(&CMPCI_CAP_XSPDOUT);
    eval 'sub CMPCI_CAP_SPDOUT_VOLTAGE () {0x40;}' unless defined(&CMPCI_CAP_SPDOUT_VOLTAGE);
    eval 'sub CMPCI_CAP_SPDOUT_48K () {0x80;}' unless defined(&CMPCI_CAP_SPDOUT_48K);
    eval 'sub CMPCI_CAP_SURROUND () {0x100;}' unless defined(&CMPCI_CAP_SURROUND);
    eval 'sub CMPCI_CAP_REAR () {0x200;}' unless defined(&CMPCI_CAP_REAR);
    eval 'sub CMPCI_CAP_INDIVIDUAL_REAR () {0x400;}' unless defined(&CMPCI_CAP_INDIVIDUAL_REAR);
    eval 'sub CMPCI_CAP_REVERSE_FR () {0x800;}' unless defined(&CMPCI_CAP_REVERSE_FR);
    eval 'sub CMPCI_CAP_SPDIN_PHASE () {0x1000;}' unless defined(&CMPCI_CAP_SPDIN_PHASE);
    eval 'sub CMPCI_CAP_2ND_SPDIN () {0x2000;}' unless defined(&CMPCI_CAP_2ND_SPDIN);
    eval 'sub CMPCI_CAP_CMI8338 () {( &CMPCI_CAP_SPDIN |  &CMPCI_CAP_SPDOUT |  &CMPCI_CAP_SPDLOOP |  &CMPCI_CAP_SPDLEGACY);}' unless defined(&CMPCI_CAP_CMI8338);
    eval 'sub CMPCI_CAP_CMI8738 () {( &CMPCI_CAP_CMI8338 |  &CMPCI_CAP_SPDIN_MONITOR |  &CMPCI_CAP_XSPDOUT |  &CMPCI_CAP_SPDOUT_VOLTAGE |  &CMPCI_CAP_SPDOUT_48K |  &CMPCI_CAP_SURROUND |  &CMPCI_CAP_REAR |  &CMPCI_CAP_INDIVIDUAL_REAR |  &CMPCI_CAP_REVERSE_FR |  &CMPCI_CAP_SPDIN_PHASE |  &CMPCI_CAP_2ND_SPDIN );}' unless defined(&CMPCI_CAP_CMI8738);
    eval 'sub CMPCI_ISCAP {
        my($sc, $name) = @_;
	    eval q(( ($sc->{sc_capable}) &  &CMPCI_CAP_  $name));
    }' unless defined(&CMPCI_ISCAP);
    eval 'sub CMPCI_LEFT () {0;}' unless defined(&CMPCI_LEFT);
    eval 'sub CMPCI_RIGHT () {1;}' unless defined(&CMPCI_RIGHT);
    eval 'sub CMPCI_LR () {0;}' unless defined(&CMPCI_LR);
}
1;
