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

Go to the source code of this file.

Data Structures

struct  SIS_OH
 
struct  SIS_OHALLOC
 
struct  SIS_HEAP
 
struct  sis_video_info
 
struct  sis_video_info::sisfb_monitor
 

Macros

#define VER_MAJOR   1
 
#define VER_MINOR   8
 
#define VER_LEVEL   9
 
#define DPRINTK(fmt, args...)
 
#define TWDEBUG(x)
 
#define SISFAIL(x)   do { printk(x "\n"); return -EINVAL; } while(0)
 
#define PCI_DEVICE_ID_SI_650_VGA   0x6325
 
#define PCI_DEVICE_ID_SI_650   0x0650
 
#define PCI_DEVICE_ID_SI_651   0x0651
 
#define PCI_DEVICE_ID_SI_740   0x0740
 
#define PCI_DEVICE_ID_SI_330   0x0330
 
#define PCI_DEVICE_ID_SI_660_VGA   0x6330
 
#define PCI_DEVICE_ID_SI_661   0x0661
 
#define PCI_DEVICE_ID_SI_741   0x0741
 
#define PCI_DEVICE_ID_SI_660   0x0660
 
#define PCI_DEVICE_ID_SI_760   0x0760
 
#define PCI_DEVICE_ID_SI_761   0x0761
 
#define PCI_VENDOR_ID_XGI   0x18ca
 
#define PCI_DEVICE_ID_XGI_20   0x0020
 
#define PCI_DEVICE_ID_XGI_40   0x0040
 
#define FB_ACCEL_SIS_GLAMOUR_2   40 /* SiS 315, 65x, 740, 661, 741 */
 
#define FB_ACCEL_SIS_XABRE   41 /* SiS 330 ("Xabre"), 76x */
 
#define FB_ACCEL_XGI_VOLARI_V   47 /* XGI Volari Vx (V3XT, V5, V8) */
 
#define FB_ACCEL_XGI_VOLARI_Z   48 /* XGI Volari Z7 */
 
#define HW_CURSOR_CAP   0x80
 
#define TURBO_QUEUE_CAP   0x40
 
#define AGP_CMD_QUEUE_CAP   0x20
 
#define VM_CMD_QUEUE_CAP   0x10
 
#define MMIO_CMD_QUEUE_CAP   0x08
 
#define TURBO_QUEUE_AREA_SIZE   (512 * 1024) /* 512K */
 
#define HW_CURSOR_AREA_SIZE_300   4096 /* 4K */
 
#define COMMAND_QUEUE_AREA_SIZE   (512 * 1024) /* 512K */
 
#define COMMAND_QUEUE_AREA_SIZE_Z7   (128 * 1024) /* 128k for XGI Z7 */
 
#define HW_CURSOR_AREA_SIZE_315   16384 /* 16K */
 
#define COMMAND_QUEUE_THRESHOLD   0x1F
 
#define SIS_OH_ALLOC_SIZE   4000
 
#define SENTINEL   0x7fffffff
 
#define SEQ_ADR   0x14
 
#define SEQ_DATA   0x15
 
#define DAC_ADR   0x18
 
#define DAC_DATA   0x19
 
#define CRTC_ADR   0x24
 
#define CRTC_DATA   0x25
 
#define DAC2_ADR   (0x16-0x30)
 
#define DAC2_DATA   (0x17-0x30)
 
#define VB_PART1_ADR   (0x04-0x30)
 
#define VB_PART1_DATA   (0x05-0x30)
 
#define VB_PART2_ADR   (0x10-0x30)
 
#define VB_PART2_DATA   (0x11-0x30)
 
#define VB_PART3_ADR   (0x12-0x30)
 
#define VB_PART3_DATA   (0x13-0x30)
 
#define VB_PART4_ADR   (0x14-0x30)
 
#define VB_PART4_DATA   (0x15-0x30)
 
#define SISSR   ivideo->SiS_Pr.SiS_P3c4
 
#define SISCR   ivideo->SiS_Pr.SiS_P3d4
 
#define SISDACA   ivideo->SiS_Pr.SiS_P3c8
 
#define SISDACD   ivideo->SiS_Pr.SiS_P3c9
 
#define SISPART1   ivideo->SiS_Pr.SiS_Part1Port
 
#define SISPART2   ivideo->SiS_Pr.SiS_Part2Port
 
#define SISPART3   ivideo->SiS_Pr.SiS_Part3Port
 
#define SISPART4   ivideo->SiS_Pr.SiS_Part4Port
 
#define SISPART5   ivideo->SiS_Pr.SiS_Part5Port
 
#define SISDAC2A   SISPART5
 
#define SISDAC2D   (SISPART5 + 1)
 
#define SISMISCR   (ivideo->SiS_Pr.RelIO + 0x1c)
 
#define SISMISCW   ivideo->SiS_Pr.SiS_P3c2
 
#define SISINPSTAT   (ivideo->SiS_Pr.RelIO + 0x2a)
 
#define SISPEL   ivideo->SiS_Pr.SiS_P3c6
 
#define SISVGAENABLE   (ivideo->SiS_Pr.RelIO + 0x13)
 
#define SISVID   (ivideo->SiS_Pr.RelIO + 0x02 - 0x30)
 
