require '_h2ph_pre.ph';

unless(defined(&_MAC68K_ADBSYS_H_)) {
    eval 'sub _MAC68K_ADBSYS_H_ () {1;}' unless defined(&_MAC68K_ADBSYS_H_);
    require 'sys/time.ph';
    require 'sys/ioctl.ph';
    eval 'sub ADB_MAX_HANDLERS () {256;}' unless defined(&ADB_MAX_HANDLERS);
    eval 'sub ADB_MAX_DEVS () {16;}' unless defined(&ADB_MAX_DEVS);
    eval("sub MacIIADB () { 0; }") unless defined(&MacIIADB);
    eval("sub MacIIsiADB () { 1; }") unless defined(&MacIIsiADB);
    eval("sub MacPBADB () { 2; }") unless defined(&MacPBADB);
    eval 'sub ADBADDR_MAP () {2;}' unless defined(&ADBADDR_MAP);
    eval 'sub ADBADDR_REL () {3;}' unless defined(&ADBADDR_REL);
    eval 'sub ADBADDR_ABS () {4;}' unless defined(&ADBADDR_ABS);
    eval 'sub ADBADDR_KBD () { &ADBADDR_MAP;}' unless defined(&ADBADDR_KBD);
    eval 'sub ADBADDR_MS () { &ADBADDR_REL;}' unless defined(&ADBADDR_MS);
    eval 'sub ADBADDR_TABLET () { &ADBADDR_ABS;}' unless defined(&ADBADDR_TABLET);
    eval 'sub ADB_STDKBD () {1;}' unless defined(&ADB_STDKBD);
    eval 'sub ADB_EXTKBD () {2;}' unless defined(&ADB_EXTKBD);
    eval 'sub ADB_PBKBD () {12;}' unless defined(&ADB_PBKBD);
    eval 'sub ADBMS_100DPI () {1;}' unless defined(&ADBMS_100DPI);
    eval 'sub ADBMS_200DPI () {2;}' unless defined(&ADBMS_200DPI);
    eval 'sub ADBMS_EXTENDED () {4;}' unless defined(&ADBMS_EXTENDED);
    eval 'sub ADBMS_USPEED () {47;}' unless defined(&ADBMS_USPEED);
    eval 'sub ADBIOC_DEVSINFO () { &_IOR(ord(\'A\'), 128,  &adb_devinfo_t);}' unless defined(&ADBIOC_DEVSINFO);
    eval 'sub ADBIOC_GETREPEAT () { &_IOR(ord(\'A\'), 130,  &adb_rptinfo_t);}' unless defined(&ADBIOC_GETREPEAT);
    eval 'sub ADBIOC_SETREPEAT () { &_IOW(ord(\'A\'), 131,  &adb_rptinfo_t);}' unless defined(&ADBIOC_SETREPEAT);
    eval 'sub ADBIOC_RESET () { &_IO(ord(\'A\'), 132);}' unless defined(&ADBIOC_RESET);
    eval 'sub ADBIOC_LISTENCMD () { &_IOW(ord(\'A\'), 133,  &adb_listencmd_t);}' unless defined(&ADBIOC_LISTENCMD);
}
1;
