Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
init.h File Reference
#include "initdef.h"
#include "vgatypes.h"
#include "vstruct.h"
#include <linux/types.h>
#include <asm/io.h>
#include <linux/fb.h>
#include "sis.h"
#include <video/sisfb.h>

Go to the source code of this file.

Functions

bool SiSInitPtr (struct SiS_Private *SiS_Pr)
 
unsigned short SiS_GetModeID_LCD (int VGAEngine, unsigned int VBFlags, int HDisplay, int VDisplay, int Depth, bool FSTN, unsigned short CustomT, int LCDwith, int LCDheight, unsigned int VBFlags2)
 
unsigned short SiS_GetModeID_TV (int VGAEngine, unsigned int VBFlags, int HDisplay, int VDisplay, int Depth, unsigned int VBFlags2)
 
unsigned short SiS_GetModeID_VGA2 (int VGAEngine, unsigned int VBFlags, int HDisplay, int VDisplay, int Depth, unsigned int VBFlags2)
 
void SiS_DisplayOn (struct SiS_Private *SiS_Pr)
 
void SiS_DisplayOff (struct SiS_Private *SiS_Pr)
 
void SiSRegInit (struct SiS_Private *SiS_Pr, SISIOADDRESS BaseAddr)
 
void SiS_SetEnableDstn (struct SiS_Private *SiS_Pr, int enable)
 
void SiS_SetEnableFstn (struct SiS_Private *SiS_Pr, int enable)
 
