Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
hgafb.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/spinlock.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <asm/io.h>
#include <asm/vga.h>

Go to the source code of this file.

Macros

#define DPRINTK(args...)
 
#define CHKINFO(ret)
 
#define HGA_ROWADDR(row)   ((row%4)*8192 + (row>>2)*90)
 
#define HGA_TXT   0
 
#define HGA_GFX   1
 
#define HGA_INDEX_PORT   0x3b4 /* Register select port */
 
#define HGA_VALUE_PORT   0x3b5 /* Register value port */
 
#define HGA_MODE_PORT   0x3b8 /* Mode control port */
 
#define HGA_STATUS_PORT   0x3ba /* Status and Config port */
 
#define HGA_GFX_PORT   0x3bf /* Graphics control port */
 
#define HGA_CURSOR_BLINKING   0x00
 
#define HGA_CURSOR_OFF   0x20
 
#define HGA_CURSOR_SLOWBLINK   0x60
 
#define HGA_MODE_GRAPHICS   0x02
 
#define HGA_MODE_VIDEO_EN   0x08
 
#define HGA_MODE_BLINK_EN   0x20
 
#define HGA_MODE_GFX_PAGE1   0x80
 
#define HGA_STATUS_HSYNC   0x01
 
#define HGA_STATUS_VSYNC   0x80
 
#define HGA_STATUS_VIDEO   0x08
 
#define HGA_CONFIG_COL132   0x08
 
#define HGA_GFX_MODE_EN   0x01
 
#define HGA_GFX_PAGE_EN   0x02
 

Enumerations

enum  { TYPE_HERC, TYPE_HERCPLUS, TYPE_HERCCOLOR }
 

Functions

 MODULE_AUTHOR ("Ferenc Bakonyi ([email protected])")
 
 MODULE_DESCRIPTION ("FBDev driver for Hercules Graphics Adaptor")
 
 MODULE_LICENSE ("GPL")
 
 module_param (nologo, bool, 0)
 
 MODULE_PARM_DESC (nologo,"Disables startup logo if != 0 (default=0)")
 
 module_init (hgafb_init)
 
 module_exit (hgafb_exit)
 

Macro Definition Documentation

#define CHKINFO (   ret)

Definition at line 56 of file hgafb.c.

#define DPRINTK (   args...)

Definition at line 50 of file hgafb.c.

#define HGA_CONFIG_COL132   0x08

Definition at line 99 of file hgafb.c.

#define HGA_CURSOR_BLINKING   0x00

Definition at line 86 of file hgafb.c.

#define HGA_CURSOR_OFF   0x20

Definition at line 87 of file hgafb.c.

#define HGA_CURSOR_SLOWBLINK   0x60

Definition at line 88 of file hgafb.c.

#define HGA_GFX   1

Definition at line 66 of file hgafb.c.

#define HGA_GFX_MODE_EN   0x01

Definition at line 100 of file hgafb.c.

#define HGA_GFX_PAGE_EN   0x02

Definition at line 101 of file hgafb.c.

#define HGA_GFX_PORT   0x3bf /* Graphics control port */

Definition at line 82 of file hgafb.c.

#define HGA_INDEX_PORT   0x3b4 /* Register select port */

Definition at line 78 of file hgafb.c.

#define HGA_MODE_BLINK_EN   0x20

Definition at line 92 of file hgafb.c.

#define HGA_MODE_GFX_PAGE1   0x80

Definition at line 93 of file hgafb.c.

#define HGA_MODE_GRAPHICS   0x02

Definition at line 90 of file hgafb.c.

#define HGA_MODE_PORT   0x3b8 /* Mode control port */

Definition at line 80 of file hgafb.c.

#define HGA_MODE_VIDEO_EN   0x08

Definition at line 91 of file hgafb.c.

#define HGA_ROWADDR (   row)    ((row%4)*8192 + (row>>2)*90)

Definition at line 64 of file hgafb.c.

#define HGA_STATUS_HSYNC   0x01

Definition at line 95 of file hgafb.c.

#define HGA_STATUS_PORT   0x3ba /* Status and Config port */

Definition at line 81 of file hgafb.c.

#define HGA_STATUS_VIDEO   0x08

Definition at line 97 of file hgafb.c.

#define HGA_STATUS_VSYNC   0x80

Definition at line 96 of file hgafb.c.

#define HGA_TXT   0

Definition at line 65 of file hgafb.c.

#define HGA_VALUE_PORT   0x3b5 /* Register value port */

Definition at line 79 of file hgafb.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
TYPE_HERC 
TYPE_HERCPLUS 
TYPE_HERCCOLOR 

Definition at line 75 of file hgafb.c.

Function Documentation

MODULE_AUTHOR ( "Ferenc Bakonyi ([email protected])"  )
MODULE_DESCRIPTION ( "FBDev driver for Hercules Graphics Adaptor"  )
module_exit ( hgafb_exit  )
module_init ( hgafb_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( nologo  ,
bool  ,
 
)
MODULE_PARM_DESC ( nologo  )