kd.h File Reference

Go to the source code of this file.

Data Structures

struct  port_io_struc
struct  port_io_arg
struct  kd_disparam
struct  kd_quemode
struct  kd_memloc
struct  kbentry
struct  kbsentry
struct  kbdiacr
struct  kbdiacrs

Defines

#define SWAPMONO   0x4B00
 0x4B is 'K', to avoid collision with termios and vt use mca as output device
#define SWAPCGA   0x4B01
 use cga as output device
#define SWAPEGA   0x4B02
 use ega as output device
#define SWAPVGA   0x4B03
 use vga as output device
#define CONS_CURRENT   0x4B04
 return current output device
#define MONO   0x01
#define CGA   0x02
#define EGA   0x03
#define SW_B40x25   0x4B05
 40x25 mono text (cga/ega)
#define SW_C40x25   0x4B06
 40x24 color text (cga/ega)
#define SW_B80x25   0x4B07
 80x25 mono text (cga/ega)
#define SW_C80x25   0x4B08
 80x25 color text (cga/ega)
#define SW_BG320   0x4B09
 320x200 mono graphics (cga/ega)
#define SW_CG320   0x4B0A
 320x200 color graphics (cga/ega)
#define SW_BG640   0x4B0B
 640x200 mono graphics (cga/ega)
#define SW_CG320_D   0x4B0C
 320x200 graphics (ega mode d)
#define SW_CG640_E   0x4B0D
 640x200 graphics (ega mode e)
#define SW_EGAMONOAPA   0x4B0E
 640x350 graphics (ega mode f)
#define SW_ENH_MONOAPA2   0x4B0F
 640x350 graphics extd mem (ega mode f*)
#define SW_CG640x350   0x4B10
 640x350 graphics (ega mode 10)
#define SW_ENH_CG640   0x4B11
 640x350 graphics extd mem (ega mode 10*)
#define SW_EGAMONO80x25   0x4B12
 80x25 mono text (ega mode 7)
#define SW_ENHB40x25   0x4B13
 enhanced 40x25 mono text (ega)
#define SW_ENHC40x25   0x4B14
 enhanced 40x25 color text (ega)
#define SW_ENHB80x25   0x4B15
 enhanced 80x25 mono text (ega)
#define SW_ENHC80x25   0x4B16
 enhanced 80x25 color text (ega)
#define SW_ENHB80x43   0x4B17
 enhanced 80x43 mono text (ega)
#define SW_ENHC80x43   0x4B18
 enhanced 80x43 color text (ega)
#define SW_MCAMODE   0x4B19
 reinit mca
#define SW_ATT640   0x4B1A
#define CONS_GET   0x4B1B
 should add more vga modes, etc get current display mode
#define M_B40x25   0
 40x25 mono (cga/ega)
#define M_C40x25   1
 40x25 color (cga/ega)
#define M_B80x25   2
 80x25 mono (cga/ega)
#define M_C80x25   3
 80x25 color (cga/ega)
#define M_BG320   4
 320x200 mono (cga/ega)
#define M_CG320   5
 320x200 color (cga/ega)
#define M_BG640   6
 640x200 mono (cga/ega)
#define M_EGAMONO80x25   7
 80x25 mono (ega)
#define M_CG320_D   13
 ega mode d
#define M_CG640_E   14
 ega mode e
#define M_EFAMONOAPA   15
 ega mode f
#define M_CG640x350   16
 ega mode 10
#define M_ENHMONOAPA2   17
 ega mode f with ext mem
#define M_ENH_CG640   18
 ega mode 10*
#define M_ENH_B40x25   19
 ega enh 40x25 mono
#define M_ENH_C40x25   20
 ega enh 40x25 color
#define M_ENH_B80x25   21
 ega enh 80x25 mono
#define M_ENH_C80x25   22
 ega enh 80x25 color
#define M_ENH_B80x43   0x70
 ega enh 80x43 mono
#define M_ENH_C80x43   0x71
 ega enh 80x43 color
#define M_MCA_MODE   0xff
 monochrome adapter mode
#define MCA_GET   0x4B1C
 get mca display mode
#define CGA_GET   0x4B1D
 get cga display mode
#define EGA_GET   0x4B1E
 get ega display mode
#define MAPCONS   0x4B1F
 map current video mem into address space
#define MAPMONO   0x4B20
 map mca video mem into address space
#define MAPCGA   0x4B21
 map cga video mem into address space
#define MAPEGA   0x4B22
 map ega video mem into address space
