Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
mdacon.c File Reference
#include <linux/types.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/console.h>
#include <linux/string.h>
#include <linux/kd.h>
#include <linux/vt_kern.h>
#include <linux/vt_buffer.h>
#include <linux/selection.h>
#include <linux/spinlock.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <asm/io.h>
#include <asm/vga.h>

Go to the source code of this file.

Macros

#define MDA_CURSOR_BLINKING   0x00
 
#define MDA_CURSOR_OFF   0x20
 
#define MDA_CURSOR_SLOWBLINK   0x60
 
#define MDA_MODE_GRAPHICS   0x02
 
#define MDA_MODE_VIDEO_EN   0x08
 
#define MDA_MODE_BLINK_EN   0x20
 
#define MDA_MODE_GFX_PAGE1   0x80
 
#define MDA_STATUS_HSYNC   0x01
 
#define MDA_STATUS_VSYNC   0x80
 
#define MDA_STATUS_VIDEO   0x08
 
#define MDA_CONFIG_COL132   0x08
 
#define MDA_GFX_MODE_EN   0x01
 
#define MDA_GFX_PAGE_EN   0x02
 
#define MDA_ADDR(x, y)   ((u16 *) mda_vram_base + (y)*mda_num_columns + (x))
 

Enumerations

enum  { TYPE_MDA, TYPE_HERC, TYPE_HERCPLUS, TYPE_HERCCOLOR }
 

Functions

 module_param (mda_first_vc, int, 0)
 
 MODULE_PARM_DESC (mda_first_vc,"First virtual console. Default: 13")
 
 module_param (mda_last_vc, int, 0)
 
 MODULE_PARM_DESC (mda_last_vc,"Last virtual console. Default: 16")
 
 __setup ("mdacon=", mdacon_setup)
 
int __init mda_console_init (void)
 
 module_init (mda_console_init)
 
 module_exit (mda_console_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MDA_ADDR (   x,
  y 
)    ((u16 *) mda_vram_base + (y)*mda_num_columns + (x))

Definition at line 413 of file mdacon.c.

#define MDA_CONFIG_COL132   0x08

Definition at line 99 of file mdacon.c.

#define MDA_CURSOR_BLINKING   0x00

Definition at line 86 of file mdacon.c.

#define MDA_CURSOR_OFF   0x20

Definition at line 87 of file mdacon.c.

#define MDA_CURSOR_SLOWBLINK   0x60

Definition at line 88 of file mdacon.c.

#define MDA_GFX_MODE_EN   0x01

Definition at line 100 of file mdacon.c.

#define MDA_GFX_PAGE_EN   0x02

Definition at line 101 of file mdacon.c.

#define MDA_MODE_BLINK_EN   0x20

Definition at line 92 of file mdacon.c.

#define MDA_MODE_GFX_PAGE1   0x80

Definition at line 93 of file mdacon.c.

#define MDA_MODE_GRAPHICS   0x02

Definition at line 90 of file mdacon.c.

#define MDA_MODE_VIDEO_EN   0x08

Definition at line 91 of file mdacon.c.

#define MDA_STATUS_HSYNC   0x01

Definition at line 95 of file mdacon.c.

#define MDA_STATUS_VIDEO   0x08

Definition at line 97 of file mdacon.c.

#define MDA_STATUS_VSYNC   0x80

Definition at line 96 of file mdacon.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
TYPE_MDA 
TYPE_HERC 
TYPE_HERCPLUS 
TYPE_HERCCOLOR 

Definition at line 68 of file mdacon.c.

Function Documentation

__setup ( )
int __init mda_console_init ( void  )

Definition at line 586 of file mdacon.c.

module_exit ( mda_console_exit  )
module_init ( mda_console_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( mda_first_vc  ,
int  ,
 
)
module_param ( mda_last_vc  ,
int  ,
 
)
MODULE_PARM_DESC ( mda_first_vc  ,
"First virtual console. Default: 13"   
)
MODULE_PARM_DESC ( mda_last_vc  ,
"Last virtual console. Default: 16"   
)