require '_h2ph_pre.ph';

require 'sys/param.ph';
if(!(defined( &__NetBSD__) || defined( &__OpenBSD__))) {
    require 'sys/systm.ph';
}
if(defined(&_KERNEL)) {
    eval("sub C46 () { 6; }") unless defined(&C46);
    eval("sub C56_66 () { 8; }") unless defined(&C56_66);
    eval 'sub SEEPROM_INB {
        local($sd) = @_;
	    eval q( &bus_space_read_1( ($sd->{sd_tag}),  ($sd->{sd_bsh}),  ($sd->{sd_control_offset})));
    }' unless defined(&SEEPROM_INB);
    eval 'sub SEEPROM_OUTB {
        local($sd, $value) = @_;
	    eval q( &bus_space_write_1( ($sd->{sd_tag}),  ($sd->{sd_bsh}),  ($sd->{sd_control_offset}), $value));
    }' unless defined(&SEEPROM_OUTB);
    eval 'sub SEEPROM_STATUS_INB {
        local($sd) = @_;
	    eval q( &bus_space_read_1( ($sd->{sd_tag}),  ($sd->{sd_bsh}),  ($sd->{sd_status_offset})));
    }' unless defined(&SEEPROM_STATUS_INB);
    eval 'sub SEEPROM_DATA_INB {
        local($sd) = @_;
	    eval q( &bus_space_read_1( ($sd->{sd_tag}),  ($sd->{sd_bsh}),  ($sd->{sd_dataout_offset})));
    }' unless defined(&SEEPROM_DATA_INB);
}
1;