#define MAPVGA   0x4B23
 map vga video mem into address space
#define IN_ON_PORT   0x00
#define OUT_ON_PORT   0x01
#define MCAIO   0x4B24
 i/o to mca video board
#define CGAIO   0x4B25
 i/o to cga video board
#define EGAIO   0x4B26
 i/o to ega video board
#define VGAIO   0x4B27
 i/o to vga video board
#define GIO_FONT8x8   0x4B28
 gets current 8x8 font used
#define PIO_FONT8x8   0x4B29
 use supplied 8x8 font
#define GIO_FONT8x14   0x4B2A
 gets current 8x14 font used
#define PIO_FONT8x14   0x4B2B
 use supplied 8x14 font
#define GIO_FONT8x16   0x4B2C
 gets current 8x16 font used
#define PIO_FONT8x16   0x4B2D
 use supplied 8x16 font
#define GIO_FONT   0x4B60
 gets font in expanded form
#define PIO_FONT   0x4B61
 use font in expanded form
#define MKDIOADDR   32
 io bitmap size from <linux/sched.h>
#define KDDISPTYPE   0x4B2E
 gets display info
#define KD_MONO   0x01
#define KD_HERCULES   0x02
#define KD_CGA   0x03
#define KD_EGA   0x04
#define KIOCSOUND   0x4B2F
 start sound generation (0 for off)
#define KDMKTONE   0x4B30
 generate tone
#define KDGETLED   0x4B31
 return current led flags
#define KDSETLED   0x4B32
 set current led flags
#define LED_SCR   0x01
 scroll lock
#define LED_CAP   0x04
 caps lock
#define LED_NUM   0x02
 num lock
#define KDGKBTYPE   0x4B33
 get keyboard type
#define KB_84   0x01
#define KB_101   0x02
#define KB_OTHER   0x03
#define KDADDIO   0x4B34
 add i/o port as valid
#define KDDELIO   0x4B35
 del i/o port as valid
#define KDENABIO   0x4B36
 enable i/o to video board
#define KDDISABIO   0x4B37
 disable i/o to video board
#define KDQUEMODE   0x4B38
 enable/disable special queue mode
#define KDSBORDER   0x4B39
 set screen boarder in ega text mode
#define KDSETMODE   0x4B3A
 set text/grahics mode
#define KD_TEXT   0x00
#define KD_GRAPHICS   0x01
#define KD_TEXT0   0x02
 ?
#define KD_TEXT1   0x03
 ?
#define KDGETMODE   0x4B3B
 get current mode
#define KDMAPDISP   0x4B3C
 map display into address space
#define KDUNMAPDISP   0x4B3D
 unmap display from address space
#define KDVDCTYPE   0x4B3E
 return vdc controller/display info
#define KIOCINFO   0x4B3F
 tell what the device is
#define E_TABSZ   256
#define GIO_SCRNMAP   0x4B40
 get screen mapping from kernel
#define PIO_SCRNMAP   0x4B41
 put screen mapping table in kernel
#define GIO_ATTR   0x4B42
 get screen attributes
#define GIO_COLOR   0x4B43
 return nonzero if display is color
#define K_RAW   0x00
#define K_XLATE   0x01
#define K_MEDIUMRAW   0x02
#define KDGKBMODE   0x4B44
 gets current keyboard mode
#define KDSKBMODE   0x4B45
 sets current keyboard mode
#define K_METABIT   0x03
 merge with previous pair of ioctls?
#define K_ESCPREFIX   0x04
#define KDGKBMETA   0x4B62
 gets meta key handling mode
#define KDSKBMETA   0x4B63
 sets meta key handling mode
#define K_NORMTAB   0x00
#define K_SHIFTTAB   0x01
#define K_ALTTAB   0x02
#define K_ALTSHIFTTAB   0x03
#define K_SRQTAB   0x04
#define KDGKBENT   0x4B46
 gets one entry in translation table
#define KDSKBENT   0x4B47
 sets one entry in translation table
#define KDGKBSENT   0x4B48
 gets one function key string entry
#define KDSKBSENT   0x4B49
 sets one function key string entry
#define KDGKBDIACR   0x4B4A
 read kernel accent table
#define KDSKBDIACR   0x4B4B
 write kernel accent table

Typedefs

typedef char scrnmap_t


Define Documentation

#define CGA   0x02

Definition at line 12 of file kd.h.

#define CGA_GET   0x4B1D

get cga display mode

Definition at line 62 of file kd.h.

