Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
newport_con.c File Reference
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/kd.h>
#include <linux/selection.h>
#include <linux/console.h>
#include <linux/vt_kern.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/gio_device.h>
#include <video/newport.h>
#include <linux/linux_logo.h>
#include <linux/font.h>

Go to the source code of this file.

Macros

#define FONT_DATA   ((unsigned char *)font_vga_8x16.data)
 
#define REFCOUNT(fd)   (((int *)(fd))[-1])
 
#define FNTSIZE(fd)   (((int *)(fd))[-2])
 
#define FNTCHARCNT(fd)   (((int *)(fd))[-3])
 
#define FONT_EXTRA_WORDS   3
 
#define BMASK(c)   (c << 24)
 
#define RENDER(regs, cp)
 
#define TESTVAL   0xdeadbeef
 
#define XSTI_TO_FXSTART(val)   (((val) & 0xffff) << 11)
 
#define L(a)   (char)('A'+(a))
 
#define DUMMY   (void *) newport_dummy
 

Functions

 MODULE_ALIAS ("gio:7e")
 
int __init newport_console_init (void)
 
void __exit newport_console_exit (void)
 
 module_init (newport_console_init)
 
 module_exit (newport_console_exit)
 
 MODULE_LICENSE ("GPL")
 

Variables

struct consw newport_con
 

Macro Definition Documentation

#define BMASK (   c)    (c << 24)

Definition at line 55 of file newport_con.c.

#define DUMMY   (void *) newport_dummy

Definition at line 715 of file newport_con.c.

#define FNTCHARCNT (   fd)    (((int *)(fd))[-3])

Definition at line 39 of file newport_con.c.

#define FNTSIZE (   fd)    (((int *)(fd))[-2])

Definition at line 38 of file newport_con.c.

#define FONT_DATA   ((unsigned char *)font_vga_8x16.data)

Definition at line 34 of file newport_con.c.

#define FONT_EXTRA_WORDS   3

Definition at line 40 of file newport_con.c.

#define L (   a)    (char)('A'+(a))
#define REFCOUNT (   fd)    (((int *)(fd))[-1])

Definition at line 37 of file newport_con.c.

#define RENDER (   regs,
  cp 
)
Value:
do { \
(regs)->go.zpattern = BMASK((cp)[0x0]); (regs)->go.zpattern = BMASK((cp)[0x1]); \
(regs)->go.zpattern = BMASK((cp)[0x2]); (regs)->go.zpattern = BMASK((cp)[0x3]); \
(regs)->go.zpattern = BMASK((cp)[0x4]); (regs)->go.zpattern = BMASK((cp)[0x5]); \
(regs)->go.zpattern = BMASK((cp)[0x6]); (regs)->go.zpattern = BMASK((cp)[0x7]); \
(regs)->go.zpattern = BMASK((cp)[0x8]); (regs)->go.zpattern = BMASK((cp)[0x9]); \
(regs)->go.zpattern = BMASK((cp)[0xa]); (regs)->go.zpattern = BMASK((cp)[0xb]); \
(regs)->go.zpattern = BMASK((cp)[0xc]); (regs)->go.zpattern = BMASK((cp)[0xd]); \
(regs)->go.zpattern = BMASK((cp)[0xe]); (regs)->go.zpattern = BMASK((cp)[0xf]); \
} while(0)

Definition at line 57 of file newport_con.c.

#define TESTVAL   0xdeadbeef

Definition at line 68 of file newport_con.c.

#define XSTI_TO_FXSTART (   val)    (((val) & 0xffff) << 11)

Definition at line 69 of file newport_con.c.

Function Documentation

MODULE_ALIAS ( "gio:7e"  )
module_exit ( newport_console_exit  )
module_init ( newport_console_init  )
MODULE_LICENSE ( "GPL"  )
void __exit newport_console_exit ( void  )

Definition at line 784 of file newport_con.c.

int __init newport_console_init ( void  )

Definition at line 779 of file newport_con.c.

Variable Documentation

struct consw newport_con
Initial value:
= {
.owner = THIS_MODULE,
.con_startup = newport_startup,
.con_init = newport_init,
.con_deinit = newport_deinit,
.con_clear = newport_clear,
.con_putc = newport_putc,
.con_putcs = newport_putcs,
.con_cursor = newport_cursor,
.con_scroll = newport_scroll,
.con_bmove = newport_bmove,
.con_switch = newport_switch,
.con_blank = newport_blank,
.con_font_set = newport_font_set,
.con_font_default = newport_font_default,
.con_set_palette = newport_set_palette,
.con_scrolldelta = newport_scrolldelta,
.con_set_origin = DUMMY,
.con_save_screen = DUMMY
}

Definition at line 717 of file newport_con.c.