#define SISCAP   (ivideo->SiS_Pr.RelIO + 0x00 - 0x30)
 
#define IND_SIS_PASSWORD   0x05 /* SRs */
 
#define IND_SIS_COLOR_MODE   0x06
 
#define IND_SIS_RAMDAC_CONTROL   0x07
 
#define IND_SIS_DRAM_SIZE   0x14
 
#define IND_SIS_MODULE_ENABLE   0x1E
 
#define IND_SIS_PCI_ADDRESS_SET   0x20
 
#define IND_SIS_TURBOQUEUE_ADR   0x26
 
#define IND_SIS_TURBOQUEUE_SET   0x27
 
#define IND_SIS_POWER_ON_TRAP   0x38
 
#define IND_SIS_POWER_ON_TRAP2   0x39
 
#define IND_SIS_CMDQUEUE_SET   0x26
 
#define IND_SIS_CMDQUEUE_THRESHOLD   0x27
 
#define IND_SIS_AGP_IO_PAD   0x48
 
#define SIS_CRT2_WENABLE_300   0x24 /* Part1 */
 
#define SIS_CRT2_WENABLE_315   0x2F
 
#define SIS_PASSWORD   0x86 /* SR05 */
 
#define SIS_INTERLACED_MODE   0x20 /* SR06 */
 
#define SIS_8BPP_COLOR_MODE   0x0
 
#define SIS_15BPP_COLOR_MODE   0x1
 
#define SIS_16BPP_COLOR_MODE   0x2
 
#define SIS_32BPP_COLOR_MODE   0x4
 
#define SIS_ENABLE_2D   0x40 /* SR1E */
 
#define SIS_MEM_MAP_IO_ENABLE   0x01 /* SR20 */
 
#define SIS_PCI_ADDR_ENABLE   0x80
 
#define SIS_AGP_CMDQUEUE_ENABLE   0x80 /* 315/330/340 series SR26 */
 
#define SIS_VRAM_CMDQUEUE_ENABLE   0x40
 
#define SIS_MMIO_CMD_ENABLE   0x20
 
#define SIS_CMD_QUEUE_SIZE_512k   0x00
 
#define SIS_CMD_QUEUE_SIZE_1M   0x04
 
#define SIS_CMD_QUEUE_SIZE_2M   0x08
 
#define SIS_CMD_QUEUE_SIZE_4M   0x0C
 
#define SIS_CMD_QUEUE_RESET   0x01
 
#define SIS_CMD_AUTO_CORR   0x02
 
#define SIS_CMD_QUEUE_SIZE_Z7_64k   0x00 /* XGI Z7 */
 
#define SIS_CMD_QUEUE_SIZE_Z7_128k   0x04
 
#define SIS_SIMULTANEOUS_VIEW_ENABLE   0x01 /* CR30 */
 
#define SIS_MODE_SELECT_CRT2   0x02
 
#define SIS_VB_OUTPUT_COMPOSITE   0x04
 
#define SIS_VB_OUTPUT_SVIDEO   0x08
 
#define SIS_VB_OUTPUT_SCART   0x10
 
#define SIS_VB_OUTPUT_LCD   0x20
 
#define SIS_VB_OUTPUT_CRT2   0x40
 
#define SIS_VB_OUTPUT_HIVISION   0x80
 
#define SIS_VB_OUTPUT_DISABLE   0x20 /* CR31 */
 
#define SIS_DRIVER_MODE   0x40
 
#define SIS_VB_COMPOSITE   0x01 /* CR32 */
 
#define SIS_VB_SVIDEO   0x02
 
#define SIS_VB_SCART   0x04
 
#define SIS_VB_LCD   0x08
 
#define SIS_VB_CRT2   0x10
 
#define SIS_CRT1   0x20
 
#define SIS_VB_HIVISION   0x40
 
#define SIS_VB_YPBPR   0x80
 
#define SIS_VB_TV
 
#define SIS_EXTERNAL_CHIP_MASK   0x0E /* CR37 (< SiS 660) */
 
#define SIS_EXTERNAL_CHIP_SIS301   0x01 /* in CR37 << 1 ! */
 
#define SIS_EXTERNAL_CHIP_LVDS   0x02
 
#define SIS_EXTERNAL_CHIP_TRUMPION   0x03
 
#define SIS_EXTERNAL_CHIP_LVDS_CHRONTEL   0x04
 
#define SIS_EXTERNAL_CHIP_CHRONTEL   0x05
 
#define SIS310_EXTERNAL_CHIP_LVDS   0x02
 
#define SIS310_EXTERNAL_CHIP_LVDS_CHRONTEL   0x03
 
#define SIS_AGP_2X   0x20 /* CR48 */
 
#define VB_CONEXANT   0x00000800 /* 661 series only */
 
#define VB_TRUMPION   VB_CONEXANT /* 300 series only */
 
#define VB_302ELV   0x00004000
 
#define VB_301   0x00100000 /* Video bridge type */
 
#define VB_301B   0x00200000
 
#define VB_302B   0x00400000
 
#define VB_30xBDH   0x00800000 /* 30xB DH version (w/o LCD support) */
 
#define VB_LVDS   0x01000000
 
#define VB_CHRONTEL   0x02000000
 
#define VB_301LV   0x04000000
 
#define VB_302LV   0x08000000
 