#define CGAIO   0x4B25

i/o to cga video board

Definition at line 82 of file kd.h.

#define CONS_CURRENT   0x4B04

return current output device

Definition at line 10 of file kd.h.

#define CONS_GET   0x4B1B

should add more vga modes, etc get current display mode

Definition at line 39 of file kd.h.

#define E_TABSZ   256

Definition at line 157 of file kd.h.

#define EGA   0x03

Definition at line 13 of file kd.h.

#define EGA_GET   0x4B1E

get ega display mode

Definition at line 63 of file kd.h.

#define EGAIO   0x4B26

i/o to ega video board

Definition at line 83 of file kd.h.

#define GIO_ATTR   0x4B42

get screen attributes

Definition at line 161 of file kd.h.

#define GIO_COLOR   0x4B43

return nonzero if display is color

Definition at line 162 of file kd.h.

#define GIO_FONT   0x4B60

gets font in expanded form

Definition at line 93 of file kd.h.

#define GIO_FONT8x14   0x4B2A

gets current 8x14 font used

Definition at line 88 of file kd.h.

#define GIO_FONT8x16   0x4B2C

gets current 8x16 font used

Definition at line 90 of file kd.h.

#define GIO_FONT8x8   0x4B28

gets current 8x8 font used

Definition at line 86 of file kd.h.

#define GIO_SCRNMAP   0x4B40

get screen mapping from kernel

Definition at line 158 of file kd.h.

#define IN_ON_PORT   0x00

Definition at line 76 of file kd.h.

#define K_ALTSHIFTTAB   0x03

Definition at line 184 of file kd.h.

#define K_ALTTAB   0x02

Definition at line 183 of file kd.h.

#define K_ESCPREFIX   0x04

Definition at line 172 of file kd.h.

#define K_MEDIUMRAW   0x02

Definition at line 166 of file kd.h.

#define K_METABIT   0x03

merge with previous pair of ioctls?

Definition at line 171 of file kd.h.

#define K_NORMTAB   0x00

Definition at line 181 of file kd.h.

#define K_RAW   0x00

Definition at line 164 of file kd.h.

#define K_SHIFTTAB   0x01

Definition at line 182 of file kd.h.

#define K_SRQTAB   0x04

Definition at line 185 of file kd.h.

#define K_XLATE   0x01

Definition at line 165 of file kd.h.

#define KB_101   0x02

Definition at line 119 of file kd.h.

#define KB_84   0x01

Definition at line 118 of file kd.h.

#define KB_OTHER   0x03

Definition at line 120 of file kd.h.

#define KD_CGA   0x03

Definition at line 105 of file kd.h.

#define KD_EGA   0x04

Definition at line 106 of file kd.h.

#define KD_GRAPHICS   0x01

Definition at line 138 of file kd.h.

#define KD_HERCULES   0x02

Definition at line 104 of file kd.h.

#define KD_MONO   0x01

Definition at line 103 of file kd.h.

#define KD_TEXT   0x00

Definition at line 137 of file kd.h.

#define KD_TEXT0   0x02

?

Definition at line 139 of file kd.h.

#define KD_TEXT1   0x03

?

Definition at line 140 of file kd.h.

#define KDADDIO   0x4B34

add i/o port as valid

Definition at line 122 of file kd.h.

#define KDDELIO   0x4B35

del i/o port as valid

Definition at line 123 of file kd.h.

#define KDDISABIO   0x4B37

disable i/o to video board

Definition at line 125 of file kd.h.

#define KDDISPTYPE   0x4B2E

gets display info

Definition at line 102 of file kd.h.

#define KDENABIO   0x4B36

enable i/o to video board

Definition at line 124 of file kd.h.

#define KDGETLED   0x4B31

return current led flags

Definition at line 111 of file kd.h.

#define KDGETMODE   0x4B3B

get current mode

Definition at line 141 of file kd.h.

#define KDGKBDIACR   0x4B4A

read kernel accent table

Definition at line 203 of file kd.h.

#define KDGKBENT   0x4B46

gets one entry in translation table

Definition at line 186 of file kd.h.

#define KDGKBMETA   0x4B62

gets meta key handling mode

Definition at line 173 of file kd.h.

#define KDGKBMODE   0x4B44

gets current keyboard mode

Definition at line 167 of file kd.h.

#define KDGKBSENT   0x4B48

gets one function key string entry

Definition at line 193 of file kd.h.

#define KDGKBTYPE   0x4B33

get keyboard type

