require '_h2ph_pre.ph';

no warnings qw(redefine misc);

eval 'sub KBD_RESET () {0xff;}' unless defined(&KBD_RESET);
eval 'sub KBD_LAYOUT () {0xfe;}' unless defined(&KBD_LAYOUT);
eval 'sub KBD_IDLE () {0x7f;}' unless defined(&KBD_IDLE);
eval 'sub KBD_ERROR () {0x7e;}' unless defined(&KBD_ERROR);
eval 'sub KBD_SPECIAL {
    my($c) = @_;
	eval q(((($c) & 0x7e) == 0x7e));
}' unless defined(&KBD_SPECIAL);
eval 'sub KB_KLUNK () {0;}' unless defined(&KB_KLUNK);
eval 'sub KB_VT100 () {1;}' unless defined(&KB_VT100);
eval 'sub KB_SUN2 () {2;}' unless defined(&KB_SUN2);
eval 'sub KB_SUN3 () {3;}' unless defined(&KB_SUN3);
eval 'sub KB_SUN4 () {4;}' unless defined(&KB_SUN4);
eval 'sub KBD_KEYMASK () {0x7f;}' unless defined(&KBD_KEYMASK);
eval 'sub KBD_UP () {0x80;}' unless defined(&KBD_UP);
eval 'sub KBD_L1 () {1;}' unless defined(&KBD_L1);
eval 'sub KBD_A () {77;}' unless defined(&KBD_A);
eval 'sub KBD_CMD_RESET () {1;}' unless defined(&KBD_CMD_RESET);
eval 'sub KBD_CMD_BELL () {2;}' unless defined(&KBD_CMD_BELL);
eval 'sub KBD_CMD_NOBELL () {3;}' unless defined(&KBD_CMD_NOBELL);
eval 'sub KBD_CMD_CLICK () {10;}' unless defined(&KBD_CMD_CLICK);
eval 'sub KBD_CMD_NOCLICK () {11;}' unless defined(&KBD_CMD_NOCLICK);
eval 'sub KBD_CMD_SETLED () {14;}' unless defined(&KBD_CMD_SETLED);
eval 'sub KBD_CMD_GETLAYOUT () {15;}' unless defined(&KBD_CMD_GETLAYOUT);
eval 'sub LED_NUM_LOCK () {0x1;}' unless defined(&LED_NUM_LOCK);
eval 'sub LED_COMPOSE () {0x2;}' unless defined(&LED_COMPOSE);
eval 'sub LED_SCROLL_LOCK () {0x4;}' unless defined(&LED_SCROLL_LOCK);
eval 'sub LED_CAPS_LOCK () {0x8;}' unless defined(&LED_CAPS_LOCK);
if(defined(&_KERNEL)) {
}
1;
