require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_USB_UTOPPY_H_)) {
    eval 'sub _DEV_USB_UTOPPY_H_ () {1;}' unless defined(&_DEV_USB_UTOPPY_H_);
    require 'sys/ioccom.ph';
    eval 'sub UTOPPY_MAX_FILENAME_LEN () {95;}' unless defined(&UTOPPY_MAX_FILENAME_LEN);
    eval 'sub UTOPPY_MAX_PATHNAME_LEN () {(( &UTOPPY_MAX_FILENAME_LEN + 1) * 6);}' unless defined(&UTOPPY_MAX_PATHNAME_LEN);
    eval 'sub UTOPPYIOTURBO () { &_IOW(ord(\'t\'), 1, \'int\');}' unless defined(&UTOPPYIOTURBO);
    eval 'sub UTOPPYIOCANCEL () { &_IO(ord(\'t\'), 2);}' unless defined(&UTOPPYIOCANCEL);
    eval 'sub UTOPPYIOREBOOT () { &_IO(ord(\'t\'), 3);}' unless defined(&UTOPPYIOREBOOT);
    eval 'sub UTOPPYIOSTATS () { &_IOR(ord(\'t\'), 4, \'struct utoppy_stats\');}' unless defined(&UTOPPYIOSTATS);
    eval 'sub UTOPPYIORENAME () { &_IOW(ord(\'t\'), 5, \'struct utoppy_rename\');}' unless defined(&UTOPPYIORENAME);
    eval 'sub UTOPPYIOMKDIR () { &_IOW(ord(\'t\'), 6, \'char\' *);}' unless defined(&UTOPPYIOMKDIR);
    eval 'sub UTOPPYIODELETE () { &_IOW(ord(\'t\'), 7, \'char\' *);}' unless defined(&UTOPPYIODELETE);
    eval 'sub UTOPPYIOREADDIR () { &_IOW(ord(\'t\'), 8, \'char\' *);}' unless defined(&UTOPPYIOREADDIR);
    eval("sub UTOPPY_DIRENT_UNKNOWN () { 0; }") unless defined(&UTOPPY_DIRENT_UNKNOWN);
    eval("sub UTOPPY_DIRENT_DIRECTORY () { 1; }") unless defined(&UTOPPY_DIRENT_DIRECTORY);
    eval("sub UTOPPY_DIRENT_FILE () { 2; }") unless defined(&UTOPPY_DIRENT_FILE);
    eval 'sub UTOPPYIOREADFILE () { &_IOW(ord(\'t\'), 9, \'struct utoppy_readfile\');}' unless defined(&UTOPPYIOREADFILE);
    eval 'sub UTOPPYIOWRITEFILE () { &_IOW(ord(\'t\'), 10, \'struct utoppy_writefile\');}' unless defined(&UTOPPYIOWRITEFILE);
}
1;
