grub/commands
cjwatson 4cbe67e509 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
2009-08-28  Robert Millan  <rmh.grub@aybabtu.com>

	Add `getkeystatus' terminal method.  Add a new `keystatus' command
	to query it.

	* include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
	GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
	modifier key bitmasks.
	(struct grub_term_input): Add `getkeystatus' member.
	(grub_getkeystatus): Add prototype.
	* kern/term.c (grub_getkeystatus): New function.

	* include/grub/i386/pc/memory.h
	(GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
	(struct grub_machine_bios_data_area): Define necessary parts of BIOS
	Data Area layout.
	* term/i386/pc/console.c (grub_console_getkeystatus): New function.
	(grub_console_term_input): Set `getkeystatus' member.
	* term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
	constants.
	(grub_usb_keyboard_getreport): Likewise.
	(grub_usb_keyboard_checkkey): Likewise.
	(grub_usb_keyboard_getkeystatus): New function.
	(grub_usb_keyboard_term): Set `getkeystatus' member.

	* commands/keystatus.c: New file.
	* conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
	(keystatus_mod_SOURCES): New variable.
	(keystatus_mod_CFLAGS): Likewise.
	(keystatus_mod_LDFLAGS): Likewise.
	* conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
	commands/keystatus.c.
	* conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
	* conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
	* conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
	* conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
	* conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
	* conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
	* DISTLIST: Add commands/keystatus.c.
2009-08-28 13:20:34 +00:00
..
efi 2009-06-10 Pavel Roskin <proski@gnu.org> 2009-06-10 23:47:49 +00:00
i386 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com> 2009-08-14 12:41:58 +00:00
ieee1275 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
acpi.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
blocklist.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
boot.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
cat.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
cmp.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
configfile.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
crc.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
date.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
echo.c 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk> 2009-06-16 16:06:49 +00:00
extcmd.c 2009-07-16 Pavel Roskin <proski@gnu.org> 2009-07-16 22:14:09 +00:00
gptsync.c 2009-08-23 Robert Millan <rmh.grub@aybabtu.com> 2009-08-23 12:00:57 +00:00
halt.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
handler.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
hdparm.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
help.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
hexdump.c 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com> 2009-08-02 21:57:26 +00:00
keystatus.c 2009-08-28 Colin Watson <cjwatson@ubuntu.com> 2009-08-28 13:20:34 +00:00
loadenv.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
ls.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
lsmmap.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
lspci.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
memrw.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
minicmd.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
parttool.c 2009-07-16 Pavel Roskin <proski@gnu.org> 2009-07-16 22:14:09 +00:00
password.c 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com> 2009-08-24 23:55:06 +00:00
probe.c 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com> 2009-07-25 17:46:38 +00:00
read.c 2009-03-21 Bean <bean123ch@gmail.com> 2009-03-21 08:39:59 +00:00
reboot.c 2009-05-03 Pavel Roskin <proski@gnu.org> 2009-05-04 03:49:08 +00:00
search.c 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com> 2009-08-23 15:27:07 +00:00
sleep.c 2009-03-21 Bean <bean123ch@gmail.com> 2009-03-21 08:39:59 +00:00
test.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
true.c 2009-06-08 Felix Zielcke <fzielcke@z-51.de> 2009-06-08 07:32:14 +00:00
usbtest.c remove all trailing whitespace 2009-06-10 21:04:23 +00:00
videotest.c 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com> 2009-06-04 18:22:45 +00:00
xnu_uuid.c 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com> 2009-08-22 17:47:16 +00:00