#define VB_301C   0x10000000
 
#define VB_SISBRIDGE   (VB_301|VB_301B|VB_301C|VB_302B|VB_301LV|VB_302LV|VB_302ELV)
 
#define VB_VIDEOBRIDGE   (VB_SISBRIDGE | VB_LVDS | VB_CHRONTEL | VB_CONEXANT)
 
#define VB2_SISUMC   0x00000001
 
#define VB2_301   0x00000002 /* Video bridge type */
 
#define VB2_301B   0x00000004
 
#define VB2_301C   0x00000008
 
#define VB2_307T   0x00000010
 
#define VB2_302B   0x00000800
 
#define VB2_301LV   0x00001000
 
#define VB2_302LV   0x00002000
 
#define VB2_302ELV   0x00004000
 
#define VB2_307LV   0x00008000
 
#define VB2_30xBDH   0x08000000 /* 30xB DH version (w/o LCD support) */
 
#define VB2_CONEXANT   0x10000000
 
#define VB2_TRUMPION   0x20000000
 
#define VB2_LVDS   0x40000000
 
#define VB2_CHRONTEL   0x80000000
 
#define VB2_SISLVDSBRIDGE   (VB2_301LV | VB2_302LV | VB2_302ELV | VB2_307LV)
 
#define VB2_SISTMDSBRIDGE   (VB2_301 | VB2_301B | VB2_301C | VB2_302B | VB2_307T)
 
#define VB2_SISBRIDGE   (VB2_SISLVDSBRIDGE | VB2_SISTMDSBRIDGE)
 
#define VB2_SISTMDSLCDABRIDGE   (VB2_301C | VB2_307T)
 
#define VB2_SISLCDABRIDGE   (VB2_SISTMDSLCDABRIDGE | VB2_301LV | VB2_302LV | VB2_302ELV | VB2_307LV)
 
#define VB2_SISHIVISIONBRIDGE   (VB2_301 | VB2_301B | VB2_302B)
 
#define VB2_SISYPBPRBRIDGE   (VB2_301C | VB2_307T | VB2_SISLVDSBRIDGE)
 
#define VB2_SISYPBPRARBRIDGE   (VB2_301C | VB2_307T | VB2_307LV)
 
#define VB2_SISTAP4SCALER   (VB2_301C | VB2_307T | VB2_302ELV | VB2_307LV)
 
#define VB2_SISTVBRIDGE   (VB2_SISHIVISIONBRIDGE | VB2_SISYPBPRBRIDGE)
 
#define VB2_SISVGA2BRIDGE   (VB2_301 | VB2_301B | VB2_301C | VB2_302B | VB2_307T)
 
#define VB2_VIDEOBRIDGE   (VB2_SISBRIDGE | VB2_LVDS | VB2_CHRONTEL | VB2_CONEXANT)
 
#define VB2_30xB   (VB2_301B | VB2_301C | VB2_302B | VB2_307T)
 
#define VB2_30xBLV   (VB2_30xB | VB2_SISLVDSBRIDGE)
 
#define VB2_30xC   (VB2_301C | VB2_307T)
 
#define VB2_30xCLV   (VB2_301C | VB2_307T | VB2_302ELV| VB2_307LV)
 
#define VB2_SISEMIBRIDGE   (VB2_302LV | VB2_302ELV | VB2_307LV)
 
#define VB2_LCD162MHZBRIDGE   (VB2_301C | VB2_307T)
 
#define VB2_LCDOVER1280BRIDGE   (VB2_301C | VB2_307T | VB2_302LV | VB2_302ELV | VB2_307LV)
 
#define VB2_LCDOVER1600BRIDGE   (VB2_307T | VB2_307LV)
 
#define VB2_RAMDAC202MHZBRIDGE   (VB2_301C | VB2_307T)
 
#define MMIO_IN8(base, offset)   readb((base+offset))
 
#define MMIO_IN16(base, offset)   readw((base+offset))
 
#define MMIO_IN32(base, offset)   readl((base+offset))
 
#define MMIO_OUT8(base, offset, val)   writeb(((u8)(val)), (base+offset))
 
#define MMIO_OUT16(base, offset, val)   writew(((u16)(val)), (base+offset))
 
#define MMIO_OUT32(base, offset, val)   writel(((u32)(val)), (base+offset))
 
#define Q_BASE_ADDR   0x85C0 /* Base address of software queue */
 
#define Q_WRITE_PTR   0x85C4 /* Current write pointer */
 
#define Q_READ_PTR   0x85C8 /* Current read pointer */
 
#define Q_STATUS   0x85CC /* queue status */
 
#define MMIO_QUEUE_PHYBASE   Q_BASE_ADDR
 
#define MMIO_QUEUE_WRITEPORT   Q_WRITE_PTR
 
#define MMIO_QUEUE_READPORT   Q_READ_PTR
 
#define FB_BLANK_UNBLANK   0
 
#define FB_BLANK_NORMAL   1
 
#define FB_BLANK_VSYNC_SUSPEND   2
 
#define FB_BLANK_HSYNC_SUSPEND   3
 
#define FB_BLANK_POWERDOWN   4
 

Enumerations

