Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
kbd_kern.h File Reference
#include <linux/tty.h>
#include <linux/interrupt.h>
#include <linux/keyboard.h>

Go to the source code of this file.

Data Structures

struct  kbd_struct
 

Macros

#define VC_SHIFTLOCK   KG_SHIFT /* shift lock mode */
 
#define VC_ALTGRLOCK   KG_ALTGR /* altgr lock mode */
 
#define VC_CTRLLOCK   KG_CTRL /* control lock mode */
 
#define VC_ALTLOCK   KG_ALT /* alt lock mode */
 
#define VC_SHIFTLLOCK   KG_SHIFTL /* shiftl lock mode */
 
#define VC_SHIFTRLOCK   KG_SHIFTR /* shiftr lock mode */
 
#define VC_CTRLLLOCK   KG_CTRLL /* ctrll lock mode */
 
#define VC_CTRLRLOCK   KG_CTRLR /* ctrlr lock mode */
 
#define LED_SHOW_FLAGS   0 /* traditional state */
 
#define LED_SHOW_IOCTL   1 /* only change leds upon ioctl */
 
#define LED_SHOW_MEM   2 /* `heartbeat': peek into memory */
 
#define VC_SCROLLOCK   0 /* scroll-lock mode */
 
#define VC_NUMLOCK   1 /* numeric lock mode */
 
#define VC_CAPSLOCK   2 /* capslock mode */
 
#define VC_KANALOCK   3 /* kanalock mode */
 
#define VC_XLATE   0 /* translate keycodes using keymap */
 
#define VC_MEDIUMRAW   1 /* medium raw (keycode) mode */
 
#define VC_RAW   2 /* raw (scancode) mode */
 
#define VC_UNICODE   3 /* Unicode mode */
 
#define VC_OFF   4 /* disabled mode */
 
#define VC_APPLIC   0 /* application key mode */
 
#define VC_CKMODE   1 /* cursor key mode */
 
#define VC_REPEAT   2 /* keyboard repeat */
 
#define VC_CRLF   3 /* 0 - enter sends CR, 1 - enter sends CRLF */
 
#define VC_META   4 /* 0 - meta, 1 - meta=prefix with ESC */
 
#define U(x)   ((x) ^ 0xf000)
 
#define BRL_UC_ROW   0x2800
 

Functions

int kbd_init (void)
 
void setledstate (struct kbd_struct *kbd, unsigned int led)
 
int set_console (int nr)
 
void schedule_console_callback (void)
 
void compute_shiftstate (void)
 

Variables

struct tasklet_struct keyboard_tasklet
 
charfunc_table [MAX_NR_FUNC]
 
char func_buf []
 
charfuncbufptr
 
int funcbufsize
 
int funcbufleft
 
int do_poke_blanked_console
 
void(* kbd_ledfunc )(unsigned int led)
 
unsigned int keymap_count
 

Macro Definition Documentation

#define BRL_UC_ROW   0x2800

Definition at line 135 of file kbd_kern.h.

#define LED_SHOW_FLAGS   0 /* traditional state */

Definition at line 40 of file kbd_kern.h.

#define LED_SHOW_IOCTL   1 /* only change leds upon ioctl */

Definition at line 41 of file kbd_kern.h.

#define LED_SHOW_MEM   2 /* `heartbeat': peek into memory */

Definition at line 42 of file kbd_kern.h.

#define U (   x)    ((x) ^ 0xf000)

Definition at line 133 of file kbd_kern.h.

#define VC_ALTGRLOCK   KG_ALTGR /* altgr lock mode */

Definition at line 30 of file kbd_kern.h.

#define VC_ALTLOCK   KG_ALT /* alt lock mode */

Definition at line 32 of file kbd_kern.h.

#define VC_APPLIC   0 /* application key mode */

Definition at line 59 of file kbd_kern.h.

#define VC_CAPSLOCK   2 /* capslock mode */

Definition at line 48 of file kbd_kern.h.

#define VC_CKMODE   1 /* cursor key mode */

Definition at line 60 of file kbd_kern.h.

#define VC_CRLF   3 /* 0 - enter sends CR, 1 - enter sends CRLF */

Definition at line 62 of file kbd_kern.h.

#define VC_CTRLLLOCK   KG_CTRLL /* ctrll lock mode */

Definition at line 35 of file kbd_kern.h.

#define VC_CTRLLOCK   KG_CTRL /* control lock mode */

Definition at line 31 of file kbd_kern.h.

#define VC_CTRLRLOCK   KG_CTRLR /* ctrlr lock mode */

Definition at line 36 of file kbd_kern.h.

#define VC_KANALOCK   3 /* kanalock mode */

Definition at line 49 of file kbd_kern.h.

#define VC_MEDIUMRAW   1 /* medium raw (keycode) mode */

Definition at line 53 of file kbd_kern.h.

#define VC_META   4 /* 0 - meta, 1 - meta=prefix with ESC */

Definition at line 63 of file kbd_kern.h.

#define VC_NUMLOCK   1 /* numeric lock mode */

Definition at line 47 of file kbd_kern.h.

#define VC_OFF   4 /* disabled mode */

Definition at line 56 of file kbd_kern.h.

#define VC_RAW   2 /* raw (scancode) mode */

Definition at line 54 of file kbd_kern.h.

#define VC_REPEAT   2 /* keyboard repeat */

Definition at line 61 of file kbd_kern.h.

#define VC_SCROLLOCK   0 /* scroll-lock mode */

Definition at line 46 of file kbd_kern.h.

#define VC_SHIFTLLOCK   KG_SHIFTL /* shiftl lock mode */

Definition at line 33 of file kbd_kern.h.

#define VC_SHIFTLOCK   KG_SHIFT /* shift lock mode */

Definition at line 29 of file kbd_kern.h.

#define VC_SHIFTRLOCK   KG_SHIFTR /* shiftr lock mode */

Definition at line 34 of file kbd_kern.h.

#define VC_UNICODE   3 /* Unicode mode */

Definition at line 55 of file kbd_kern.h.

#define VC_XLATE   0 /* translate keycodes using keymap */

Definition at line 52 of file kbd_kern.h.

Function Documentation

void compute_shiftstate ( void  )

Definition at line 415 of file keyboard.c.

int kbd_init ( void  )

Definition at line 1517 of file keyboard.c.

void schedule_console_callback ( void  )

Definition at line 305 of file vt.c.

int set_console ( int  nr)

Definition at line 2364 of file vt.c.

void setledstate ( struct kbd_struct kbd,
unsigned int  led 
)

Definition at line 993 of file keyboard.c.

Variable Documentation

int do_poke_blanked_console

Definition at line 174 of file vt.c.

char func_buf[]

Definition at line 101 of file defkeymap.c.

char* func_table[MAX_NR_FUNC]

Definition at line 129 of file defkeymap.c.

int funcbufleft

Definition at line 127 of file defkeymap.c.

char* funcbufptr

Definition at line 125 of file defkeymap.c.

int funcbufsize

Definition at line 126 of file defkeymap.c.

void(* kbd_ledfunc)(unsigned int led)
struct tasklet_struct keyboard_tasklet
unsigned int keymap_count

Definition at line 92 of file defkeymap.c.