~ubuntu-branches/ubuntu/wily/grub2/wily-proposed

« back to all changes in this revision

Viewing changes to include/grub/at_keyboard.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Zielcke, Robert Millan, Felix Zielcke
  • Date: 2010-01-26 19:26:25 UTC
  • mfrom: (1.13.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100126192625-coq6czap2ofjollf
Tags: 1.98~20100126-1
* New Bazaar snapshot.
  - Includes mipsel-yeeloong port.

[ Robert Millan ]
* config.in: Lower priority of grub2/linux_cmdline_default.

[ Felix Zielcke ]
* Drop `CFLAGS=-O0' workaround on powerpc. Should be fixed correctly now.
* Ship grub-bin2h and grub-script-check in grub-common.
* Terminate NEWS.Debian with a blank line like lintian would suggest
  if that check would be working correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  GRUB  --  GRand Unified Bootloader
 
3
 *  Copyright (C) 2007,2008,2009  Free Software Foundation, Inc.
 
4
 *
 
5
 *  GRUB is free software: you can redistribute it and/or modify
 
6
 *  it under the terms of the GNU General Public License as published by
 
7
 *  the Free Software Foundation, either version 3 of the License, or
 
8
 *  (at your option) any later version.
 
9
 *
 
10
 *  GRUB is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#ifndef GRUB_AT_KEYBOARD_HEADER
 
20
#define GRUB_AT_KEYBOARD_HEADER 1
 
21
 
 
22
#define SHIFT_L         0x2a
 
23
#define SHIFT_R         0x36
 
24
#define CTRL            0x1d
 
25
#define ALT             0x38
 
26
#define CAPS_LOCK       0x3a
 
27
#define NUM_LOCK        0x45
 
28
#define SCROLL_LOCK     0x46
 
29
 
 
30
/* Used for sending commands to the controller.  */
 
31
#define KEYBOARD_COMMAND_ISREADY(x)     !((x) & 0x02)
 
32
#define KEYBOARD_COMMAND_READ           0x20
 
33
#define KEYBOARD_COMMAND_WRITE          0x60
 
34
#define KEYBOARD_COMMAND_REBOOT         0xfe
 
35
 
 
36
#define KEYBOARD_SCANCODE_SET1          0x40
 
37
 
 
38
#define KEYBOARD_ISMAKE(x)      !((x) & 0x80)
 
39
#define KEYBOARD_ISREADY(x)     ((x) & 0x01)
 
40
#define KEYBOARD_SCANCODE(x)    ((x) & 0x7f)
 
41
 
 
42
#ifdef GRUB_MACHINE_IEEE1275
 
43
#define OLPC_UP         GRUB_TERM_UP
 
44
#define OLPC_DOWN       GRUB_TERM_DOWN
 
45
#define OLPC_LEFT       GRUB_TERM_LEFT
 
46
#define OLPC_RIGHT      GRUB_TERM_RIGHT
 
47
#else
 
48
#define OLPC_UP         '\0'
 
49
#define OLPC_DOWN       '\0'
 
50
#define OLPC_LEFT       '\0'
 
51
#define OLPC_RIGHT      '\0'
 
52
#endif
 
53
 
 
54
#endif