enum  _SIS_LCD_TYPE {
  LCD_INVALID = 0, LCD_800x600, LCD_1024x768, LCD_1280x1024,
  LCD_1280x960, LCD_640x480, LCD_1600x1200, LCD_1920x1440,
  LCD_2048x1536, LCD_320x240, LCD_1400x1050, LCD_1152x864,
  LCD_1152x768, LCD_1280x768, LCD_1024x600, LCD_320x240_2,
  LCD_320x240_3, LCD_848x480, LCD_1280x800, LCD_1680x1050,
  LCD_1280x720, LCD_1280x854, LCD_CUSTOM, LCD_UNKNOWN
}
 
enum  _SIS_CMDTYPE { MMIO_CMD = 0, AGP_CMD_QUEUE, VM_CMD_QUEUE }
 

Functions

void SiS_SetReg (SISIOADDRESS, u8, u8)
 
void SiS_SetRegByte (SISIOADDRESS, u8)
 
void SiS_SetRegShort (SISIOADDRESS, u16)
 
void SiS_SetRegLong (SISIOADDRESS, u32)
 
void SiS_SetRegANDOR (SISIOADDRESS, u8, u8, u8)
 
void SiS_SetRegAND (SISIOADDRESS, u8, u8)
 
void SiS_SetRegOR (SISIOADDRESS, u8, u8)
 
u8 SiS_GetReg (SISIOADDRESS, u8)
 
u8 SiS_GetRegByte (SISIOADDRESS)
 
u16 SiS_GetRegShort (SISIOADDRESS)
 
u32 SiS_GetRegLong (SISIOADDRESS)
 

Macro Definition Documentation

#define AGP_CMD_QUEUE_CAP   0x20

Definition at line 118 of file sis.h.

#define COMMAND_QUEUE_AREA_SIZE   (512 * 1024) /* 512K */

Definition at line 127 of file sis.h.

#define COMMAND_QUEUE_AREA_SIZE_Z7   (128 * 1024) /* 128k for XGI Z7 */

Definition at line 128 of file sis.h.

#define COMMAND_QUEUE_THRESHOLD   0x1F

Definition at line 130 of file sis.h.

#define CRTC_ADR   0x24

Definition at line 139 of file sis.h.

#define CRTC_DATA   0x25

Definition at line 140 of file sis.h.

#define DAC2_ADR   (0x16-0x30)

Definition at line 141 of file sis.h.

#define DAC2_DATA   (0x17-0x30)

Definition at line 142 of file sis.h.

#define DAC_ADR   0x18

Definition at line 137 of file sis.h.

#define DAC_DATA   0x19

Definition at line 138 of file sis.h.

#define DPRINTK (   fmt,
  args... 
)

Definition at line 48 of file sis.h.

#define FB_ACCEL_SIS_GLAMOUR_2   40 /* SiS 315, 65x, 740, 661, 741 */

Definition at line 103 of file sis.h.

#define FB_ACCEL_SIS_XABRE   41 /* SiS 330 ("Xabre"), 76x */

Definition at line 106 of file sis.h.

#define FB_ACCEL_XGI_VOLARI_V   47 /* XGI Volari Vx (V3XT, V5, V8) */

Definition at line 109 of file sis.h.

#define FB_ACCEL_XGI_VOLARI_Z   48 /* XGI Volari Z7 */

Definition at line 112 of file sis.h.

#define FB_BLANK_HSYNC_SUSPEND   3

Definition at line 353 of file sis.h.

#define FB_BLANK_NORMAL   1

Definition at line 347 of file sis.h.

#define FB_BLANK_POWERDOWN   4

Definition at line 356 of file sis.h.

#define FB_BLANK_UNBLANK   0

Definition at line 344 of file sis.h.

#define FB_BLANK_VSYNC_SUSPEND   2

Definition at line 350 of file sis.h.

#define HW_CURSOR_AREA_SIZE_300   4096 /* 4K */

Definition at line 124 of file sis.h.

#define HW_CURSOR_AREA_SIZE_315   16384 /* 16K */

Definition at line 129 of file sis.h.

#define HW_CURSOR_CAP   0x80

Definition at line 116 of file sis.h.

#define IND_SIS_AGP_IO_PAD   0x48

Definition at line 184 of file sis.h.

#define IND_SIS_CMDQUEUE_SET   0x26

Definition at line 181 of file sis.h.

#define IND_SIS_CMDQUEUE_THRESHOLD   0x27

Definition at line 182 of file sis.h.

#define IND_SIS_COLOR_MODE   0x06

Definition at line 172 of file sis.h.

#define IND_SIS_DRAM_SIZE   0x14

Definition at line 174 of file sis.h.

#define IND_SIS_MODULE_ENABLE   0x1E

Definition at line 175 of file sis.h.

#define IND_SIS_PASSWORD   0x05 /* SRs */

Definition at line 171 of file sis.h.

#define IND_SIS_PCI_ADDRESS_SET   0x20

Definition at line 176 of file sis.h.

#define IND_SIS_POWER_ON_TRAP   0x38

Definition at line 179 of file sis.h.

#define IND_SIS_POWER_ON_TRAP2   0x39

Definition at line 180 of file sis.h.

#define IND_SIS_RAMDAC_CONTROL   0x07

Definition at line 173 of file sis.h.

#define IND_SIS_TURBOQUEUE_ADR   0x26

Definition at line 177 of file sis.h.

