mirror of
https://git.proxmox.com/git/grub2
synced 2025-05-17 21:38:44 +00:00
52 lines
1.8 KiB
C
52 lines
1.8 KiB
C
/*
|
|
* GRUB -- GRand Unified Bootloader
|
|
* Copyright (C) 2010 Free Software Foundation, Inc.
|
|
*
|
|
* GRUB is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* GRUB is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef GRUB_KEYBOARD_LAYOUTS_H
|
|
#define GRUB_KEYBOARD_LAYOUTS_H 1
|
|
|
|
#define GRUB_KEYBOARD_LAYOUTS_FILEMAGIC "GRUBLAYO"
|
|
#define GRUB_KEYBOARD_LAYOUTS_FILEMAGIC_SIZE (sizeof(GRUB_KEYBOARD_LAYOUTS_FILEMAGIC) - 1)
|
|
#define GRUB_KEYBOARD_LAYOUTS_VERSION 8
|
|
|
|
#define GRUB_KEYBOARD_LAYOUTS_ARRAY_SIZE 128
|
|
|
|
struct grub_keyboard_layout
|
|
{
|
|
grub_uint32_t keyboard_map[GRUB_KEYBOARD_LAYOUTS_ARRAY_SIZE];
|
|
grub_uint32_t keyboard_map_shift[GRUB_KEYBOARD_LAYOUTS_ARRAY_SIZE];
|
|
grub_uint32_t keyboard_map_l3[GRUB_KEYBOARD_LAYOUTS_ARRAY_SIZE];
|
|
grub_uint32_t keyboard_map_shift_l3[GRUB_KEYBOARD_LAYOUTS_ARRAY_SIZE];
|
|
};
|
|
|
|
typedef enum grub_keyboard_key
|
|
{
|
|
GRUB_KEYBOARD_KEY_CAPS_LOCK = 0x39,
|
|
GRUB_KEYBOARD_KEY_SCROLL_LOCK = 0x47,
|
|
GRUB_KEYBOARD_KEY_NUM_LOCK = 0x53,
|
|
GRUB_KEYBOARD_KEY_LEFT_CTRL = 0xe0,
|
|
GRUB_KEYBOARD_KEY_LEFT_SHIFT = 0xe1,
|
|
GRUB_KEYBOARD_KEY_LEFT_ALT = 0xe2,
|
|
GRUB_KEYBOARD_KEY_RIGHT_CTRL = 0xe4,
|
|
GRUB_KEYBOARD_KEY_RIGHT_SHIFT = 0xe5,
|
|
GRUB_KEYBOARD_KEY_RIGHT_ALT = 0xe6,
|
|
} grub_keyboard_key_t;
|
|
|
|
unsigned EXPORT_FUNC(grub_term_map_key) (grub_keyboard_key_t code, int status);
|
|
|
|
#endif /* GRUB_KEYBOARD_LAYOUTS */
|