require '_h2ph_pre.ph';

unless(defined(&_SMC93CX6VAR_H_)) {
    eval 'sub _SMC93CX6VAR_H_ () {1;}' unless defined(&_SMC93CX6VAR_H_);
    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( &ahc_inb( ($sd->{sd_ahc}),  ($sd->{sd_control_offset})));
	}' unless defined(&SEEPROM_INB);
	eval 'sub SEEPROM_OUTB {
	    local($sd, $value) = @_;
    	    eval q( &do {  &ahc_outb( ($sd->{sd_ahc}),  ($sd->{sd_control_offset}), $value);  &ahc_flush_device_writes( ($sd->{sd_ahc})); }  &while(0));
	}' unless defined(&SEEPROM_OUTB);
	eval 'sub SEEPROM_STATUS_INB {
	    local($sd) = @_;
    	    eval q( &ahc_inb( ($sd->{sd_ahc}),  ($sd->{sd_status_offset})));
	}' unless defined(&SEEPROM_STATUS_INB);
	eval 'sub SEEPROM_DATA_INB {
	    local($sd) = @_;
    	    eval q( &ahc_inb( ($sd->{sd_ahc}),  ($sd->{sd_dataout_offset})));
	}' unless defined(&SEEPROM_DATA_INB);
    }
}
1;