#define IND_SIS_TURBOQUEUE_SET   0x27

Definition at line 178 of file sis.h.

#define MMIO_CMD_QUEUE_CAP   0x08

Definition at line 120 of file sis.h.

#define MMIO_IN16 (   base,
  offset 
)    readw((base+offset))

Definition at line 326 of file sis.h.

#define MMIO_IN32 (   base,
  offset 
)    readl((base+offset))

Definition at line 327 of file sis.h.

#define MMIO_IN8 (   base,
  offset 
)    readb((base+offset))

Definition at line 325 of file sis.h.

#define MMIO_OUT16 (   base,
  offset,
  val 
)    writew(((u16)(val)), (base+offset))

Definition at line 330 of file sis.h.

#define MMIO_OUT32 (   base,
  offset,
  val 
)    writel(((u32)(val)), (base+offset))

Definition at line 331 of file sis.h.

#define MMIO_OUT8 (   base,
  offset,
  val 
)    writeb(((u8)(val)), (base+offset))

Definition at line 329 of file sis.h.

#define MMIO_QUEUE_PHYBASE   Q_BASE_ADDR

Definition at line 339 of file sis.h.

#define MMIO_QUEUE_READPORT   Q_READ_PTR

Definition at line 341 of file sis.h.

#define MMIO_QUEUE_WRITEPORT   Q_WRITE_PTR

Definition at line 340 of file sis.h.

#define PCI_DEVICE_ID_SI_330   0x0330

Definition at line 68 of file sis.h.

#define PCI_DEVICE_ID_SI_650   0x0650

Definition at line 59 of file sis.h.

#define PCI_DEVICE_ID_SI_650_VGA   0x6325

Definition at line 56 of file sis.h.

#define PCI_DEVICE_ID_SI_651   0x0651

Definition at line 62 of file sis.h.

#define PCI_DEVICE_ID_SI_660   0x0660

Definition at line 80 of file sis.h.

#define PCI_DEVICE_ID_SI_660_VGA   0x6330

Definition at line 71 of file sis.h.

#define PCI_DEVICE_ID_SI_661   0x0661

Definition at line 74 of file sis.h.

#define PCI_DEVICE_ID_SI_740   0x0740

Definition at line 65 of file sis.h.

#define PCI_DEVICE_ID_SI_741   0x0741

Definition at line 77 of file sis.h.

#define PCI_DEVICE_ID_SI_760   0x0760

Definition at line 83 of file sis.h.

#define PCI_DEVICE_ID_SI_761   0x0761

Definition at line 86 of file sis.h.

#define PCI_DEVICE_ID_XGI_20   0x0020

Definition at line 94 of file sis.h.

#define PCI_DEVICE_ID_XGI_40   0x0040

Definition at line 98 of file sis.h.

#define PCI_VENDOR_ID_XGI   0x18ca

Definition at line 90 of file sis.h.

#define Q_BASE_ADDR   0x85C0 /* Base address of software queue */

Definition at line 334 of file sis.h.

#define Q_READ_PTR   0x85C8 /* Current read pointer */

Definition at line 336 of file sis.h.

#define Q_STATUS   0x85CC /* queue status */

Definition at line 337 of file sis.h.

#define Q_WRITE_PTR   0x85C4 /* Current write pointer */

Definition at line 335 of file sis.h.

#define SENTINEL   0x7fffffff

Definition at line 133 of file sis.h.

#define SEQ_ADR   0x14

Definition at line 135 of file sis.h.

#define SEQ_DATA   0x15

Definition at line 136 of file sis.h.

#define SIS310_EXTERNAL_CHIP_LVDS   0x02

Definition at line 244 of file sis.h.

#define SIS310_EXTERNAL_CHIP_LVDS_CHRONTEL   0x03

Definition at line 245 of file sis.h.

#define SIS_15BPP_COLOR_MODE   0x1

Definition at line 193 of file sis.h.

#define SIS_16BPP_COLOR_MODE   0x2

Definition at line 194 of file sis.h.

#define SIS_32BPP_COLOR_MODE   0x4

Definition at line 195 of file sis.h.

#define SIS_8BPP_COLOR_MODE   0x0

Definition at line 192 of file sis.h.

#define SIS_AGP_2X   0x20 /* CR48 */

Definition at line 247 of file sis.h.

#define SIS_AGP_CMDQUEUE_ENABLE   0x80 /* 315/330/340 series SR26 */

Definition at line 202 of file sis.h.

#define SIS_CMD_AUTO_CORR   0x02

Definition at line 210 of file sis.h.

#define SIS_CMD_QUEUE_RESET   0x01

Definition at line 209 of file sis.h.

#define SIS_CMD_QUEUE_SIZE_1M   0x04

Definition at line 206 of file sis.h.

#define SIS_CMD_QUEUE_SIZE_2M   0x08

Definition at line 207 of file sis.h.

#define SIS_CMD_QUEUE_SIZE_4M   0x0C

Definition at line 208 of file sis.h.

#define SIS_CMD_QUEUE_SIZE_512k   0x00

Definition at line 205 of file sis.h.

#define SIS_CMD_QUEUE_SIZE_Z7_128k   0x04

Definition at line 213 of file sis.h.

#define SIS_CMD_QUEUE_SIZE_Z7_64k   0x00 /* XGI Z7 */

