UNIX xv6 (rev8, 9/1/15)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros
kbd.h File Reference

Go to the source code of this file.

Macros

#define KBSTATP   0x64
 
#define KBS_DIB   0x01
 
#define KBDATAP   0x60
 
#define NO   0
 
#define SHIFT   (1<<0)
 
#define CTL   (1<<1)
 
#define ALT   (1<<2)
 
#define CAPSLOCK   (1<<3)
 
#define NUMLOCK   (1<<4)
 
#define SCROLLLOCK   (1<<5)
 
#define E0ESC   (1<<6)
 
#define KEY_HOME   0xE0
 
#define KEY_END   0xE1
 
#define KEY_UP   0xE2
 
#define KEY_DN   0xE3
 
#define KEY_LF   0xE4
 
#define KEY_RT   0xE5
 
#define KEY_PGUP   0xE6
 
#define KEY_PGDN   0xE7
 
#define KEY_INS   0xE8
 
#define KEY_DEL   0xE9
 
#define C(x)   (x - '@')
 

Macro Definition Documentation

#define ALT   (1<<2)

Definition at line 11 of file kbd.h.

#define C (   x)    (x - '@')

Definition at line 32 of file kbd.h.

#define CAPSLOCK   (1<<3)

Definition at line 13 of file kbd.h.

#define CTL   (1<<1)

Definition at line 10 of file kbd.h.

#define E0ESC   (1<<6)

Definition at line 17 of file kbd.h.

#define KBDATAP   0x60

Definition at line 5 of file kbd.h.

#define KBS_DIB   0x01

Definition at line 4 of file kbd.h.

#define KBSTATP   0x64

Definition at line 3 of file kbd.h.

#define KEY_DEL   0xE9

Definition at line 29 of file kbd.h.

#define KEY_DN   0xE3

Definition at line 23 of file kbd.h.

#define KEY_END   0xE1

Definition at line 21 of file kbd.h.

#define KEY_HOME   0xE0

Definition at line 20 of file kbd.h.

#define KEY_INS   0xE8

Definition at line 28 of file kbd.h.

#define KEY_LF   0xE4

Definition at line 24 of file kbd.h.

#define KEY_PGDN   0xE7

Definition at line 27 of file kbd.h.

#define KEY_PGUP   0xE6

Definition at line 26 of file kbd.h.

#define KEY_RT   0xE5

Definition at line 25 of file kbd.h.

#define KEY_UP   0xE2

Definition at line 22 of file kbd.h.

#define NO   0

Definition at line 7 of file kbd.h.

#define NUMLOCK   (1<<4)

Definition at line 14 of file kbd.h.

#define SCROLLLOCK   (1<<5)

Definition at line 15 of file kbd.h.

#define SHIFT   (1<<0)

Definition at line 9 of file kbd.h.