Definition at line 117 of file kd.h.

#define KDMAPDISP   0x4B3C

map display into address space

Definition at line 149 of file kd.h.

#define KDMKTONE   0x4B30

generate tone

Definition at line 109 of file kd.h.

#define KDQUEMODE   0x4B38

enable/disable special queue mode

Definition at line 132 of file kd.h.

#define KDSBORDER   0x4B39

set screen boarder in ega text mode

Definition at line 134 of file kd.h.

#define KDSETLED   0x4B32

set current led flags

Definition at line 112 of file kd.h.

#define KDSETMODE   0x4B3A

set text/grahics mode

Definition at line 136 of file kd.h.

#define KDSKBDIACR   0x4B4B

write kernel accent table

Definition at line 204 of file kd.h.

#define KDSKBENT   0x4B47

sets one entry in translation table

Definition at line 187 of file kd.h.

#define KDSKBMETA   0x4B63

sets meta key handling mode

Definition at line 174 of file kd.h.

#define KDSKBMODE   0x4B45

sets current keyboard mode

Definition at line 168 of file kd.h.

#define KDSKBSENT   0x4B49

sets one function key string entry

Definition at line 194 of file kd.h.

#define KDUNMAPDISP   0x4B3D

unmap display from address space

Definition at line 150 of file kd.h.

#define KDVDCTYPE   0x4B3E

return vdc controller/display info

Definition at line 152 of file kd.h.

#define KIOCINFO   0x4B3F

tell what the device is

Definition at line 154 of file kd.h.

#define KIOCSOUND   0x4B2F

start sound generation (0 for off)

Definition at line 108 of file kd.h.

#define LED_CAP   0x04

caps lock

Definition at line 114 of file kd.h.

#define LED_NUM   0x02

num lock

Definition at line 115 of file kd.h.

#define LED_SCR   0x01

scroll lock

Definition at line 113 of file kd.h.

#define M_B40x25   0

40x25 mono (cga/ega)

Definition at line 40 of file kd.h.

#define M_B80x25   2

80x25 mono (cga/ega)

Definition at line 42 of file kd.h.

#define M_BG320   4

320x200 mono (cga/ega)

Definition at line 44 of file kd.h.

#define M_BG640   6

640x200 mono (cga/ega)

Definition at line 46 of file kd.h.

#define M_C40x25   1

40x25 color (cga/ega)

Definition at line 41 of file kd.h.

#define M_C80x25   3

80x25 color (cga/ega)

Definition at line 43 of file kd.h.

#define M_CG320   5

320x200 color (cga/ega)

Definition at line 45 of file kd.h.

#define M_CG320_D   13

ega mode d

Definition at line 48 of file kd.h.

#define M_CG640_E   14

ega mode e

Definition at line 49 of file kd.h.

#define M_CG640x350   16

ega mode 10

Definition at line 51 of file kd.h.

#define M_EFAMONOAPA   15

ega mode f

Definition at line 50 of file kd.h.

#define M_EGAMONO80x25   7

80x25 mono (ega)

Definition at line 47 of file kd.h.

#define M_ENH_B40x25   19

ega enh 40x25 mono

Definition at line 54 of file kd.h.

#define M_ENH_B80x25   21

ega enh 80x25 mono

Definition at line 56 of file kd.h.

#define M_ENH_B80x43   0x70

ega enh 80x43 mono

Definition at line 58 of file kd.h.

#define M_ENH_C40x25   20

ega enh 40x25 color

Definition at line 55 of file kd.h.

#define M_ENH_C80x25   22

ega enh 80x25 color

Definition at line 57 of file kd.h.

#define M_ENH_C80x43   0x71

ega enh 80x43 color

Definition at line 59 of file kd.h.

#define M_ENH_CG640   18

ega mode 10*

Definition at line 53 of file kd.h.

#define M_ENHMONOAPA2   17

ega mode f with ext mem

Definition at line 52 of file kd.h.

#define M_MCA_MODE   0xff

monochrome adapter mode

Definition at line 60 of file kd.h.

#define MAPCGA   0x4B21

map cga video mem into address space

Definition at line 67 of file kd.h.

#define MAPCONS   0x4B1F

map current video mem into address space

Definition at line 65 of file kd.h.

#define MAPEGA   0x4B22

map ega video mem into address space

Definition at line 68 of file kd.h.

#define MAPMONO   0x4B20

map mca video mem into address space

Definition at line 66 of file kd.h.

#define MAPVGA   0x4B23