Definition at line 212 of file sis.h.

#define SIS_CRT1   0x20

Definition at line 232 of file sis.h.

#define SIS_CRT2_WENABLE_300   0x24 /* Part1 */

Definition at line 186 of file sis.h.

#define SIS_CRT2_WENABLE_315   0x2F

Definition at line 187 of file sis.h.

#define SIS_DRIVER_MODE   0x40

Definition at line 225 of file sis.h.

#define SIS_ENABLE_2D   0x40 /* SR1E */

Definition at line 197 of file sis.h.

#define SIS_EXTERNAL_CHIP_CHRONTEL   0x05

Definition at line 243 of file sis.h.

#define SIS_EXTERNAL_CHIP_LVDS   0x02

Definition at line 240 of file sis.h.

#define SIS_EXTERNAL_CHIP_LVDS_CHRONTEL   0x04

Definition at line 242 of file sis.h.

#define SIS_EXTERNAL_CHIP_MASK   0x0E /* CR37 (< SiS 660) */

Definition at line 238 of file sis.h.

#define SIS_EXTERNAL_CHIP_SIS301   0x01 /* in CR37 << 1 ! */

Definition at line 239 of file sis.h.

#define SIS_EXTERNAL_CHIP_TRUMPION   0x03

Definition at line 241 of file sis.h.

#define SIS_INTERLACED_MODE   0x20 /* SR06 */

Definition at line 191 of file sis.h.

#define SIS_MEM_MAP_IO_ENABLE   0x01 /* SR20 */

Definition at line 199 of file sis.h.

#define SIS_MMIO_CMD_ENABLE   0x20

Definition at line 204 of file sis.h.

#define SIS_MODE_SELECT_CRT2   0x02

Definition at line 216 of file sis.h.

#define SIS_OH_ALLOC_SIZE   4000

Definition at line 132 of file sis.h.

#define SIS_PASSWORD   0x86 /* SR05 */

Definition at line 189 of file sis.h.

#define SIS_PCI_ADDR_ENABLE   0x80

Definition at line 200 of file sis.h.

#define SIS_SIMULTANEOUS_VIEW_ENABLE   0x01 /* CR30 */

Definition at line 215 of file sis.h.

#define SIS_VB_COMPOSITE   0x01 /* CR32 */

Definition at line 227 of file sis.h.

#define SIS_VB_CRT2   0x10

Definition at line 231 of file sis.h.

#define SIS_VB_HIVISION   0x40

Definition at line 233 of file sis.h.

#define SIS_VB_LCD   0x08

Definition at line 230 of file sis.h.

#define SIS_VB_OUTPUT_COMPOSITE   0x04

Definition at line 217 of file sis.h.

#define SIS_VB_OUTPUT_CRT2   0x40

Definition at line 221 of file sis.h.

#define SIS_VB_OUTPUT_DISABLE   0x20 /* CR31 */

Definition at line 224 of file sis.h.

#define SIS_VB_OUTPUT_HIVISION   0x80

Definition at line 222 of file sis.h.

#define SIS_VB_OUTPUT_LCD   0x20

Definition at line 220 of file sis.h.

#define SIS_VB_OUTPUT_SCART   0x10

Definition at line 219 of file sis.h.

#define SIS_VB_OUTPUT_SVIDEO   0x08

Definition at line 218 of file sis.h.

#define SIS_VB_SCART   0x04

Definition at line 229 of file sis.h.

#define SIS_VB_SVIDEO   0x02

Definition at line 228 of file sis.h.

#define SIS_VB_TV
Value:

Definition at line 235 of file sis.h.

#define SIS_VB_YPBPR   0x80

Definition at line 234 of file sis.h.

#define SIS_VRAM_CMDQUEUE_ENABLE   0x40

Definition at line 203 of file sis.h.

#define SISCAP   (ivideo->SiS_Pr.RelIO + 0x00 - 0x30)

Definition at line 169 of file sis.h.

#define SISCR   ivideo->SiS_Pr.SiS_P3d4

Definition at line 153 of file sis.h.

#define SISDAC2A   SISPART5

Definition at line 161 of file sis.h.

#define SISDAC2D   (SISPART5 + 1)

Definition at line 162 of file sis.h.

#define SISDACA   ivideo->SiS_Pr.SiS_P3c8

Definition at line 154 of file sis.h.

#define SISDACD   ivideo->SiS_Pr.SiS_P3c9

Definition at line 155 of file sis.h.

#define SISFAIL (   x)    do { printk(x "\n"); return -EINVAL; } while(0)

Definition at line 52 of file sis.h.

#define SISINPSTAT   (ivideo->SiS_Pr.RelIO + 0x2a)

Definition at line 165 of file sis.h.

#define SISMISCR   (ivideo->SiS_Pr.RelIO + 0x1c)

Definition at line 163 of file sis.h.

#define SISMISCW   ivideo->SiS_Pr.SiS_P3c2

Definition at line 164 of file sis.h.

#define SISPART1   ivideo->SiS_Pr.SiS_Part1Port

Definition at line 156 of file sis.h.

#define SISPART2   ivideo->SiS_Pr.SiS_Part2Port

Definition at line 157 of file sis.h.

#define SISPART3   ivideo->SiS_Pr.SiS_Part3Port

