require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_PCI_FMSREG_H_)) {
    eval 'sub _DEV_PCI_FMSREG_H_ () {1;}' unless defined(&_DEV_PCI_FMSREG_H_);
    eval 'sub FM_PCM_VOLUME () {0x;}' unless defined(&FM_PCM_VOLUME);
    eval 'sub FM_FM_VOLUME () {0x2;}' unless defined(&FM_FM_VOLUME);
    eval 'sub FM_I2S_VOLUME () {0x4;}' unless defined(&FM_I2S_VOLUME);
    eval 'sub FM_RECORD_SOURCE () {0x6;}' unless defined(&FM_RECORD_SOURCE);
    eval 'sub FM_PLAY_CTL () {0x8;}' unless defined(&FM_PLAY_CTL);
    eval 'sub FM_PLAY_RATE_MASK () {0xf00;}' unless defined(&FM_PLAY_RATE_MASK);
    eval 'sub FM_PLAY_BUF1_LAST () {0x1;}' unless defined(&FM_PLAY_BUF1_LAST);
    eval 'sub FM_PLAY_BUF2_LAST () {0x2;}' unless defined(&FM_PLAY_BUF2_LAST);
    eval 'sub FM_PLAY_START () {0x20;}' unless defined(&FM_PLAY_START);
    eval 'sub FM_PLAY_PAUSE () {0x40;}' unless defined(&FM_PLAY_PAUSE);
    eval 'sub FM_PLAY_STOPNOW () {0x80;}' unless defined(&FM_PLAY_STOPNOW);
    eval 'sub FM_PLAY_16BIT () {0x4000;}' unless defined(&FM_PLAY_16BIT);
    eval 'sub FM_PLAY_STEREO () {0x8000;}' unless defined(&FM_PLAY_STEREO);
    eval 'sub FM_PLAY_DMALEN () {0xa;}' unless defined(&FM_PLAY_DMALEN);
    eval 'sub FM_PLAY_DMABUF1 () {0xc;}' unless defined(&FM_PLAY_DMABUF1);
    eval 'sub FM_PLAY_DMABUF2 () {0x10;}' unless defined(&FM_PLAY_DMABUF2);
    eval 'sub FM_REC_CTL () {0x14;}' unless defined(&FM_REC_CTL);
    eval 'sub FM_REC_RATE_MASK () {0xf00;}' unless defined(&FM_REC_RATE_MASK);
    eval 'sub FM_REC_BUF1_LAST () {0x1;}' unless defined(&FM_REC_BUF1_LAST);
    eval 'sub FM_REC_BUF2_LAST () {0x2;}' unless defined(&FM_REC_BUF2_LAST);
    eval 'sub FM_REC_START () {0x20;}' unless defined(&FM_REC_START);
    eval 'sub FM_REC_PAUSE () {0x40;}' unless defined(&FM_REC_PAUSE);
    eval 'sub FM_REC_STOPNOW () {0x80;}' unless defined(&FM_REC_STOPNOW);
    eval 'sub FM_REC_16BIT () {0x4000;}' unless defined(&FM_REC_16BIT);
    eval 'sub FM_REC_STEREO () {0x8000;}' unless defined(&FM_REC_STEREO);
    eval 'sub FM_REC_DMALEN () {0x16;}' unless defined(&FM_REC_DMALEN);
    eval 'sub FM_REC_DMABUF1 () {0x18;}' unless defined(&FM_REC_DMABUF1);
    eval 'sub FM_REC_DMABUF2 () {0x1c;}' unless defined(&FM_REC_DMABUF2);
    eval 'sub FM_CODEC_CTL () {0x22;}' unless defined(&FM_CODEC_CTL);
    eval 'sub FM_VOLUME () {0x26;}' unless defined(&FM_VOLUME);
    eval 'sub FM_VOLUME_MUTE () {0x8000;}' unless defined(&FM_VOLUME_MUTE);
    eval 'sub FM_CODEC_CMD () {0x2a;}' unless defined(&FM_CODEC_CMD);
    eval 'sub FM_CODEC_CMD_READ () {0x80;}' unless defined(&FM_CODEC_CMD_READ);
    eval 'sub FM_CODEC_CMD_VALID () {0x100;}' unless defined(&FM_CODEC_CMD_VALID);
    eval 'sub FM_CODEC_CMD_BUSY () {0x200;}' unless defined(&FM_CODEC_CMD_BUSY);
    eval 'sub FM_CODEC_DATA () {0x2c;}' unless defined(&FM_CODEC_DATA);
    eval 'sub FM_IO_CTL () {0x52;}' unless defined(&FM_IO_CTL);
    eval 'sub FM_IO_GPIO {
        my($x) = @_;
	    eval q((($x) << 12));
    }' unless defined(&FM_IO_GPIO);
    eval 'sub FM_IO_GPIO_ALL () { &FM_IO_GPIO(0xf);}' unless defined(&FM_IO_GPIO_ALL);
    eval 'sub FM_IO_GPIO_IN {
        my($x) = @_;
	    eval q((($x) << 8));
    }' unless defined(&FM_IO_GPIO_IN);
    eval 'sub FM_IO_PIN0 () {0x1;}' unless defined(&FM_IO_PIN0);
    eval 'sub FM_IO_PIN1 () {0x2;}' unless defined(&FM_IO_PIN1);
    eval 'sub FM_IO_PIN2 () {0x4;}' unless defined(&FM_IO_PIN2);
    eval 'sub FM_IO_PIN3 () {0x8;}' unless defined(&FM_IO_PIN3);
    eval 'sub FM_CARD_CTL () {0x54;}' unless defined(&FM_CARD_CTL);
    eval 'sub FM_INTMASK () {0x56;}' unless defined(&FM_INTMASK);
    eval 'sub FM_INTMASK_PLAY () {0x1;}' unless defined(&FM_INTMASK_PLAY);
    eval 'sub FM_INTMASK_REC () {0x2;}' unless defined(&FM_INTMASK_REC);
    eval 'sub FM_INTMASK_VOL () {0x40;}' unless defined(&FM_INTMASK_VOL);
    eval 'sub FM_INTMASK_MPU () {0x80;}' unless defined(&FM_INTMASK_MPU);
    eval 'sub FM_INTSTATUS () {0x5a;}' unless defined(&FM_INTSTATUS);
    eval 'sub FM_INTSTATUS_PLAY () {0x100;}' unless defined(&FM_INTSTATUS_PLAY);
    eval 'sub FM_INTSTATUS_REC () {0x200;}' unless defined(&FM_INTSTATUS_REC);
    eval 'sub FM_INTSTATUS_VOL () {0x4000;}' unless defined(&FM_INTSTATUS_VOL);
    eval 'sub FM_INTSTATUS_MPU () {0x8000;}' unless defined(&FM_INTSTATUS_MPU);
}
1;
