require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_I386_IOCTL_FD_H_)) {
    eval 'sub _I386_IOCTL_FD_H_ () {1;}' unless defined(&_I386_IOCTL_FD_H_);
    require 'sys/ioccom.ph';
    eval 'sub FD_FORMAT_VERSION () {110;}' unless defined(&FD_FORMAT_VERSION);
    eval 'sub FD_MAX_NSEC () {36;}' unless defined(&FD_MAX_NSEC);
    eval 'sub fd_formb_secshift () { ($format_info->{structured}->{secshift});}' unless defined(&fd_formb_secshift);
    eval 'sub fd_formb_nsecs () { ($format_info->{structured}->{nsecs});}' unless defined(&fd_formb_nsecs);
    eval 'sub fd_formb_gaplen () { ($format_info->{structured}->{gaplen});}' unless defined(&fd_formb_gaplen);
    eval 'sub fd_formb_fillbyte () { ($format_info->{structured}->{fillbyte});}' unless defined(&fd_formb_fillbyte);
    eval 'sub fd_formb_cylno {
        local($i) = @_;
	    eval q( ($format_info->{structured}->{idfields[$i]}->{cylno}));
    }' unless defined(&fd_formb_cylno);
    eval 'sub fd_formb_headno {
        local($i) = @_;
	    eval q( ($format_info->{structured}->{idfields[$i]}->{headno}));
    }' unless defined(&fd_formb_headno);
    eval 'sub fd_formb_secno {
        local($i) = @_;
	    eval q( ($format_info->{structured}->{idfields[$i]}->{secno}));
    }' unless defined(&fd_formb_secno);
    eval 'sub fd_formb_secsize {
        local($i) = @_;
	    eval q( ($format_info->{structured}->{idfields[$i]}->{secsize}));
    }' unless defined(&fd_formb_secsize);
    eval 'sub FD_FORM () { &_IOW(ord(\'F\'), 61, \'struct fd_formb\');}' unless defined(&FD_FORM);
    eval 'sub FD_GTYPE () { &_IOR(ord(\'F\'), 62, \'struct fd_type\');}' unless defined(&FD_GTYPE);
    eval 'sub FD_STYPE () { &_IOW(ord(\'F\'), 63, \'struct fd_type\');}' unless defined(&FD_STYPE);
    eval 'sub FD_GOPTS () { &_IOR(ord(\'F\'), 64, \'int\');}' unless defined(&FD_GOPTS);
    eval 'sub FD_SOPTS () { &_IOW(ord(\'F\'), 65, \'int\');}' unless defined(&FD_SOPTS);
    eval 'sub FDOPT_NORETRY () {0x1;}' unless defined(&FDOPT_NORETRY);
    unless(defined(&FDC_500KBPS)) {
	eval 'sub FDC_500KBPS () {0x;}' unless defined(&FDC_500KBPS);
	eval 'sub FDC_300KBPS () {0x1;}' unless defined(&FDC_300KBPS);
	eval 'sub FDC_250KBPS () {0x2;}' unless defined(&FDC_250KBPS);
	eval 'sub FDC_125KBPS () {0x3;}' unless defined(&FDC_125KBPS);
    }
}
1;
