require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&LOFN_RNGBUF_SIZE)) {
    sub LOFN_RNGBUF_SIZE () {	8;}
}
unless(defined(&READ_REG)) {
    sub READ_REG {
	my($sc,$r) = @_;
	eval q( &bus_space_read_4(($sc)-> &sc_st, ($sc)-> &sc_sh, ($r)));
    }
}
unless(defined(&READ_REG_0)) {
    sub READ_REG_0 {
	my($sc,$r) = @_;
	eval q( &READ_REG(($sc), ($r) |  &LOFN_WIN_0));
    }
}
unless(defined(&READ_REG_1)) {
    sub READ_REG_1 {
	my($sc,$r) = @_;
	eval q( &READ_REG(($sc), ($r) |  &LOFN_WIN_1));
    }
}
unless(defined(&READ_REG_2)) {
    sub READ_REG_2 {
	my($sc,$r) = @_;
	eval q( &READ_REG(($sc), ($r) |  &LOFN_WIN_2));
    }
}
unless(defined(&READ_REG_3)) {
    sub READ_REG_3 {
	my($sc,$r) = @_;
	eval q( &READ_REG(($sc), ($r) |  &LOFN_WIN_3));
    }
}
unless(defined(&WRITE_REG)) {
    sub WRITE_REG {
	my($sc,$r,$v) = @_;
	eval q( &bus_space_write_4(($sc)-> &sc_st, ($sc)-> &sc_sh, ($r), ($v)));
    }
}
unless(defined(&WRITE_REG_0)) {
    sub WRITE_REG_0 {
	my($sc,$r,$v) = @_;
	eval q( &WRITE_REG(($sc), ($r) |  &LOFN_WIN_0, ($v)));
    }
}
unless(defined(&WRITE_REG_1)) {
    sub WRITE_REG_1 {
	my($sc,$r,$v) = @_;
	eval q( &WRITE_REG(($sc), ($r) |  &LOFN_WIN_1, ($v)));
    }
}
unless(defined(&WRITE_REG_2)) {
    sub WRITE_REG_2 {
	my($sc,$r,$v) = @_;
	eval q( &WRITE_REG(($sc), ($r) |  &LOFN_WIN_2, ($v)));
    }
}
unless(defined(&WRITE_REG_3)) {
    sub WRITE_REG_3 {
	my($sc,$r,$v) = @_;
	eval q( &WRITE_REG(($sc), ($r) |  &LOFN_WIN_3, ($v)));
    }
}
unless(defined(&LOFN_RNG_SCALAR)) {
    eval 'sub LOFN_RNG_SCALAR () {0x700;}' unless defined(&LOFN_RNG_SCALAR);
}
unless(defined(&LOFN_MODEXP_PAR_M)) {
    sub LOFN_MODEXP_PAR_M () {	0;}
}
unless(defined(&LOFN_MODEXP_PAR_E)) {
    sub LOFN_MODEXP_PAR_E () {	1;}
}
unless(defined(&LOFN_MODEXP_PAR_N)) {
    sub LOFN_MODEXP_PAR_N () {	2;}
}
1;
