require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&SMC_FLAGS_ENABLED)) {
    sub SMC_FLAGS_ENABLED () {	0x1;}
}
unless(defined(&SMC_FLAGS_ATTACHED)) {
    sub SMC_FLAGS_ATTACHED () {	0x2;}
}
unless(defined(&SMC_FLAGS_HAS_MII)) {
    sub SMC_FLAGS_HAS_MII () {	0x4;}
}
unless(defined(&SMC_FLAGS_32BIT_READ)) {
    sub SMC_FLAGS_32BIT_READ () {	0x8;}
}
unless(defined(&SMC_SELECT_BANK)) {
    sub SMC_SELECT_BANK {
	my($sc, $x) = @_;
	eval q( &bus_space_write_2(($sc)-> &sc_bst, ($sc)-> &sc_bsh,  &BANK_SELECT_REG_W, ($x)));
    }
}
1;