unsigned short SiS_GetModeFlag (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
bool SiSDetermineROMLayout661 (struct SiS_Private *SiS_Pr)
 
bool SiS_SearchModeID (struct SiS_Private *SiS_Pr, unsigned short *ModeNo, unsigned short *ModeIdIndex)
 
unsigned short SiS_GetModePtr (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
unsigned short SiS_GetRefCRTVCLK (struct SiS_Private *SiS_Pr, unsigned short Index, int UseWide)
 
unsigned short SiS_GetRefCRT1CRTC (struct SiS_Private *SiS_Pr, unsigned short Index, int UseWide)
 
unsigned short SiS_GetColorDepth (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
unsigned short SiS_GetOffset (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, unsigned short RRTI)
 
void SiS_LoadDAC (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
bool SiSSetMode (struct SiS_Private *SiS_Pr, unsigned short ModeNo)
 
void SiS_CalcCRRegisters (struct SiS_Private *SiS_Pr, int depth)
 
void SiS_CalcLCDACRT1Timing (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
void SiS_Generic_ConvertCRData (struct SiS_Private *SiS_Pr, unsigned char *crdata, int xres, int yres, struct fb_var_screeninfo *var, bool writeres)
 
void SiS_GetVBInfo (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, int chkcrt2mode)
 
void SiS_GetLCDResInfo (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
void SiS_SetYPbPr (struct SiS_Private *SiS_Pr)
 
void SiS_SetTVMode (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
void SiS_UnLockCRT2 (struct SiS_Private *SiS_Pr)
 
void SiS_DisableBridge (struct SiS_Private *)
 
bool SiS_SetCRT2Group (struct SiS_Private *, unsigned short)
 
unsigned short SiS_GetRatePtr (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
void SiS_WaitRetrace1 (struct SiS_Private *SiS_Pr)
 
unsigned short SiS_GetResInfo (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
unsigned short SiS_GetCH700x (struct SiS_Private *SiS_Pr, unsigned short tempax)
 
unsigned short SiS_GetVCLK2Ptr (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, unsigned short RRTI)
 
bool SiS_IsVAMode (struct SiS_Private *)
 
bool SiS_IsDualEdge (struct SiS_Private *)
 

Function Documentation

void SiS_CalcCRRegisters ( struct SiS_Private SiS_Pr,
int  depth 
)

Definition at line 3330 of file init.c.

void SiS_CalcLCDACRT1Timing ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 3386 of file init.c.

void SiS_DisableBridge ( struct SiS_Private )

Definition at line 3836 of file init301.c.

void SiS_DisplayOff ( struct SiS_Private SiS_Pr)

Definition at line 969 of file init.c.

void SiS_DisplayOn ( struct SiS_Private SiS_Pr)

Definition at line 963 of file init.c.

void SiS_Generic_ConvertCRData ( struct SiS_Private SiS_Pr,
unsigned char crdata,
int  xres,
int  yres,
struct fb_var_screeninfo var,
bool  writeres 
)

Definition at line 3537 of file init.c.

unsigned short SiS_GetCH700x ( struct SiS_Private SiS_Pr,
unsigned short  tempax 
)

Definition at line 8891 of file init301.c.

unsigned short SiS_GetColorDepth ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 1777 of file init.c.

void SiS_GetLCDResInfo ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 1466 of file init301.c.

unsigned short SiS_GetModeFlag ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 1232 of file init.c.

unsigned short SiS_GetModeID_LCD ( int  VGAEngine,
unsigned int  VBFlags,
int  HDisplay,
int  VDisplay,
int  Depth,
bool  FSTN,
unsigned short  CustomT,
int  LCDwith,
int  LCDheight,
unsigned int  VBFlags2 
)

Definition at line 479 of file init.c.

unsigned short SiS_GetModeID_TV ( int  VGAEngine,
unsigned int  VBFlags,
int  HDisplay,
int  VDisplay,
int  Depth,
unsigned int  VBFlags2 
)

Definition at line 728 of file init.c.

unsigned short SiS_GetModeID_VGA2 ( int  VGAEngine,
unsigned int  VBFlags,
int  HDisplay,
int  VDisplay,
int  Depth,
unsigned int  VBFlags2 
)

Definition at line 847 of file init.c.

unsigned short SiS_GetModePtr ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 1636 of file init.c.

unsigned short SiS_GetOffset ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex,
unsigned short  RRTI 
)

Definition at line 1803 of file init.c.

unsigned short SiS_GetRatePtr ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 284 of file init301.c.

unsigned short SiS_GetRefCRT1CRTC ( struct SiS_Private SiS_Pr,
unsigned short  Index,
int  UseWide 
)

Definition at line 1668 of file init.c.

unsigned short SiS_GetRefCRTVCLK ( struct SiS_Private SiS_Pr,
unsigned short  Index,
int  UseWide 
)

Definition at line 1654 of file init.c.

unsigned short SiS_GetResInfo ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 2723 of file init301.c.

void SiS_GetVBInfo ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex,
int  chkcrt2mode 
)

Definition at line 934 of file init301.c.

unsigned short SiS_GetVCLK2Ptr ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex,
unsigned short  RRTI 
)

Definition at line 2150 of file init301.c.

bool SiS_IsDualEdge ( struct SiS_Private )

Definition at line 701 of file init301.c.

bool SiS_IsVAMode ( struct SiS_Private )

Definition at line 714 of file init301.c.

void SiS_LoadDAC ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 2873 of file init.c.

bool SiS_SearchModeID ( struct SiS_Private SiS_Pr,
unsigned short ModeNo,
unsigned short ModeIdIndex 
)

Definition at line 1595 of file init.c.

bool SiS_SetCRT2Group ( struct SiS_Private ,
unsigned  short 
)

Definition at line 8520 of file init301.c.

void SiS_SetEnableDstn ( struct SiS_Private SiS_Pr,
int  enable 
)

Definition at line 1216 of file init.c.

void SiS_SetEnableFstn ( struct SiS_Private SiS_Pr,
int  enable 
)

Definition at line 1222 of file init.c.

void SiS_SetTVMode ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 1205 of file init301.c.

void SiS_SetYPbPr ( struct SiS_Private SiS_Pr)

Definition at line 1162 of file init301.c.

void SiS_UnLockCRT2 ( struct SiS_Private SiS_Pr)

Definition at line 93 of file init301.c.

void SiS_WaitRetrace1 ( struct SiS_Private SiS_Pr)

Definition at line 595 of file init301.c.

bool SiSDetermineROMLayout661 ( struct SiS_Private SiS_Pr)

Definition at line 1249 of file init.c.

bool SiSInitPtr ( struct SiS_Private SiS_Pr)

Definition at line 317 of file init.c.

void SiSRegInit ( struct SiS_Private SiS_Pr,
SISIOADDRESS  BaseAddr 
)

Definition at line 980 of file init.c.

bool SiSSetMode ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo 
)

Definition at line 3168 of file init.c.