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

Go to the source code of this file.

Macros

#define BITMASK(h, l)   (((unsigned)(1U << ((h)-(l)+1))-1)<<(l))
 
#define GENMASK(mask)   BITMASK(1?mask,0?mask)
 
#define GETBITS(var, mask)   (((var) & GENMASK(mask)) >> (0?mask))
 
#define GETBITSTR(val, from, to)   ((GETBITS(val,from)) << (0?to))
 

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 LCDwidth, 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_SetReg (SISIOADDRESS port, u8 index, u8 data)
 
void SiS_SetRegByte (SISIOADDRESS port, u8 data)
 
void SiS_SetRegShort (SISIOADDRESS port, u16 data)
 
void SiS_SetRegLong (SISIOADDRESS port, u32 data)
 
u8 SiS_GetReg (SISIOADDRESS port, u8 index)
 
u8 SiS_GetRegByte (SISIOADDRESS port)
 
u16 SiS_GetRegShort (SISIOADDRESS port)
 
u32 SiS_GetRegLong (SISIOADDRESS port)
 
void SiS_SetRegANDOR (SISIOADDRESS Port, u8 Index, u8 DataAND, u8 DataOR)
 
void SiS_SetRegAND (SISIOADDRESS Port, u8 Index, u8 DataAND)
 
void SiS_SetRegOR (SISIOADDRESS Port, u8 Index, u8 DataOR)
 
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)
 

Macro Definition Documentation

#define BITMASK (   h,
  l 
)    (((unsigned)(1U << ((h)-(l)+1))-1)<<(l))

Definition at line 3323 of file init.c.

#define GENMASK (   mask)    BITMASK(1?mask,0?mask)

Definition at line 3324 of file init.c.

#define GETBITS (   var,
  mask 
)    (((var) & GENMASK(mask)) >> (0?mask))

Definition at line 3325 of file init.c.

#define GETBITSTR (   val,
  from,
  to 
)    ((GETBITS(val,from)) << (0?to))

Definition at line 3326 of file init.c.

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_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_GetColorDepth ( struct SiS_Private SiS_Pr,
unsigned short  ModeNo,
unsigned short  ModeIdIndex 
)

Definition at line 1777 of file init.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  LCDwidth,
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_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.

u8 SiS_GetReg ( SISIOADDRESS  port,
u8  index 
)

Definition at line 904 of file init.c.

u8 SiS_GetRegByte ( SISIOADDRESS  port)

Definition at line 911 of file init.c.

u32 SiS_GetRegLong ( SISIOADDRESS  port)

Definition at line 923 of file init.c.

u16 SiS_GetRegShort ( SISIOADDRESS  port)

Definition at line 917 of file init.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.

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_SetReg ( SISIOADDRESS  port,
u8  index,
u8  data 
)

Definition at line 879 of file init.c.

void SiS_SetRegAND ( SISIOADDRESS  Port,
u8  Index,
u8  DataAND 
)

Definition at line 939 of file init.c.

void SiS_SetRegANDOR ( SISIOADDRESS  Port,
u8  Index,
u8  DataAND,
u8  DataOR 
)

Definition at line 929 of file init.c.

void SiS_SetRegByte ( SISIOADDRESS  port,
u8  data 
)

Definition at line 886 of file init.c.

void SiS_SetRegLong ( SISIOADDRESS  port,
u32  data 
)

Definition at line 898 of file init.c.

void SiS_SetRegOR ( SISIOADDRESS  Port,
u8  Index,
u8  DataOR 
)

Definition at line 949 of file init.c.

void SiS_SetRegShort ( SISIOADDRESS  port,
u16  data 
)

Definition at line 892 of file init.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.