Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
viamode.c File Reference
#include <linux/via-core.h>
#include "global.h"

Go to the source code of this file.

Functions

struct fb_videomodeviafb_get_best_mode (int hres, int vres, int refresh)
 
struct fb_videomodeviafb_get_best_rb_mode (int hres, int vres, int refresh)
 

Variables

struct io_reg CN400_ModeXregs []
 
struct io_reg CN700_ModeXregs []
 
struct io_reg KM400_ModeXregs []
 
struct io_reg CX700_ModeXregs []
 
struct io_reg VX855_ModeXregs []
 
struct io_reg CLE266_ModeXregs []
 
struct io_reg PM1024x768 []
 
struct patch_table res_patch_table []
 
struct VPITTable VPIT
 
int NUM_TOTAL_CN400_ModeXregs = ARRAY_SIZE(CN400_ModeXregs)
 
int NUM_TOTAL_CN700_ModeXregs = ARRAY_SIZE(CN700_ModeXregs)
 
int NUM_TOTAL_KM400_ModeXregs = ARRAY_SIZE(KM400_ModeXregs)
 
int NUM_TOTAL_CX700_ModeXregs = ARRAY_SIZE(CX700_ModeXregs)
 
int NUM_TOTAL_VX855_ModeXregs = ARRAY_SIZE(VX855_ModeXregs)
 
int NUM_TOTAL_CLE266_ModeXregs = ARRAY_SIZE(CLE266_ModeXregs)
 
int NUM_TOTAL_PATCH_MODE = ARRAY_SIZE(res_patch_table)
 

Function Documentation

struct fb_videomode* viafb_get_best_mode ( int  hres,
int  vres,
int  refresh 
)
read

Definition at line 372 of file viamode.c.

struct fb_videomode* viafb_get_best_rb_mode ( int  hres,
int  vres,
int  refresh 
)
read

Definition at line 378 of file viamode.c.

Variable Documentation

struct io_reg CLE266_ModeXregs[]
Initial value:
= { {VIASR, SR1E, 0xF0, 0x00},
{VIASR, SR2A, 0x0F, 0x00},
{VIASR, SR15, 0x02, 0x02},
{VIASR, SR16, 0xBF, 0x08},
{VIASR, SR17, 0xFF, 0x1F},
{VIASR, SR18, 0xFF, 0x4E},
{VIASR, SR1A, 0xFB, 0x08},
{VIACR, CR32, 0xFF, 0x00},
{VIACR, CR35, 0xFF, 0x00},
{VIACR, CR36, 0x08, 0x00},
{VIACR, CR6A, 0xFF, 0x80},
{VIACR, CR6A, 0xFF, 0xC0},
{VIACR, CR55, 0x80, 0x00},
{VIACR, CR5D, 0x80, 0x00},
{VIAGR, GR20, 0xFF, 0x00},
{VIAGR, GR21, 0xFF, 0x00},
{VIAGR, GR22, 0xFF, 0x00},
}

Definition at line 214 of file viamode.c.

struct io_reg CN400_ModeXregs[]
Initial value:
= { {VIASR, SR10, 0xFF, 0x01},
{VIASR, SR15, 0x02, 0x02},
{VIASR, SR16, 0xBF, 0x08},
{VIASR, SR17, 0xFF, 0x1F},
{VIASR, SR18, 0xFF, 0x4E},
{VIASR, SR1A, 0xFB, 0x08},
{VIASR, SR1E, 0x0F, 0x01},
{VIASR, SR2A, 0xFF, 0x00},
{VIACR, CR32, 0xFF, 0x00},
{VIACR, CR33, 0xFF, 0x00},
{VIACR, CR35, 0xFF, 0x00},
{VIACR, CR36, 0x08, 0x00},
{VIACR, CR69, 0xFF, 0x00},
{VIACR, CR6A, 0xFF, 0x40},
{VIACR, CR6B, 0xFF, 0x00},
{VIACR, CR88, 0xFF, 0x40},
{VIACR, CR89, 0xFF, 0x00},
{VIACR, CR8A, 0xFF, 0x88},
{VIACR, CR8B, 0xFF, 0x69},
{VIACR, CR8C, 0xFF, 0x57},
{VIACR, CR8D, 0xFF, 0x00},
{VIACR, CR8E, 0xFF, 0x7B},
{VIACR, CR8F, 0xFF, 0x03},
{VIACR, CR90, 0xFF, 0x30},
{VIACR, CR91, 0xFF, 0xA0},
{VIACR, CR96, 0xFF, 0x00},
{VIACR, CR97, 0xFF, 0x00},
{VIACR, CR99, 0xFF, 0x00},
{VIACR, CR9B, 0xFF, 0x00}
}

Definition at line 25 of file viamode.c.

struct io_reg CN700_ModeXregs[]

Definition at line 58 of file viamode.c.

struct io_reg CX700_ModeXregs[]

Definition at line 145 of file viamode.c.

struct io_reg KM400_ModeXregs[]

Definition at line 107 of file viamode.c.

int NUM_TOTAL_CLE266_ModeXregs = ARRAY_SIZE(CLE266_ModeXregs)

Definition at line 349 of file viamode.c.

int NUM_TOTAL_CN400_ModeXregs = ARRAY_SIZE(CN400_ModeXregs)

Definition at line 344 of file viamode.c.

int NUM_TOTAL_CN700_ModeXregs = ARRAY_SIZE(CN700_ModeXregs)

Definition at line 345 of file viamode.c.

int NUM_TOTAL_CX700_ModeXregs = ARRAY_SIZE(CX700_ModeXregs)

Definition at line 347 of file viamode.c.

int NUM_TOTAL_KM400_ModeXregs = ARRAY_SIZE(KM400_ModeXregs)

Definition at line 346 of file viamode.c.

int NUM_TOTAL_PATCH_MODE = ARRAY_SIZE(res_patch_table)

Definition at line 350 of file viamode.c.

int NUM_TOTAL_VX855_ModeXregs = ARRAY_SIZE(VX855_ModeXregs)

Definition at line 348 of file viamode.c.

struct io_reg PM1024x768[]
Initial value:
= { {VIASR, 0x16, 0xBF, 0x0C},
{VIASR, 0x18, 0xFF, 0x4C}
}

Definition at line 238 of file viamode.c.

struct patch_table res_patch_table[]
Initial value:

Definition at line 242 of file viamode.c.

Initial value:
= {
0xC7,
{0x01, 0x0F, 0x00, 0x0E},
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x0F, 0xFF},
{0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F,
0x01, 0x00, 0x0F, 0x00}
}

Definition at line 254 of file viamode.c.

struct io_reg VX855_ModeXregs[]

Definition at line 180 of file viamode.c.