Home
last modified time | relevance | path

Searched full:scancode (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/sys/dev/evdev/
H A Devdev_utils.c216 evdev_hid2key(int scancode) in evdev_hid2key() argument
218 return evdev_usb_scancodes[scancode]; in evdev_hid2key()
232 evdev_scancode2key(int *state, int scancode) in evdev_scancode2key() argument
237 keycode = evdev_at_set1_scancodes[scancode & 0x7f]; in evdev_scancode2key()
239 case 0x00: /* normal scancode */ in evdev_scancode2key()
240 switch(scancode) { in evdev_scancode2key()
243 *state = scancode; in evdev_scancode2key()
249 keycode = evdev_at_set1_scancodes[0x80 + (scancode & 0x7f)]; in evdev_scancode2key()
259 if ((scancode & 0x7f) == 0x1D) in evdev_scancode2key()
260 *state = scancode; in evdev_scancode2key()
[all …]
H A Dinput.h74 uint8_t scancode[32]; member
/freebsd/usr.sbin/bhyve/amd64/
H A Dps2kbd.c94 uint8_t scancode; member
172 /* ASCII to type 2 scancode lookup table */
192 /* ScanCode set1 to set2 lookup table */
346 * Translate keysym to type 2 scancode and insert into keyboard buffer.
372 code = trans->scancode; in ps2kbd_keysym_queue()
413 ps2kbd_update_extended_translation(uint32_t keycode, uint32_t scancode, uint32_t prefix) in ps2kbd_update_extended_translation() argument
429 extended_translations[i+1].scancode = 0; in ps2kbd_update_extended_translation()
433 extended_translations[i].scancode = (uint8_t)(scancode & 0xff); in ps2kbd_update_extended_translation()
447 uint32_t keycode, scancode, prefix; in ps2kbd_setkbdlayout() local
472 if (sscanf(line, "'%c',%x;", &ascii, &scancode) == 2) { in ps2kbd_setkbdlayout()
[all …]
/freebsd/sys/dev/hyperv/input/
H A Dhv_kbd.c266 uint32_t scancode = NOKEY; in hvkbd_read_char_locked() local
294 * Emulate the generation of E0 or E1 scancode, in hvkbd_read_char_locked()
295 * the real scancode will be consumed next time. in hvkbd_read_char_locked()
298 scancode = XTKBD_EMUL0; in hvkbd_read_char_locked()
301 scancode = XTKBD_EMUL1; in hvkbd_read_char_locked()
313 * unicode to scancode depends on the keymap. in hvkbd_read_char_locked()
322 scancode = ks.makecode; in hvkbd_read_char_locked()
324 scancode |= XTKBD_RELEASE; in hvkbd_read_char_locked()
333 scancode); in hvkbd_read_char_locked()
337 (uint16_t)keycode, scancode & 0x80 ? 0 : 1); in hvkbd_read_char_locked()
[all …]
/freebsd/share/man/man4/
H A Dgpiokeys.4106 native scancode compatible with
112 specifies an evdev scancode.
113 That scancode is internally translated to a native scancode.
115 If a scancode cannot be translated, then a diagnostic message is printed
H A Dkeyboard.453 number is often referred to as the "scancode" for a given key.
77 Each scancode is then specified in the key_t substructure.
79 Each scancode can be translated to any of 8 different values, depending
93 scancode 0x1E.
/freebsd/usr.sbin/bhyve/kbdlayout/
H A Ddefault18 # So you usually only need to remove the '#' and fix it to the correct ScanCode
25 # 'Chr',ScanCode(Hex); <Comment>
27 # AsciiCode(Hex),ScanCode(Hex); <Comment>
31 # relevant line below and set the correct ScanCode.
36 # keys, and the ScanCode of the '@' sign is the number '2' key by default.
38 # below and correct the ScanCode from 0x1e to 0x54 so that you can enter it
40 # ScanCode differs depending on the keyboard of eash language, so check it on
149 # Xorg KeySym(Hex:2Byte),ScanCode(Hex); <Comment>
151 # Xorg KeySym(Hex:2Byte),ScanCode(Hex),Prefix(Hex); <Comment>
241 # it is necessary to add the combination of Xorg KeySym and ScanCode of the
/freebsd/sys/dev/atkbdc/
H A Datkbd.c652 int scancode; in atkbd_read_char() local
669 scancode = read_kbd_data(state->kbdc); in atkbd_read_char()
670 } while (scancode == -1); in atkbd_read_char()
672 scancode = read_kbd_data_no_wait(state->kbdc); in atkbd_read_char()
673 if (scancode == -1) in atkbd_read_char()
679 printf("atkbd_read_char(): scancode:0x%x\n", scancode); in atkbd_read_char()
687 (scancode == 0xF1 || scancode == 0xF2)) { in atkbd_read_char()
689 scancode & 0x7F); in atkbd_read_char()
696 scancode); in atkbd_read_char()
700 (uint16_t)keycode, scancode & 0x80 ? 0 : 1); in atkbd_read_char()
[all …]
/freebsd/sys/dev/kbdmux/
H A Dkbdmux.c653 int scancode, keycode; in kbdmux_read_char() local
675 scancode = kbdmux_kbd_getc(state); in kbdmux_read_char()
676 if (scancode == -1) { in kbdmux_read_char()
682 scancode = kbdd_read_char(k->kbd, 0); in kbdmux_read_char()
683 if (scancode == NOKEY) in kbdmux_read_char()
685 if (scancode == ERRKEY) in kbdmux_read_char()
690 kbdmux_kbd_putc(state, scancode); in kbdmux_read_char()
709 scancode); in kbdmux_read_char()
713 key, scancode & 0x80 ? 0 : 1); in kbdmux_read_char()
725 return (scancode); in kbdmux_read_char()
[all …]
/freebsd/usr.sbin/kbdcontrol/
H A Dkbdcontrol.c127 static void print_key_definition_line(FILE *fp, int scancode,
320 int i, def, scancode; in get_key_definition_line() local
322 /* check scancode number */ in get_key_definition_line()
325 scancode = number; in get_key_definition_line()
328 map->key[scancode].spcl = 0; in get_key_definition_line()
333 map->key[scancode].spcl |= (0x80 >> i); in get_key_definition_line()
334 map->key[scancode].map[i] = def & ~SPECIAL; in get_key_definition_line()
339 map->key[scancode].flgs = number; in get_key_definition_line()
341 return (scancode + 1); in get_key_definition_line()
531 print_key_definition_line(FILE *fp, int scancode, struct keyent_t *key) in print_key_definition_line() argument
[all …]
H A Dkbdmap.562 begins with the scancode for that key.
/freebsd/sys/contrib/edk2/Include/Protocol/
H A DSimpleTextInEx.h150 KeyData.Key.ScanCode is the EFI scan code defined in Error!
155 reflected in KeyData.Key.UnicodeChar or KeyData.Key.ScanCode .
167 and KeyData.Key.ScanCode values. UEFI drivers which implement
H A DSimpleTextIn.h36 UINT16 ScanCode; member
/freebsd/sys/dev/vkbd/
H A Dvkbd.c809 int scancode, keycode; in vkbd_read_char() local
829 scancode = vkbd_data_read(state, wait); in vkbd_read_char()
830 if (scancode == -1) { in vkbd_read_char()
841 return (scancode); in vkbd_read_char()
845 keycode = scancode & 0x7F; in vkbd_read_char()
847 case 0x00: /* normal scancode */ in vkbd_read_char()
848 switch(scancode) { in vkbd_read_char()
864 state->ks_prefix = scancode; in vkbd_read_char()
993 return (keycode | (scancode & 0x80)); in vkbd_read_char()
998 switch (keycode | (scancode & 0x80)) { in vkbd_read_char()
[all …]
/freebsd/sys/dev/adb/
H A Dadb_kbd.c160 int scancode; in keycode2scancode() local
162 scancode = keycode; in keycode2scancode()
164 scancode = scan[keycode - 89] | SCAN_PREFIX_E0; in keycode2scancode()
167 scancode = 0x45 | SCAN_PREFIX_E1 | SCAN_PREFIX_CTL; in keycode2scancode()
169 scancode &= ~SCAN_PREFIX_SHIFT; in keycode2scancode()
170 return (scancode | (up ? SCAN_RELEASE : SCAN_PRESS)); in keycode2scancode()
/freebsd/sys/dev/hid/
H A Dhkbd.c1257 uint32_t scancode; in hkbd_read() local
1268 scancode = sc->sc_buffered_char[0]; in hkbd_read()
1269 if (scancode & SCAN_PREFIX) { in hkbd_read()
1271 return ((scancode & SCAN_PREFIX_E0) ? 0xe0 : 0xe1); in hkbd_read()
1275 return (scancode); in hkbd_read()
1307 uint32_t scancode; in hkbd_read_char_locked() local
1334 scancode = sc->sc_buffered_char[0]; in hkbd_read_char_locked()
1335 if (scancode) { in hkbd_read_char_locked()
1336 if (scancode & SCAN_PREFIX) { in hkbd_read_char_locked()
1337 sc->sc_buffered_char[0] = (scancode & ~SCAN_PREFIX); in hkbd_read_char_locked()
[all …]
/freebsd/sys/dev/usb/input/
H A Dukbd.c1556 uint32_t scancode; in ukbd_read() local
1567 scancode = sc->sc_buffered_char[0]; in ukbd_read()
1568 if (scancode & SCAN_PREFIX) { in ukbd_read()
1570 return ((scancode & SCAN_PREFIX_E0) ? 0xe0 : 0xe1); in ukbd_read()
1574 return (scancode); in ukbd_read()
1606 uint32_t scancode; in ukbd_read_char_locked() local
1633 scancode = sc->sc_buffered_char[0]; in ukbd_read_char_locked()
1634 if (scancode) { in ukbd_read_char_locked()
1635 if (scancode & SCAN_PREFIX) { in ukbd_read_char_locked()
1636 sc->sc_buffered_char[0] = (scancode & ~SCAN_PREFIX); in ukbd_read_char_locked()
[all …]
/freebsd/share/vt/keymaps/
H A Dbr.lenovo.kbd6 # the incorrect scancode.
9 # replaced by 115 scancode content (?, /, 0xb0).
/freebsd/stand/i386/common/
H A Dcons.c142 * sometimes report a key-press with scancode one and ascii zero in keyhit()
/freebsd/sys/contrib/device-tree/Bindings/media/
H A Drc.yaml19 Specifies the scancode/key mapping table defined in-kernel for
/freebsd/share/termcap/
H A Dtermcap.5645 enter_scancode_mode S4 Enter PC scancode mode
646 exit_scancode_mode S5 Exit PC scancode mode
648 scancode_escape S7 Escape for scancode emulation
649 alt_scancode_esc S8 Alternate escape for scancode emulation
/freebsd/stand/efi/libefi/
H A Defi_console.c1268 switch (key->ScanCode) { in keybuf_inschar()
1344 * but we still can have ScanCode or UnicodeChar. in efi_readkey_ex()
1346 if (kp->ScanCode == 0 && kp->UnicodeChar == 0) in efi_readkey_ex()
/freebsd/stand/efi/include/
H A Deficon.h247 UINT16 ScanCode; member
/freebsd/contrib/ncurses/include/
H A DCaps.hpux11799 enter_scancode_mode smsc str S4 - - ----- Enter PC scancode mode
800 exit_scancode_mode rmsc str S5 - - ----- Exit PC scancode mode
802 scancode_escape scesc str S7 - - ----- Escape for scancode emulation
803 alt_scancode_esc scesa str S8 - - ----- Alternate escape for scancode emulation
H A DCaps791 enter_scancode_mode smsc str S4 - - ----- Enter PC scancode mode
792 exit_scancode_mode rmsc str S5 - - ----- Exit PC scancode mode
794 scancode_escape scesc str S7 - - ----- Escape for scancode emulation
795 alt_scancode_esc scesa str S8 - - ----- Alternate escape for scancode emulation

12