Definition at line 158 of file sis.h.

#define SISPART4   ivideo->SiS_Pr.SiS_Part4Port

Definition at line 159 of file sis.h.

#define SISPART5   ivideo->SiS_Pr.SiS_Part5Port

Definition at line 160 of file sis.h.

#define SISPEL   ivideo->SiS_Pr.SiS_P3c6

Definition at line 166 of file sis.h.

#define SISSR   ivideo->SiS_Pr.SiS_P3c4

Definition at line 152 of file sis.h.

#define SISVGAENABLE   (ivideo->SiS_Pr.RelIO + 0x13)

Definition at line 167 of file sis.h.

#define SISVID   (ivideo->SiS_Pr.RelIO + 0x02 - 0x30)

Definition at line 168 of file sis.h.

#define TURBO_QUEUE_AREA_SIZE   (512 * 1024) /* 512K */

Definition at line 123 of file sis.h.

#define TURBO_QUEUE_CAP   0x40

Definition at line 117 of file sis.h.

#define TWDEBUG (   x)

Definition at line 49 of file sis.h.

#define VB2_301   0x00000002 /* Video bridge type */

Definition at line 268 of file sis.h.

#define VB2_301B   0x00000004

Definition at line 269 of file sis.h.

#define VB2_301C   0x00000008

Definition at line 270 of file sis.h.

#define VB2_301LV   0x00001000

Definition at line 273 of file sis.h.

#define VB2_302B   0x00000800

Definition at line 272 of file sis.h.

#define VB2_302ELV   0x00004000

Definition at line 275 of file sis.h.

#define VB2_302LV   0x00002000

Definition at line 274 of file sis.h.

#define VB2_307LV   0x00008000

Definition at line 276 of file sis.h.

#define VB2_307T   0x00000010

Definition at line 271 of file sis.h.

#define VB2_30xB   (VB2_301B | VB2_301C | VB2_302B | VB2_307T)

Definition at line 300 of file sis.h.

#define VB2_30xBDH   0x08000000 /* 30xB DH version (w/o LCD support) */

Definition at line 277 of file sis.h.

#define VB2_30xBLV   (VB2_30xB | VB2_SISLVDSBRIDGE)

Definition at line 301 of file sis.h.

#define VB2_30xC   (VB2_301C | VB2_307T)

Definition at line 302 of file sis.h.

#define VB2_30xCLV   (VB2_301C | VB2_307T | VB2_302ELV| VB2_307LV)

Definition at line 303 of file sis.h.

#define VB2_CHRONTEL   0x80000000

Definition at line 281 of file sis.h.

#define VB2_CONEXANT   0x10000000

Definition at line 278 of file sis.h.

#define VB2_LCD162MHZBRIDGE   (VB2_301C | VB2_307T)

Definition at line 305 of file sis.h.

#define VB2_LCDOVER1280BRIDGE   (VB2_301C | VB2_307T | VB2_302LV | VB2_302ELV | VB2_307LV)

Definition at line 306 of file sis.h.

#define VB2_LCDOVER1600BRIDGE   (VB2_307T | VB2_307LV)

Definition at line 307 of file sis.h.

#define VB2_LVDS   0x40000000

Definition at line 280 of file sis.h.

#define VB2_RAMDAC202MHZBRIDGE   (VB2_301C | VB2_307T)

Definition at line 308 of file sis.h.

#define VB2_SISBRIDGE   (VB2_SISLVDSBRIDGE | VB2_SISTMDSBRIDGE)

Definition at line 285 of file sis.h.

#define VB2_SISEMIBRIDGE   (VB2_302LV | VB2_302ELV | VB2_307LV)

Definition at line 304 of file sis.h.

#define VB2_SISHIVISIONBRIDGE   (VB2_301 | VB2_301B | VB2_302B)

Definition at line 290 of file sis.h.

#define VB2_SISLCDABRIDGE   (VB2_SISTMDSLCDABRIDGE | VB2_301LV | VB2_302LV | VB2_302ELV | VB2_307LV)

Definition at line 288 of file sis.h.

#define VB2_SISLVDSBRIDGE   (VB2_301LV | VB2_302LV | VB2_302ELV | VB2_307LV)

Definition at line 283 of file sis.h.

#define VB2_SISTAP4SCALER   (VB2_301C | VB2_307T | VB2_302ELV | VB2_307LV)

Definition at line 293 of file sis.h.

#define VB2_SISTMDSBRIDGE   (VB2_301 | VB2_301B | VB2_301C | VB2_302B | VB2_307T)

Definition at line 284 of file sis.h.

#define VB2_SISTMDSLCDABRIDGE   (VB2_301C | VB2_307T)

Definition at line 287 of file sis.h.

#define VB2_SISTVBRIDGE   (VB2_SISHIVISIONBRIDGE | VB2_SISYPBPRBRIDGE)

Definition at line 294 of file sis.h.

#define VB2_SISUMC   0x00000001

Definition at line 267 of file sis.h.

#define VB2_SISVGA2BRIDGE   (VB2_301 | VB2_301B | VB2_301C | VB2_302B | VB2_307T)

Definition at line 296 of file sis.h.

#define VB2_SISYPBPRARBRIDGE   (VB2_301C | VB2_307T | VB2_307LV)

