Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
consolemap.c File Reference
#include <linux/module.h>
#include <linux/kd.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/tty.h>
#include <asm/uaccess.h>
#include <linux/console.h>
#include <linux/consolemap.h>
#include <linux/vt_kern.h>

Go to the source code of this file.

Data Structures

struct  uni_pagedir
 

Macros

#define MAX_GLYPH   512 /* Max possible glyph value */
 

Functions

unsigned shortset_translate (int m, struct vc_data *vc)
 
u16 inverse_translate (struct vc_data *conp, int glyph, int use_unicode)
 
 EXPORT_SYMBOL_GPL (inverse_translate)
 
int con_set_trans_old (unsigned char __user *arg)
 
int con_get_trans_old (unsigned char __user *arg)
 
int con_set_trans_new (ushort __user *arg)
 
int con_get_trans_new (ushort __user *arg)
 
void con_free_unimap (struct vc_data *vc)
 
int con_clear_unimap (struct vc_data *vc, struct unimapinit *ui)
 
int con_set_unimap (struct vc_data *vc, ushort ct, struct unipair __user *list)
 
int con_set_default_unimap (struct vc_data *vc)
 
 EXPORT_SYMBOL (con_set_default_unimap)
 
int con_copy_unimap (struct vc_data *dst_vc, struct vc_data *src_vc)
 
 EXPORT_SYMBOL (con_copy_unimap)
 
int con_get_unimap (struct vc_data *vc, ushort ct, ushort __user *uct, struct unipair __user *list)
 
u32 conv_8bit_to_uni (unsigned char c)
 
int conv_uni_to_8bit (u32 uni)
 
int conv_uni_to_pc (struct vc_data *conp, long ucs)
 
void __init console_map_init (void)
 

Variables

u8 dfont_unicount []
 
u16 dfont_unitable []
 

Macro Definition Documentation

#define MAX_GLYPH   512 /* Max possible glyph value */

Definition at line 172 of file consolemap.c.

Function Documentation

int con_clear_unimap ( struct vc_data vc,
struct unimapinit ui 
)

Definition at line 528 of file consolemap.c.

int con_copy_unimap ( struct vc_data dst_vc,
struct vc_data src_vc 
)

con_copy_unimap - copy unimap between two vts : target : source

The caller must hold the console lock when invoking this method

Definition at line 710 of file consolemap.c.

void con_free_unimap ( struct vc_data vc)

Definition at line 420 of file consolemap.c.

int con_get_trans_new ( ushort __user arg)

Definition at line 366 of file consolemap.c.

int con_get_trans_old ( unsigned char __user arg)

Definition at line 328 of file consolemap.c.

int con_get_unimap ( struct vc_data vc,
ushort  ct,
ushort __user uct,
struct unipair __user list 
)

con_get_unimap - get the unicode map : the console to read from

Read the console unicode data for this console. Called from the ioctl handlers.

Definition at line 733 of file consolemap.c.

int con_set_default_unimap ( struct vc_data vc)

con_set_default_unimap - set default unicode map : the console we are updating

Loads the unimap for the hardware font, as defined in uni_hash.tbl. The representation used was the most compact I could come up with. This routine is executed at video setup, and when the PIO_FONTRESET ioctl is called.

The caller must hold the console lock

Definition at line 654 of file consolemap.c.

int con_set_trans_new ( ushort __user arg)

Definition at line 346 of file consolemap.c.

int con_set_trans_old ( unsigned char __user arg)

Definition at line 308 of file consolemap.c.

int con_set_unimap ( struct vc_data vc,
ushort  ct,
struct unipair __user list 
)

Definition at line 537 of file consolemap.c.

void __init console_map_init ( void  )

Definition at line 831 of file consolemap.c.

u32 conv_8bit_to_uni ( unsigned char  c)

Definition at line 775 of file consolemap.c.

int conv_uni_to_8bit ( u32  uni)

Definition at line 781 of file consolemap.c.

int conv_uni_to_pc ( struct vc_data conp,
long  ucs 
)

Definition at line 792 of file consolemap.c.

EXPORT_SYMBOL ( con_set_default_unimap  )
EXPORT_SYMBOL ( con_copy_unimap  )
EXPORT_SYMBOL_GPL ( inverse_translate  )
u16 inverse_translate ( struct vc_data conp,
int  glyph,
int  use_unicode 
)

Definition at line 260 of file consolemap.c.

unsigned short* set_translate ( int  m,
struct vc_data vc 
)

Definition at line 247 of file consolemap.c.

Variable Documentation

u8 dfont_unicount[]
u16 dfont_unitable[]