require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_PCI_PCIIDE_JMICRON_REG_H)) {
    eval 'sub _DEV_PCI_PCIIDE_JMICRON_REG_H () {1;}' unless defined(&_DEV_PCI_PCIIDE_JMICRON_REG_H);
    eval 'sub JMICRON_MASTER_UDMA () {(1<< 2);}' unless defined(&JMICRON_MASTER_UDMA);
    eval 'sub JMICRON_MASTER_SHIFT () {4;}' unless defined(&JMICRON_MASTER_SHIFT);
    eval 'sub JMICRON_SLAVE_SHIFT () {12;}' unless defined(&JMICRON_SLAVE_SHIFT);
    eval 'sub JMICRON_CONF () {0x40;}' unless defined(&JMICRON_CONF);
    eval 'sub JMICRON_CHAN_EN {
        my($chan) = @_;
	    eval q((($chan == 1) ? 4: 0));
    }' unless defined(&JMICRON_CHAN_EN);
    eval 'sub JMICRON_CONF_SWAP () {(1<< 22);}' unless defined(&JMICRON_CONF_SWAP);
    eval 'sub JMICRON_CONF_40PIN () {(1<< 3);}' unless defined(&JMICRON_CONF_40PIN);
}
1;
