require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_ADB_H_)) {
    eval 'sub _ADB_H_ () {1;}' unless defined(&_ADB_H_);
    if(defined(&_KERNEL)) {
	eval 'sub ADB_CMDADDR {
	    my($cmd) = @_;
    	    eval q((( &u_int8_t)($cmd & 0xf0) >> 4));
	}' unless defined(&ADB_CMDADDR);
	eval 'sub ADBFLUSH {
	    my($dev) = @_;
    	    eval q((((( &u_int8_t)$dev & 0xf) << 4) | 0x1));
	}' unless defined(&ADBFLUSH);
	eval 'sub ADBLISTEN {
	    my($dev, $reg) = @_;
    	    eval q((((( &u_int8_t)$dev & 0xf) << 4) | 0x8 | $reg));
	}' unless defined(&ADBLISTEN);
	eval 'sub ADBTALK {
	    my($dev, $reg) = @_;
    	    eval q((((( &u_int8_t)$dev & 0xf) << 4) | 0xc | $reg));
	}' unless defined(&ADBTALK);
	eval 'sub ADBADDR_SECURE () {1;}' unless defined(&ADBADDR_SECURE);
	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_DATATX () {5;}' unless defined(&ADBADDR_DATATX);
	eval 'sub ADBADDR_RSRVD () {6;}' unless defined(&ADBADDR_RSRVD);
	eval 'sub ADBADDR_MISC () {7;}' unless defined(&ADBADDR_MISC);
	eval 'sub ADBADDR_DONGLE () { &ADBADDR_SECURE;}' unless defined(&ADBADDR_DONGLE);
	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 ADBADDR_MODEM () { &ADBADDR_DATATX;}' unless defined(&ADBADDR_MODEM);
	eval 'sub ADBADDR_APM () {0xac0ff;}' unless defined(&ADBADDR_APM);
	eval 'sub ADB_STDKBD () {1;}' unless defined(&ADB_STDKBD);
	eval 'sub ADB_EXTKBD () {2;}' unless defined(&ADB_EXTKBD);
	eval 'sub ADB_ISOKBD () {4;}' unless defined(&ADB_ISOKBD);
	eval 'sub ADB_EXTISOKBD () {5;}' unless defined(&ADB_EXTISOKBD);
	eval 'sub ADB_KBDII () {8;}' unless defined(&ADB_KBDII);
	eval 'sub ADB_ISOKBDII () {9;}' unless defined(&ADB_ISOKBDII);
	eval 'sub ADB_PBKBD () {12;}' unless defined(&ADB_PBKBD);
	eval 'sub ADB_PBISOKBD () {13;}' unless defined(&ADB_PBISOKBD);
	eval 'sub ADB_ADJKPD () {14;}' unless defined(&ADB_ADJKPD);
	eval 'sub ADB_ADJKBD () {16;}' unless defined(&ADB_ADJKBD);
	eval 'sub ADB_ADJISOKBD () {17;}' unless defined(&ADB_ADJISOKBD);
	eval 'sub ADB_ADJJAPKBD () {18;}' unless defined(&ADB_ADJJAPKBD);
	eval 'sub ADB_PBEXTISOKBD () {20;}' unless defined(&ADB_PBEXTISOKBD);
	eval 'sub ADB_PBEXTJAPKBD () {21;}' unless defined(&ADB_PBEXTJAPKBD);
	eval 'sub ADB_JPKBDII () {22;}' unless defined(&ADB_JPKBDII);
	eval 'sub ADB_PBEXTKBD () {24;}' unless defined(&ADB_PBEXTKBD);
	eval 'sub ADB_DESIGNKBD () {27;}' unless defined(&ADB_DESIGNKBD);
	eval 'sub ADB_PBJPKBD () {30;}' unless defined(&ADB_PBJPKBD);
	eval 'sub ADB_PBG4KBD () {195;}' unless defined(&ADB_PBG4KBD);
	eval 'sub ADB_IBITISOKBD () {196;}' unless defined(&ADB_IBITISOKBD);
	eval 'sub ADB_PBG3JPKBD () {201;}' unless defined(&ADB_PBG3JPKBD);
	eval 'sub ADBMS_100DPI () {1;}' unless defined(&ADBMS_100DPI);
	eval 'sub ADBMS_200DPI () {2;}' unless defined(&ADBMS_200DPI);
	eval 'sub ADBMS_MSA3 () {3;}' unless defined(&ADBMS_MSA3);
	eval 'sub ADBMS_EXTENDED () {4;}' unless defined(&ADBMS_EXTENDED);
	eval 'sub ADBMS_USPEED () {0x2f;}' unless defined(&ADBMS_USPEED);
	eval 'sub ADBMS_UCONTOUR () {0x66;}' unless defined(&ADBMS_UCONTOUR);
	eval 'sub ADBMS_TURBO () {50;}' unless defined(&ADBMS_TURBO);
	eval 'sub ADB_ARTPAD () {58;}' unless defined(&ADB_ARTPAD);
	eval 'sub ADB_POWERKEY () {34;}' unless defined(&ADB_POWERKEY);
	if(defined(&ADB_DEBUG)) {
	}
    }
}
1;
