require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&SYS_DEV_PCI_ENVYVAR_H)) {
    eval 'sub SYS_DEV_PCI_ENVYVAR_H () {1;}' unless defined(&SYS_DEV_PCI_ENVYVAR_H);
    require 'sys/types.ph';
    require 'sys/device.ph';
    require 'sys/time.ph';
    require 'dev/audio_if.ph';
    if(defined(&ENVY_DEBUG)) {
	eval 'sub ENVY_NINTR () {16;}' unless defined(&ENVY_NINTR);
    }
    eval 'sub ENVY_EEPROM_MAXSZ () {32;}' unless defined(&ENVY_EEPROM_MAXSZ);
    eval 'sub ENVY_MIX_CLASSIN () {0;}' unless defined(&ENVY_MIX_CLASSIN);
    eval 'sub ENVY_MIX_CLASSOUT () {1;}' unless defined(&ENVY_MIX_CLASSOUT);
    eval 'sub ENVY_MIX_CLASSMON () {2;}' unless defined(&ENVY_MIX_CLASSMON);
    eval 'sub ENVY_MIX_NCLASS () {3;}' unless defined(&ENVY_MIX_NCLASS);
    eval 'sub ENVY_MIX_NOUTSRC () {10;}' unless defined(&ENVY_MIX_NOUTSRC);
    eval 'sub ENVY_MIX_NMONITOR () {20;}' unless defined(&ENVY_MIX_NMONITOR);
    eval 'sub ENVY_MIX_OUTSRC_LINEIN () {0;}' unless defined(&ENVY_MIX_OUTSRC_LINEIN);
    eval 'sub ENVY_MIX_OUTSRC_SPDIN () {8;}' unless defined(&ENVY_MIX_OUTSRC_SPDIN);
    eval 'sub ENVY_MIX_OUTSRC_DMA () {10;}' unless defined(&ENVY_MIX_OUTSRC_DMA);
    eval 'sub ENVY_MIX_OUTSRC_MON () {11;}' unless defined(&ENVY_MIX_OUTSRC_MON);
}
1;