Definition at line 292 of file sis.h.

#define VB2_SISYPBPRBRIDGE   (VB2_301C | VB2_307T | VB2_SISLVDSBRIDGE)

Definition at line 291 of file sis.h.

#define VB2_TRUMPION   0x20000000

Definition at line 279 of file sis.h.

#define VB2_VIDEOBRIDGE   (VB2_SISBRIDGE | VB2_LVDS | VB2_CHRONTEL | VB2_CONEXANT)

Definition at line 298 of file sis.h.

#define VB_301   0x00100000 /* Video bridge type */

Definition at line 253 of file sis.h.

#define VB_301B   0x00200000

Definition at line 254 of file sis.h.

#define VB_301C   0x10000000

Definition at line 261 of file sis.h.

#define VB_301LV   0x04000000

Definition at line 259 of file sis.h.

#define VB_302B   0x00400000

Definition at line 255 of file sis.h.

#define VB_302ELV   0x00004000

Definition at line 252 of file sis.h.

#define VB_302LV   0x08000000

Definition at line 260 of file sis.h.

#define VB_30xBDH   0x00800000 /* 30xB DH version (w/o LCD support) */

Definition at line 256 of file sis.h.

#define VB_CHRONTEL   0x02000000

Definition at line 258 of file sis.h.

#define VB_CONEXANT   0x00000800 /* 661 series only */

Definition at line 250 of file sis.h.

#define VB_LVDS   0x01000000

Definition at line 257 of file sis.h.

#define VB_PART1_ADR   (0x04-0x30)

Definition at line 143 of file sis.h.

#define VB_PART1_DATA   (0x05-0x30)

Definition at line 144 of file sis.h.

#define VB_PART2_ADR   (0x10-0x30)

Definition at line 145 of file sis.h.

#define VB_PART2_DATA   (0x11-0x30)

Definition at line 146 of file sis.h.

#define VB_PART3_ADR   (0x12-0x30)

Definition at line 147 of file sis.h.

#define VB_PART3_DATA   (0x13-0x30)

Definition at line 148 of file sis.h.

#define VB_PART4_ADR   (0x14-0x30)

Definition at line 149 of file sis.h.

#define VB_PART4_DATA   (0x15-0x30)

Definition at line 150 of file sis.h.

#define VB_SISBRIDGE   (VB_301|VB_301B|VB_301C|VB_302B|VB_301LV|VB_302LV|VB_302ELV)

Definition at line 263 of file sis.h.

#define VB_TRUMPION   VB_CONEXANT /* 300 series only */

Definition at line 251 of file sis.h.

#define VB_VIDEOBRIDGE   (VB_SISBRIDGE | VB_LVDS | VB_CHRONTEL | VB_CONEXANT)

Definition at line 264 of file sis.h.

#define VER_LEVEL   9

Definition at line 34 of file sis.h.

#define VER_MAJOR   1

Definition at line 32 of file sis.h.

#define VER_MINOR   8

Definition at line 33 of file sis.h.

#define VM_CMD_QUEUE_CAP   0x10

Definition at line 119 of file sis.h.

Enumeration Type Documentation

Enumerator:
MMIO_CMD 
AGP_CMD_QUEUE 
VM_CMD_QUEUE 

Definition at line 386 of file sis.h.

Enumerator:
LCD_INVALID 
LCD_800x600 
LCD_1024x768 
LCD_1280x1024 
LCD_1280x960 
LCD_640x480 
LCD_1600x1200 
LCD_1920x1440 
LCD_2048x1536 
LCD_320x240 
LCD_1400x1050 
LCD_1152x864 
LCD_1152x768 
LCD_1280x768 
LCD_1024x600 
LCD_320x240_2 
LCD_320x240_3 
LCD_848x480 
LCD_1280x800 
LCD_1680x1050 
LCD_1280x720 
LCD_1280x854 
LCD_CUSTOM 
LCD_UNKNOWN 

Definition at line 359 of file sis.h.

Function Documentation

u8 SiS_GetReg ( SISIOADDRESS  ,
u8   
)

Definition at line 904 of file init.c.

u8 SiS_GetRegByte ( SISIOADDRESS  )

Definition at line 911 of file init.c.

u32 SiS_GetRegLong ( SISIOADDRESS  )

Definition at line 923 of file init.c.

u16 SiS_GetRegShort ( SISIOADDRESS  )

Definition at line 917 of file init.c.

void SiS_SetReg ( SISIOADDRESS  ,
u8  ,
u8   
)

Definition at line 879 of file init.c.

void SiS_SetRegAND ( SISIOADDRESS  ,
u8  ,
u8   
)

Definition at line 939 of file init.c.

void SiS_SetRegANDOR ( SISIOADDRESS  ,
u8  ,
u8  ,
u8   
)

Definition at line 929 of file init.c.

void SiS_SetRegByte ( SISIOADDRESS  ,
u8   
)

Definition at line 886 of file init.c.

void SiS_SetRegLong ( SISIOADDRESS  ,
u32   
)

Definition at line 898 of file init.c.

void SiS_SetRegOR ( SISIOADDRESS  ,
u8  ,
u8   
)

Definition at line 949 of file init.c.

void SiS_SetRegShort ( SISIOADDRESS  ,
u16   
)

Definition at line 892 of file init.c.