require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_DEV_MII_AMTPHYREG_H_)) {
    eval 'sub _DEV_MII_AMTPHYREG_H_ () {1;}' unless defined(&_DEV_MII_AMTPHYREG_H_);
    eval 'sub MII_AMPHY_DSCR () {0x10  &a;}' unless defined(&MII_AMPHY_DSCR);
    eval 'sub DSCR_BP4B5B () {0x8000;}' unless defined(&DSCR_BP4B5B);
    eval 'sub DSCR_BPSCR () {0x4000;}' unless defined(&DSCR_BPSCR);
    eval 'sub DSCR_BPALIGN () {0x2000;}' unless defined(&DSCR_BPALIGN);
    eval 'sub DSCR_REPEATER () {0x800;}' unless defined(&DSCR_REPEATER);
    eval 'sub DSCR_TX () {0x400;}' unless defined(&DSCR_TX);
    eval 'sub DSCR_UTP () {0x200;}' unless defined(&DSCR_UTP);
    eval 'sub DSCR_CLK25MDIS () {0x100;}' unless defined(&DSCR_CLK25MDIS);
    eval 'sub DSCR_FGLNKTX () {0x80;}' unless defined(&DSCR_FGLNKTX);
    eval 'sub DSCR_LINKLEDCTL () {0x20;}' unless defined(&DSCR_LINKLEDCTL);
    eval 'sub DSCR_FDXLEDCTL () {0x10;}' unless defined(&DSCR_FDXLEDCTL);
    eval 'sub DSCR_SMRTS () {0x8;}' unless defined(&DSCR_SMRTS);
    eval 'sub DSCR_MFPSC () {0x4;}' unless defined(&DSCR_MFPSC);
    eval 'sub DSCR_SLEEP () {0x2;}' unless defined(&DSCR_SLEEP);
    eval 'sub DSCR_RLOUT () {0x1;}' unless defined(&DSCR_RLOUT);
    eval 'sub MII_AMPHY_DSCSR () {0x11;}' unless defined(&MII_AMPHY_DSCSR);
    eval 'sub DSCSR_100FDX () {0x8000;}' unless defined(&DSCSR_100FDX);
    eval 'sub DSCSR_100HDX () {0x4000;}' unless defined(&DSCSR_100HDX);
    eval 'sub DSCSR_10FDX () {0x2000;}' unless defined(&DSCSR_10FDX);
    eval 'sub DSCSR_10HDX () {0x1000;}' unless defined(&DSCSR_10HDX);
    eval 'sub DSCSR_PADDR () {0x1f0;}' unless defined(&DSCSR_PADDR);
    eval 'sub DSCSR_ASTAT () {0xf;}' unless defined(&DSCSR_ASTAT);
    eval 'sub ASTAT_COMPLETE () {0x8;}' unless defined(&ASTAT_COMPLETE);
    eval 'sub ASTAT_PDLINK_READY_FAIL () {0x7;}' unless defined(&ASTAT_PDLINK_READY_FAIL);
    eval 'sub ASTAT_PDLINK_READY () {0x6;}' unless defined(&ASTAT_PDLINK_READY);
    eval 'sub ASTAT_CONSTMATCH_FAIL () {0x5;}' unless defined(&ASTAT_CONSTMATCH_FAIL);
    eval 'sub ASTAT_CONSTMATCH () {0x4;}' unless defined(&ASTAT_CONSTMATCH);
    eval 'sub ASTAT_ACKMATCH_FAIL () {0x3;}' unless defined(&ASTAT_ACKMATCH_FAIL);
    eval 'sub ASTAT_ACKMATCH () {0x2;}' unless defined(&ASTAT_ACKMATCH);
    eval 'sub ASTAT_ABILITYMATCH () {0x1;}' unless defined(&ASTAT_ABILITYMATCH);
    eval 'sub ASTAT_IDLE () {0x;}' unless defined(&ASTAT_IDLE);
    eval 'sub MII_AMPHY_T10CSRSCR () {0x12;}' unless defined(&MII_AMPHY_T10CSRSCR);
    eval 'sub T10CSRSCR_LPEN () {0x4000;}' unless defined(&T10CSRSCR_LPEN);
    eval 'sub T10CSRSCR_HBE () {0x2000;}' unless defined(&T10CSRSCR_HBE);
    eval 'sub T10CSRSCR_JABEN () {0x800;}' unless defined(&T10CSRSCR_JABEN);
    eval 'sub T10CSRSCR_SER () {0x400;}' unless defined(&T10CSRSCR_SER);
    eval 'sub T10CSRSCR_POLR () {0x1;}' unless defined(&T10CSRSCR_POLR);
}
1;
