Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
init301.c File Reference
#include "init301.h"

Go to the source code of this file.

Macros

#define SET_EMI   /* 302LV/ELV: Set EMI values */
 
#define SET_PWD   /* 301/302LV: Set PWD */
 
#define COMPAL_HACK   /* Needed for Compal 1400x1050 (EMI) */
 
#define COMPAQ_HACK   /* Needed for Inventec/Compaq 1280x1024 (EMI) */
 
#define ASUS_HACK   /* Needed for Asus A2H 1024x768 (EMI) */
 
#define SiS_I2CDELAY   1000
 
#define SiS_I2CDELAYSHORT   150
 

Functions

void SiS_UnLockCRT2 (struct SiS_Private *SiS_Pr)
 
unsigned short SiS_GetRatePtr (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
void SiS_DDC2Delay (struct SiS_Private *SiS_Pr, unsigned int delaytime)
 
void SiS_WaitRetrace1 (struct SiS_Private *SiS_Pr)
 
bool SiS_IsDualEdge (struct SiS_Private *SiS_Pr)
 
bool SiS_IsVAMode (struct SiS_Private *SiS_Pr)
 
void SiS_GetVBInfo (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, int checkcrt2mode)
 
void SiS_SetYPbPr (struct SiS_Private *SiS_Pr)
 
void SiS_SetTVMode (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
void SiS_GetLCDResInfo (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
unsigned short SiS_GetVCLK2Ptr (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex, unsigned short RefreshRateTableIndex)
 
unsigned short SiS_GetResInfo (struct SiS_Private *SiS_Pr, unsigned short ModeNo, unsigned short ModeIdIndex)
 
void SiS_DisableBridge (struct SiS_Private *SiS_Pr)
 
bool SiS_SetCRT2Group (struct SiS_Private *SiS_Pr, unsigned short ModeNo)
 
void SiS_SiS30xBLOn (struct SiS_Private *SiS_Pr)
 
void SiS_SiS30xBLOff (struct SiS_Private *SiS_Pr)
 
void SiS_SetCH700x (struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val)
 
void SiS_SetCH701x (struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char val)
 
unsigned short SiS_GetCH700x (struct SiS_Private *SiS_Pr, unsigned short tempbx)
 
unsigned short SiS_GetCH701x (struct SiS_Private *SiS_Pr, unsigned short tempbx)
 
void SiS_SetCH70xxANDOR (struct SiS_Private *SiS_Pr, unsigned short reg, unsigned char myor, unsigned short myand)
 
unsigned short SiS_HandleDDC (struct SiS_Private *SiS_Pr, unsigned int VBFlags, int VGAEngine, unsigned short adaptnum, unsigned short DDCdatatype, unsigned char *buffer, unsigned int VBFlags2)
 
unsigned short SiS_ReadDDC1Bit (struct SiS_Private *SiS_Pr)
 

Macro Definition Documentation

#define ASUS_HACK   /* Needed for Asus A2H 1024x768 (EMI) */

Definition at line 70 of file init301.c.

#define COMPAL_HACK   /* Needed for Compal 1400x1050 (EMI) */

Definition at line 68 of file init301.c.

#define COMPAQ_HACK   /* Needed for Inventec/Compaq 1280x1024 (EMI) */

Definition at line 69 of file init301.c.

#define SET_EMI   /* 302LV/ELV: Set EMI values */

Definition at line 61 of file init301.c.

#define SET_PWD   /* 301/302LV: Set PWD */

Definition at line 65 of file init301.c.

#define SiS_I2CDELAY   1000

Definition at line 82 of file init301.c.

#define SiS_I2CDELAYSHORT   150

Definition at line 83 of file init301.c.

Function Documentation

void SiS_DDC2Delay ( struct SiS_Private SiS_Pr,
unsigned int  delaytime 
)

Definition at line 438 of file init301.c.

void SiS_DisableBridge ( struct SiS_Private SiS_Pr)

Definition at line 3836 of file init301.c.

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

Definition at line 8891 of file init301.c.

unsigned short SiS_GetCH701x ( struct SiS_Private SiS_Pr,
unsigned short  tempbx 
)

Definition at line 8924 of file init301.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_GetRatePtr ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 284 of file init301.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  checkcrt2mode 
)

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  RefreshRateTableIndex 
)

Definition at line 2150 of file init301.c.

unsigned short SiS_HandleDDC ( struct SiS_Private SiS_Pr,
unsigned int  VBFlags,
int  VGAEngine,
unsigned short  adaptnum,
unsigned short  DDCdatatype,
unsigned char buffer,
unsigned int  VBFlags2 
)

Definition at line 9234 of file init301.c.

bool SiS_IsDualEdge ( struct SiS_Private SiS_Pr)

Definition at line 701 of file init301.c.

bool SiS_IsVAMode ( struct SiS_Private SiS_Pr)

Definition at line 714 of file init301.c.

unsigned short SiS_ReadDDC1Bit ( struct SiS_Private SiS_Pr)

Definition at line 9310 of file init301.c.

void SiS_SetCH700x ( struct SiS_Private SiS_Pr,
unsigned short  reg,
unsigned char  val 
)

Definition at line 8815 of file init301.c.

void SiS_SetCH701x ( struct SiS_Private SiS_Pr,
unsigned short  reg,
unsigned char  val 
)

Definition at line 8842 of file init301.c.

void SiS_SetCH70xxANDOR ( struct SiS_Private SiS_Pr,
unsigned short  reg,
unsigned char  myor,
unsigned short  myand 
)

Definition at line 8950 of file init301.c.

bool SiS_SetCRT2Group ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo 
)

Definition at line 8520 of file init301.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_SiS30xBLOff ( struct SiS_Private SiS_Pr)

Definition at line 8706 of file init301.c.

void SiS_SiS30xBLOn ( struct SiS_Private SiS_Pr)

Definition at line 8692 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.