require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SMC93CX6VAR_H_)) {
    eval 'sub _SMC93CX6VAR_H_ () {1;}' unless defined(&_SMC93CX6VAR_H_);
    require 'sys/param.ph';
    if(defined(&_KERNEL)) {
	eval("sub C46 () { 6; }") unless defined(&C46);
	eval("sub C56_66 () { 8; }") unless defined(&C56_66);
	eval 'sub SEEPROM_INB {
	    my($sd) = @_;
    	    eval q(((($sd)-> &sd_regsize == 4) ?  &bus_space_read_4(($sd)-> &sd_tag, ($sd)-> &sd_bsh, ($sd)-> &sd_control_offset) :  &bus_space_read_1(($sd)-> &sd_tag, ($sd)-> &sd_bsh, ($sd)-> &sd_control_offset)));
	}' unless defined(&SEEPROM_INB);
	eval 'sub SEEPROM_OUTB {
	    my($sd, $value) = @_;
    	    eval q( &do {  &if (($sd)-> &sd_regsize == 4)  &bus_space_write_4(($sd)-> &sd_tag, ($sd)-> &sd_bsh, ($sd)-> &sd_control_offset, ($value));  &else  &bus_space_write_1(($sd)-> &sd_tag, ($sd)-> &sd_bsh, ($sd)-> &sd_control_offset, ( &u_int8_t) ($value)); }  &while(0));
	}' unless defined(&SEEPROM_OUTB);
	eval 'sub SEEPROM_STATUS_INB {
	    my($sd) = @_;
    	    eval q(((($sd)-> &sd_regsize == 4) ?  &bus_space_read_4(($sd)-> &sd_tag, ($sd)-> &sd_bsh, ($sd)-> &sd_status_offset) :  &bus_space_read_1(($sd)-> &sd_tag, ($sd)-> &sd_bsh, ($sd)-> &sd_status_offset)));
	}' unless defined(&SEEPROM_STATUS_INB);
	eval 'sub SEEPROM_DATA_INB {
	    my($sd) = @_;
    	    eval q(((($sd)-> &sd_regsize == 4) ?  &bus_space_read_4(($sd)-> &sd_tag, ($sd)-> &sd_bsh, ($sd)-> &sd_dataout_offset) :  &bus_space_read_1(($sd)-> &sd_tag, ($sd)-> &sd_bsh, ($sd)-> &sd_dataout_offset)));
	}' unless defined(&SEEPROM_DATA_INB);
    }
}
1;
