require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__DEV_IC_MTD8XXREG_H__)) {
    eval 'sub __DEV_IC_MTD8XXREG_H__ () {1;}' unless defined(&__DEV_IC_MTD8XXREG_H__);
    eval 'sub MTD_PCI_LOIO () {0x10;}' unless defined(&MTD_PCI_LOIO);
    eval 'sub MTD_PCI_LOMEM () {0x14;}' unless defined(&MTD_PCI_LOMEM);
    eval 'sub MTD_TIMEOUT () {1000;}' unless defined(&MTD_TIMEOUT);
    eval 'sub MII_OPCODE_RD () {0x6000;}' unless defined(&MII_OPCODE_RD);
    eval 'sub MII_OPCODE_WR () {0x5002;}' unless defined(&MII_OPCODE_WR);
    eval 'sub MTD_PAR0 () {0x;}' unless defined(&MTD_PAR0);
    eval 'sub MTD_PAR4 () {0x4;}' unless defined(&MTD_PAR4);
    eval 'sub MTD_MAR0 () {0x8;}' unless defined(&MTD_MAR0);
    eval 'sub MTD_MAR4 () {0xc;}' unless defined(&MTD_MAR4);
    eval 'sub MTD_TCRRCR () {0x18;}' unless defined(&MTD_TCRRCR);
    eval 'sub MTD_BCR () {0x1c;}' unless defined(&MTD_BCR);
    eval 'sub MTD_TXPDR () {0x20;}' unless defined(&MTD_TXPDR);
    eval 'sub MTD_RXPDR () {0x24;}' unless defined(&MTD_RXPDR);
    eval 'sub MTD_RXCWP () {0x28;}' unless defined(&MTD_RXCWP);
    eval 'sub MTD_TXLBA () {0x2c;}' unless defined(&MTD_TXLBA);
    eval 'sub MTD_RXLBA () {0x30;}' unless defined(&MTD_RXLBA);
    eval 'sub MTD_ISR () {0x34;}' unless defined(&MTD_ISR);
    eval 'sub MTD_IMR () {0x38;}' unless defined(&MTD_IMR);
    eval 'sub MTD_TSR () {0x48;}' unless defined(&MTD_TSR);
    eval 'sub MTD_MIIMGT () {0x40;}' unless defined(&MTD_MIIMGT);
    eval 'sub MTD_PHYCSR () {0x4c;}' unless defined(&MTD_PHYCSR);
    eval 'sub RCR_RXS () {0x8000;}' unless defined(&RCR_RXS);
    eval 'sub RCR_EIEN () {0x4000;}' unless defined(&RCR_EIEN);
    eval 'sub RCR_RFCEN () {0x2000;}' unless defined(&RCR_RFCEN);
    eval 'sub RCR_NDFA () {0x1000;}' unless defined(&RCR_NDFA);
    eval 'sub RCR_RBLEN () {0x800;}' unless defined(&RCR_RBLEN);
    eval 'sub RCR_RPBL1 () {0x;}' unless defined(&RCR_RPBL1);
    eval 'sub RCR_RPBL4 () {0x100;}' unless defined(&RCR_RPBL4);
    eval 'sub RCR_RPBL8 () {0x200;}' unless defined(&RCR_RPBL8);
    eval 'sub RCR_RPBL16 () {0x300;}' unless defined(&RCR_RPBL16);
    eval 'sub RCR_RPBL32 () {0x400;}' unless defined(&RCR_RPBL32);
    eval 'sub RCR_RPBL64 () {0x500;}' unless defined(&RCR_RPBL64);
    eval 'sub RCR_RPBL128 () {0x600;}' unless defined(&RCR_RPBL128);
    eval 'sub RCR_RPBL512 () {0x700;}' unless defined(&RCR_RPBL512);
    eval 'sub RCR_PROM () {0x80;}' unless defined(&RCR_PROM);
    eval 'sub RCR_AB () {0x40;}' unless defined(&RCR_AB);
    eval 'sub RCR_AM () {0x20;}' unless defined(&RCR_AM);
    eval 'sub RCR_ARP () {0x8;}' unless defined(&RCR_ARP);
    eval 'sub RCR_ALP () {0x4;}' unless defined(&RCR_ALP);
    eval 'sub RCR_SEP () {0x2;}' unless defined(&RCR_SEP);
    eval 'sub RCR_RE () {0x1;}' unless defined(&RCR_RE);
    eval 'sub TCR_TXS () {0x80000000;}' unless defined(&TCR_TXS);
    eval 'sub TCR_BACKOPT () {0x10000000;}' unless defined(&TCR_BACKOPT);
    eval 'sub TCR_FBACK () {0x8000000;}' unless defined(&TCR_FBACK);
    eval 'sub TCR_ENHANCED () {0x2000000;}' unless defined(&TCR_ENHANCED);
    eval 'sub TCR_TFCEN () {0x1000000;}' unless defined(&TCR_TFCEN);
    eval 'sub TCR_TFT64 () {0x;}' unless defined(&TCR_TFT64);
    eval 'sub TCR_TFT32 () {0x200000;}' unless defined(&TCR_TFT32);
    eval 'sub TCR_TFT128 () {0x400000;}' unless defined(&TCR_TFT128);
    eval 'sub TCR_TFT256 () {0x600000;}' unless defined(&TCR_TFT256);
    eval 'sub TCR_TFT512 () {0x800000;}' unless defined(&TCR_TFT512);
    eval 'sub TCR_TFT768 () {0xa00000;}' unless defined(&TCR_TFT768);
    eval 'sub TCR_TFT1024 () {0xc00000;}' unless defined(&TCR_TFT1024);
    eval 'sub TCR_TFTSF () {0xe00000;}' unless defined(&TCR_TFTSF);
    eval 'sub TCR_FD () {0x100000;}' unless defined(&TCR_FD);
    eval 'sub TCR_PS () {0x80000;}' unless defined(&TCR_PS);
    eval 'sub TCR_TE () {0x40000;}' unless defined(&TCR_TE);
    eval 'sub TCR_LB () {0x20000;}' unless defined(&TCR_LB);
    eval 'sub BCR_PROG () {0x200;}' unless defined(&BCR_PROG);
    eval 'sub BCR_RLE () {0x100;}' unless defined(&BCR_RLE);
    eval 'sub BCR_RME () {0x80;}' unless defined(&BCR_RME);
    eval 'sub BCR_WIE () {0x40;}' unless defined(&BCR_WIE);
    eval 'sub BCR_PBL1 () {0x;}' unless defined(&BCR_PBL1);
    eval 'sub BCR_PBL4 () {0x8;}' unless defined(&BCR_PBL4);
    eval 'sub BCR_PBL8 () {0x10;}' unless defined(&BCR_PBL8);
    eval 'sub BCR_PBL16 () {0x18;}' unless defined(&BCR_PBL16);
    eval 'sub BCR_PBL32 () {0x20;}' unless defined(&BCR_PBL32);
    eval 'sub BCR_PBL64 () {0x28;}' unless defined(&BCR_PBL64);
    eval 'sub BCR_PBL128 () {0x30;}' unless defined(&BCR_PBL128);
    eval 'sub BCR_PBL512 () {0x38;}' unless defined(&BCR_PBL512);
    eval 'sub BCR_SWR () {0x1;}' unless defined(&BCR_SWR);
    eval 'sub ISR_PDF () {0x40000;}' unless defined(&ISR_PDF);
    eval 'sub ISR_RFCON () {0x20000;}' unless defined(&ISR_RFCON);
    eval 'sub ISR_RFCOFF () {0x10000;}' unless defined(&ISR_RFCOFF);
    eval 'sub ISR_LSC () {0x8000;}' unless defined(&ISR_LSC);
    eval 'sub ISR_ANC () {0x4000;}' unless defined(&ISR_ANC);
    eval 'sub ISR_FBE () {0x2000;}' unless defined(&ISR_FBE);
    eval 'sub ISR_ETMASK () {0x1800;}' unless defined(&ISR_ETMASK);
    eval 'sub ISR_ET {
        my($x) = @_;
	    eval q((($x) &  &ISR_ETMASK));
    }' unless defined(&ISR_ET);
    eval 'sub ISR_ETPARITY () {0x;}' unless defined(&ISR_ETPARITY);
    eval 'sub ISR_ETMASTER () {0x800;}' unless defined(&ISR_ETMASTER);
    eval 'sub ISR_ETTARGET () {0x1000;}' unless defined(&ISR_ETTARGET);
    eval 'sub ISR_TUNF () {0x400;}' unless defined(&ISR_TUNF);
    eval 'sub ISR_ROVF () {0x200;}' unless defined(&ISR_ROVF);
    eval 'sub ISR_ETI () {0x100;}' unless defined(&ISR_ETI);
    eval 'sub ISR_ERI () {0x80;}' unless defined(&ISR_ERI);
    eval 'sub ISR_CNTOVF () {0x40;}' unless defined(&ISR_CNTOVF);
    eval 'sub ISR_RBU () {0x20;}' unless defined(&ISR_RBU);
    eval 'sub ISR_TBU () {0x10;}' unless defined(&ISR_TBU);
    eval 'sub ISR_TI () {0x8;}' unless defined(&ISR_TI);
    eval 'sub ISR_RI () {0x4;}' unless defined(&ISR_RI);
    eval 'sub ISR_RXERI () {0x2;}' unless defined(&ISR_RXERI);
    eval 'sub ISR_INTRS () {( &ISR_RBU |  &ISR_TBU |  &ISR_TI |  &ISR_RI |  &ISR_ETI);}' unless defined(&ISR_INTRS);
    eval 'sub IMR_MPDF () {0x40000;}' unless defined(&IMR_MPDF);
    eval 'sub IMR_MRFCON () {0x20000;}' unless defined(&IMR_MRFCON);
    eval 'sub IMR_MRFCOFF () {0x10000;}' unless defined(&IMR_MRFCOFF);
    eval 'sub IMR_MLSC () {0x8000;}' unless defined(&IMR_MLSC);
    eval 'sub IMR_MANC () {0x4000;}' unless defined(&IMR_MANC);
    eval 'sub IMR_MFBE () {0x2000;}' unless defined(&IMR_MFBE);
    eval 'sub IMR_MTUNF () {0x400;}' unless defined(&IMR_MTUNF);
    eval 'sub IMR_MROVF () {0x200;}' unless defined(&IMR_MROVF);
    eval 'sub IMR_METI () {0x100;}' unless defined(&IMR_METI);
    eval 'sub IMR_MERI () {0x80;}' unless defined(&IMR_MERI);
    eval 'sub IMR_MCNTOVF () {0x40;}' unless defined(&IMR_MCNTOVF);
    eval 'sub IMR_MRBU () {0x20;}' unless defined(&IMR_MRBU);
    eval 'sub IMR_MTBU () {0x10;}' unless defined(&IMR_MTBU);
    eval 'sub IMR_MTI () {0x8;}' unless defined(&IMR_MTI);
    eval 'sub IMR_MRI () {0x4;}' unless defined(&IMR_MRI);
    eval 'sub IMR_MRXERI () {0x2;}' unless defined(&IMR_MRXERI);
    eval 'sub IMR_INTRS () {( &IMR_MRBU |  &IMR_MTBU |  &IMR_MTI |  &IMR_MRI |  &IMR_METI);}' unless defined(&IMR_INTRS);
    eval 'sub TSR_NCR_MASK () {0xffff;}' unless defined(&TSR_NCR_MASK);
    eval 'sub TSR_NCR_SHIFT () {0;}' unless defined(&TSR_NCR_SHIFT);
    eval 'sub TSR_NCR_GET {
        my($x) = @_;
	    eval q(((($x) &  &TSR_NCR_MASK) >>  &TSR_NCR_SHIFT));
    }' unless defined(&TSR_NCR_GET);
    eval 'sub MIIMGT_READ () {0x;}' unless defined(&MIIMGT_READ);
    eval 'sub MIIMGT_WRITE () {0x8;}' unless defined(&MIIMGT_WRITE);
    eval 'sub MIIMGT_MDO () {0x4;}' unless defined(&MIIMGT_MDO);
    eval 'sub MIIMGT_MDI () {0x2;}' unless defined(&MIIMGT_MDI);
    eval 'sub MIIMGT_MDC () {0x1;}' unless defined(&MIIMGT_MDC);
    eval 'sub MIIMGT_MASK () {0xf;}' unless defined(&MIIMGT_MASK);
    eval 'sub CSR_READ_1 {
        my($reg) = @_;
	    eval q( &bus_space_read_1( ($sc->{sc_bust}),  ($sc->{sc_bush}), $reg));
    }' unless defined(&CSR_READ_1);
    eval 'sub CSR_WRITE_1 {
        my($reg, $val) = @_;
	    eval q( &bus_space_write_1( ($sc->{sc_bust}),  ($sc->{sc_bush}), $reg, $val));
    }' unless defined(&CSR_WRITE_1);
    eval 'sub CSR_READ_2 {
        my($reg) = @_;
	    eval q( &bus_space_read_2( ($sc->{sc_bust}),  ($sc->{sc_bush}), $reg));
    }' unless defined(&CSR_READ_2);
    eval 'sub CSR_WRITE_2 {
        my($reg, $vat) = @_;
	    eval q( &bus_space_write_2( ($sc->{sc_bust}),  ($sc->{sc_bush}), $reg,  &val));
    }' unless defined(&CSR_WRITE_2);
    eval 'sub CSR_READ_4 {
        my($reg) = @_;
	    eval q( &bus_space_read_4( ($sc->{sc_bust}),  ($sc->{sc_bush}), $reg));
    }' unless defined(&CSR_READ_4);
    eval 'sub CSR_WRITE_4 {
        my($reg, $val) = @_;
	    eval q( &bus_space_write_4( ($sc->{sc_bust}),  ($sc->{sc_bush}), $reg, $val));
    }' unless defined(&CSR_WRITE_4);
    eval 'sub CSR_SETBIT {
        my($reg, $val) = @_;
	    eval q( &CSR_WRITE_4($reg,  &CSR_READ_4($reg) | ($val)));
    }' unless defined(&CSR_SETBIT);
    eval 'sub CSR_CLRBIT {
        my($reg, $val) = @_;
	    eval q( &CSR_WRITE_4($reg,  &CSR_READ_4($reg) & ~($val)));
    }' unless defined(&CSR_CLRBIT);
}
1;