map vga video mem into address space

Definition at line 69 of file kd.h.

#define MCA_GET   0x4B1C

get mca display mode

Definition at line 61 of file kd.h.

#define MCAIO   0x4B24

i/o to mca video board

Definition at line 81 of file kd.h.

#define MKDIOADDR   32

io bitmap size from <linux/sched.h>

Definition at line 96 of file kd.h.

#define MONO   0x01

Definition at line 11 of file kd.h.

#define OUT_ON_PORT   0x01

Definition at line 77 of file kd.h.

#define PIO_FONT   0x4B61

use font in expanded form

Definition at line 94 of file kd.h.

#define PIO_FONT8x14   0x4B2B

use supplied 8x14 font

Definition at line 89 of file kd.h.

#define PIO_FONT8x16   0x4B2D

use supplied 8x16 font

Definition at line 91 of file kd.h.

#define PIO_FONT8x8   0x4B29

use supplied 8x8 font

Definition at line 87 of file kd.h.

#define PIO_SCRNMAP   0x4B41

put screen mapping table in kernel

Definition at line 159 of file kd.h.

#define SW_ATT640   0x4B1A

640x400 16color

Definition at line 36 of file kd.h.

#define SW_B40x25   0x4B05

40x25 mono text (cga/ega)

Definition at line 15 of file kd.h.

#define SW_B80x25   0x4B07

80x25 mono text (cga/ega)

Definition at line 17 of file kd.h.

#define SW_BG320   0x4B09

320x200 mono graphics (cga/ega)

Definition at line 19 of file kd.h.

#define SW_BG640   0x4B0B

640x200 mono graphics (cga/ega)

Definition at line 21 of file kd.h.

#define SW_C40x25   0x4B06

40x24 color text (cga/ega)

Definition at line 16 of file kd.h.

#define SW_C80x25   0x4B08

80x25 color text (cga/ega)

Definition at line 18 of file kd.h.

#define SW_CG320   0x4B0A

320x200 color graphics (cga/ega)

Definition at line 20 of file kd.h.

#define SW_CG320_D   0x4B0C

320x200 graphics (ega mode d)

Definition at line 22 of file kd.h.

#define SW_CG640_E   0x4B0D

640x200 graphics (ega mode e)

Definition at line 23 of file kd.h.

#define SW_CG640x350   0x4B10

640x350 graphics (ega mode 10)

Definition at line 26 of file kd.h.

#define SW_EGAMONO80x25   0x4B12

80x25 mono text (ega mode 7)

Definition at line 28 of file kd.h.

#define SW_EGAMONOAPA   0x4B0E

640x350 graphics (ega mode f)

Definition at line 24 of file kd.h.

#define SW_ENH_CG640   0x4B11

640x350 graphics extd mem (ega mode 10*)

Definition at line 27 of file kd.h.

#define SW_ENH_MONOAPA2   0x4B0F

640x350 graphics extd mem (ega mode f*)

Definition at line 25 of file kd.h.

#define SW_ENHB40x25   0x4B13

enhanced 40x25 mono text (ega)

Definition at line 29 of file kd.h.

#define SW_ENHB80x25   0x4B15

enhanced 80x25 mono text (ega)

Definition at line 31 of file kd.h.

#define SW_ENHB80x43   0x4B17

enhanced 80x43 mono text (ega)

Definition at line 33 of file kd.h.

#define SW_ENHC40x25   0x4B14

enhanced 40x25 color text (ega)

Definition at line 30 of file kd.h.

#define SW_ENHC80x25   0x4B16

enhanced 80x25 color text (ega)

Definition at line 32 of file kd.h.

#define SW_ENHC80x43   0x4B18

enhanced 80x43 color text (ega)

Definition at line 34 of file kd.h.

#define SW_MCAMODE   0x4B19

reinit mca

Definition at line 35 of file kd.h.

#define SWAPCGA   0x4B01

use cga as output device

Definition at line 7 of file kd.h.

#define SWAPEGA   0x4B02

use ega as output device

Definition at line 8 of file kd.h.

#define SWAPMONO   0x4B00

0x4B is 'K', to avoid collision with termios and vt use mca as output device

Definition at line 6 of file kd.h.

#define SWAPVGA   0x4B03

use vga as output device

Definition at line 9 of file kd.h.

#define VGAIO   0x4B27

i/o to vga video board

Definition at line 84 of file kd.h.


Typedef Documentation

typedef char scrnmap_t

Definition at line 156 of file kd.h.