Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
sstfb.h File Reference

Go to the source code of this file.

Data Structures

struct  pll_timing
 
struct  dac_switch
 
struct  sst_spec
 
struct  sstfb_par
 

Macros

#define dprintk(X...)
 
#define SST_DEBUG_REG   0
 
#define SST_DEBUG_FUNC   0
 
#define SST_DEBUG_VAR   0
 
#define r_dprintk(X...)
 
#define r_ddprintk(X...)
 
#define f_dprintk(X...)
 
#define f_ddprintk(X...)
 
#define f_dddprintk(X...)
 
#define v_dprintk(X...)
 
#define print_var(X, Y...)
 
#define POW2(x)   (1ul<<(x))
 
#define PCI_INIT_ENABLE   0x40
 
#define PCI_EN_INIT_WR   BIT(0)
 
#define PCI_EN_FIFO_WR   BIT(1)
 
#define PCI_REMAP_DAC   BIT(2)
 
#define PCI_VCLK_ENABLE   0xc0 /* enable video */
 
#define PCI_VCLK_DISABLE   0xe0
 
#define STATUS   0x0000
 
#define STATUS_FBI_BUSY   BIT(7)
 
#define FBZMODE   0x0110
 
#define EN_CLIPPING   BIT(0) /* enable clipping */
 
#define EN_RGB_WRITE   BIT(9) /* enable writes to rgb area */
 
#define EN_ALPHA_WRITE   BIT(10)
 
#define ENGINE_INVERT_Y   BIT(17) /* invert Y origin (pipe) */
 
#define LFBMODE   0x0114
 
#define LFB_565   0 /* bits 3:0 .16 bits RGB */
 
#define LFB_888   4 /* 24 bits RGB */
 
#define LFB_8888   5 /* 32 bits ARGB */
 
#define WR_BUFF_FRONT   0 /* write buf select (front) */
 
#define WR_BUFF_BACK   (1 << 4) /* back */
 
#define RD_BUFF_FRONT   0 /* read buff select (front) */
 
#define RD_BUFF_BACK   (1 << 6) /* back */
 
#define EN_PXL_PIPELINE   BIT(8) /* pixel pipeline (clip..)*/
 
#define LFB_WORD_SWIZZLE_WR   BIT(11) /* enable write-wordswap (big-endian) */
 
#define LFB_BYTE_SWIZZLE_WR   BIT(12) /* enable write-byteswap (big-endian) */
 
#define LFB_INVERT_Y   BIT(13) /* invert Y origin (LFB) */
 
#define LFB_WORD_SWIZZLE_RD   BIT(15) /* enable read-wordswap (big-endian) */
 
#define LFB_BYTE_SWIZZLE_RD   BIT(16) /* enable read-byteswap (big-endian) */
 
#define CLIP_LEFT_RIGHT   0x0118
 
#define CLIP_LOWY_HIGHY   0x011c
 
#define NOPCMD   0x0120
 
#define FASTFILLCMD   0x0124
 
#define SWAPBUFFCMD   0x0128
 
#define FBIINIT4   0x0200 /* misc controls */
 
#define FAST_PCI_READS   0 /* 1 waitstate */
 
#define SLOW_PCI_READS   BIT(0) /* 2 ws */
 
#define LFB_READ_AHEAD   BIT(1)
 
#define BACKPORCH   0x0208
 
#define VIDEODIMENSIONS   0x020c
 
#define FBIINIT0   0x0210 /* misc+fifo controls */
 
#define DIS_VGA_PASSTHROUGH   BIT(0)
 
#define FBI_RESET   BIT(1)
 
#define FIFO_RESET   BIT(2)
 
#define FBIINIT1   0x0214 /* PCI + video controls */
 
#define VIDEO_MASK   0x8080010f /* masks video related bits V1+V2*/
 
#define FAST_PCI_WRITES   0 /* 0 ws */
 
#define SLOW_PCI_WRITES   BIT(1) /* 1 ws */
 
#define EN_LFB_READ   BIT(3)
 
#define TILES_IN_X_SHIFT   4
 
#define VIDEO_RESET   BIT(8)
 
#define EN_BLANKING   BIT(12)
 
#define EN_DATA_OE   BIT(13)
 
#define EN_BLANK_OE   BIT(14)
 
#define EN_HVSYNC_OE   BIT(15)
 
#define EN_DCLK_OE   BIT(16)
 
#define SEL_INPUT_VCLK_2X   0 /* bit 17 */
 
#define SEL_INPUT_VCLK_SLAVE   BIT(17)
 
#define SEL_SOURCE_VCLK_SLAVE   0 /* bits 21:20 */
 
#define SEL_SOURCE_VCLK_2X_DIV2   (0x01 << 20)
 
#define SEL_SOURCE_VCLK_2X_SEL   (0x02 << 20)
 
#define EN_24BPP   BIT(22)
 
#define TILES_IN_X_MSB_SHIFT   24 /* v2 */
 
#define VCLK_2X_SEL_DEL_SHIFT   27 /* vclk out delay 0,4,6,8ns */
 
#define VCLK_DEL_SHIFT   29 /* vclk in delay */
 
#define FBIINIT2   0x0218 /* Dram controls */
 
#define EN_FAST_RAS_READ   BIT(5)
 
#define EN_DRAM_OE   BIT(6)
 
#define EN_FAST_RD_AHEAD_WR   BIT(7)
 
#define VIDEO_OFFSET_SHIFT   11 /* unit: #rows tile 64x16/2 */
 
#define SWAP_DACVSYNC   0
 
#define SWAP_DACDATA0   (1 << 9)
 
#define SWAP_FIFO_STALL   (2 << 9)
 
#define EN_RD_AHEAD_FIFO   BIT(21)
 
#define EN_DRAM_REFRESH   BIT(22)
 
#define DRAM_REFRESH_16   (0x30 << 23) /* dram 16 ms */
 
#define DAC_READ   FBIINIT2 /* in remap mode */
 
#define FBIINIT3   0x021c /* fbi controls */
 
#define DISABLE_TEXTURE   BIT(6)
 
#define Y_SWAP_ORIGIN_SHIFT   22 /* Y swap subtraction value */
 
#define HSYNC   0x0220
 
#define VSYNC   0x0224
 
#define DAC_DATA   0x022c
 
#define DAC_READ_CMD   BIT(11) /* set read dacreg mode */
 
#define FBIINIT5   0x0244 /* v2 specific */
 
#define FBIINIT5_MASK   0xfa40ffff /* mask video bits*/
 
#define HDOUBLESCAN   BIT(20)
 
#define VDOUBLESCAN   BIT(21)
 
#define HSYNC_HIGH   BIT(23)
 
#define VSYNC_HIGH   BIT(24)
 
#define INTERLACE   BIT(26)
 
#define FBIINIT6   0x0248 /* v2 specific */
 
#define TILES_IN_X_LSB_SHIFT   30 /* v2 */
 
#define FBIINIT7   0x024c /* v2 specific */
 
#define BLTSRCBASEADDR   0x02c0 /* BitBLT Source base address */
 
#define BLTDSTBASEADDR   0x02c4 /* BitBLT Destination base address */
 
#define BLTXYSTRIDES   0x02c8 /* BitBLT Source and Destination strides */
 
#define BLTSRCCHROMARANGE   0x02cc /* BitBLT Source Chroma key range */
 
#define BLTDSTCHROMARANGE   0x02d0 /* BitBLT Destination Chroma key range */
 
#define BLTCLIPX   0x02d4 /* BitBLT Min/Max X clip values */
 
#define BLTCLIPY   0x02d8 /* BitBLT Min/Max Y clip values */
 
#define BLTSRCXY   0x02e0 /* BitBLT Source starting XY coordinates */
 
#define BLTDSTXY   0x02e4 /* BitBLT Destination starting XY coordinates */
 
#define BLTSIZE   0x02e8 /* BitBLT width and height */
 
#define BLTROP   0x02ec /* BitBLT Raster operations */
 
#define BLTROP_COPY   0x0cccc
 
#define BLTROP_INVERT   0x05555
 
#define BLTROP_XOR   0x06666
 
#define BLTCOLOR   0x02f0 /* BitBLT and foreground background colors */
 
#define BLTCOMMAND   0x02f8 /* BitBLT command mode (v2 specific) */
 
#define BLT_SCR2SCR_BITBLT   0 /* Screen-to-Screen BitBLT */
 
#define BLT_CPU2SCR_BITBLT   1 /* CPU-to-screen BitBLT */
 
#define BLT_RECFILL_BITBLT   2 /* BitBLT Rectangle Fill */
 
#define BLT_16BPP_FMT   2 /* 16 BPP (5-6-5 RGB) */
 
#define BLTDATA   0x02fc /* BitBLT data for CPU-to-Screen BitBLTs */
 
#define LAUNCH_BITBLT   BIT(31) /* Launch BitBLT in BltCommand, bltDstXY or bltSize */
 
#define DACREG_WMA   0x0 /* pixel write mode address */
 
#define DACREG_LUT   0x01 /* color value */
 
#define DACREG_RMR   0x02 /* pixel mask */
 
#define DACREG_RMA   0x03 /* pixel read mode address */
 
#define DACREG_ADDR_I   DACREG_WMA
 
#define DACREG_DATA_I   DACREG_RMR
 
#define DACREG_RMR_I   0x00
 
#define DACREG_CR0_I   0x01
 
#define DACREG_CR0_EN_INDEXED   BIT(0) /* enable indexec mode */
 
#define DACREG_CR0_8BIT   BIT(1) /* set dac to 8 bits/read */
 
#define DACREG_CR0_PWDOWN   BIT(3) /* powerdown dac */
 
#define DACREG_CR0_16BPP   0x30 /* mode 3 */
 
#define DACREG_CR0_24BPP   0x50 /* mode 5 */
 
#define DACREG_CR1_I   0x05
 
#define DACREG_CC_I   0x06
 
#define DACREG_CC_CLKA   BIT(7) /* clk A controlled by regs */
 
#define DACREG_CC_CLKA_C   (2<<4) /* clk A uses reg C */
 
#define DACREG_CC_CLKB   BIT(3) /* clk B controlled by regs */
 
#define DACREG_CC_CLKB_D   3 /* clkB uses reg D */
 
#define DACREG_AC0_I   0x48 /* clock A reg C */
 
#define DACREG_AC1_I   0x49
 
#define DACREG_BD0_I   0x6c /* clock B reg D */
 
#define DACREG_BD1_I   0x6d
 
#define DACREG_MIR_TI   0x97
 
#define DACREG_DIR_TI   0x09
 
#define DACREG_MIR_ATT   0x84
 
#define DACREG_DIR_ATT   0x09
 
#define DACREG_ICS_PLLWMA   0x04 /* PLL write mode address */
 
#define DACREG_ICS_PLLDATA   0x05 /* PLL data /parameter */
 
#define DACREG_ICS_CMD   0x06 /* command */
 
#define DACREG_ICS_CMD_16BPP   0x50 /* ics color mode 6 (16bpp bypass)*/
 
#define DACREG_ICS_CMD_24BPP   0x70 /* ics color mode 7 (24bpp bypass)*/
 
#define DACREG_ICS_CMD_PWDOWN   BIT(0) /* powerdown dac */
 
#define DACREG_ICS_PLLRMA   0x07 /* PLL read mode address */
 
#define DACREG_ICS_PLL_CLK0_1_INI   0x55 /* initial pll M value for freq f1 */
 
#define DACREG_ICS_PLL_CLK0_7_INI   0x71 /* f7 */
 
#define DACREG_ICS_PLL_CLK1_B_INI   0x79 /* fb */
 
#define DACREG_ICS_PLL_CTRL   0x0e
 
#define DACREG_ICS_CLK0   BIT(5)
 
#define DACREG_ICS_CLK0_0   0
 
#define DACREG_ICS_CLK1_A   0 /* bit4 */
 
#define FBIINIT0_DEFAULT   DIS_VGA_PASSTHROUGH
 
#define FBIINIT1_DEFAULT
 
#define FBIINIT2_DEFAULT
 
#define FBIINIT3_DEFAULT   ( DISABLE_TEXTURE )
 
#define FBIINIT4_DEFAULT
 
#define FBIINIT6_DEFAULT   (0x0)
 
#define SSTFB_SET_VGAPASS   _IOW('F', 0xdd, __u32)
 
#define SSTFB_GET_VGAPASS   _IOR('F', 0xdd, __u32)
 
#define DAC_FREF   14318 /* DAC reference freq (Khz) */
 
#define VCO_MAX   260000
 

Enumerations

enum  { VID_CLOCK =0, GFX_CLOCK =1 }
 

Macro Definition Documentation

#define BACKPORCH   0x0208

Definition at line 118 of file sstfb.h.

#define BLT_16BPP_FMT   2 /* 16 BPP (5-6-5 RGB) */

Definition at line 194 of file sstfb.h.

#define BLT_CPU2SCR_BITBLT   1 /* CPU-to-screen BitBLT */

Definition at line 192 of file sstfb.h.

#define BLT_RECFILL_BITBLT   2 /* BitBLT Rectangle Fill */

Definition at line 193 of file sstfb.h.

#define BLT_SCR2SCR_BITBLT   0 /* Screen-to-Screen BitBLT */

Definition at line 191 of file sstfb.h.

#define BLTCLIPX   0x02d4 /* BitBLT Min/Max X clip values */

Definition at line 180 of file sstfb.h.

#define BLTCLIPY   0x02d8 /* BitBLT Min/Max Y clip values */

Definition at line 181 of file sstfb.h.

#define BLTCOLOR   0x02f0 /* BitBLT and foreground background colors */

Definition at line 189 of file sstfb.h.

#define BLTCOMMAND   0x02f8 /* BitBLT command mode (v2 specific) */

Definition at line 190 of file sstfb.h.

#define BLTDATA   0x02fc /* BitBLT data for CPU-to-Screen BitBLTs */

Definition at line 195 of file sstfb.h.

#define BLTDSTBASEADDR   0x02c4 /* BitBLT Destination base address */

Definition at line 176 of file sstfb.h.

#define BLTDSTCHROMARANGE   0x02d0 /* BitBLT Destination Chroma key range */

Definition at line 179 of file sstfb.h.

#define BLTDSTXY   0x02e4 /* BitBLT Destination starting XY coordinates */

Definition at line 183 of file sstfb.h.

#define BLTROP   0x02ec /* BitBLT Raster operations */

Definition at line 185 of file sstfb.h.

#define BLTROP_COPY   0x0cccc

Definition at line 186 of file sstfb.h.

#define BLTROP_INVERT   0x05555

Definition at line 187 of file sstfb.h.

#define BLTROP_XOR   0x06666

Definition at line 188 of file sstfb.h.

#define BLTSIZE   0x02e8 /* BitBLT width and height */

Definition at line 184 of file sstfb.h.

#define BLTSRCBASEADDR   0x02c0 /* BitBLT Source base address */

Definition at line 175 of file sstfb.h.

#define BLTSRCCHROMARANGE   0x02cc /* BitBLT Source Chroma key range */

Definition at line 178 of file sstfb.h.

#define BLTSRCXY   0x02e0 /* BitBLT Source starting XY coordinates */

Definition at line 182 of file sstfb.h.

#define BLTXYSTRIDES   0x02c8 /* BitBLT Source and Destination strides */

Definition at line 177 of file sstfb.h.

#define CLIP_LEFT_RIGHT   0x0118

Definition at line 109 of file sstfb.h.

#define CLIP_LOWY_HIGHY   0x011c

Definition at line 110 of file sstfb.h.

#define DAC_DATA   0x022c

Definition at line 162 of file sstfb.h.

#define DAC_FREF   14318 /* DAC reference freq (Khz) */

Definition at line 310 of file sstfb.h.

#define DAC_READ   FBIINIT2 /* in remap mode */

Definition at line 156 of file sstfb.h.

#define DAC_READ_CMD   BIT(11) /* set read dacreg mode */

Definition at line 163 of file sstfb.h.

#define DACREG_AC0_I   0x48 /* clock A reg C */

Definition at line 219 of file sstfb.h.

#define DACREG_AC1_I   0x49

Definition at line 220 of file sstfb.h.

#define DACREG_ADDR_I   DACREG_WMA

Definition at line 204 of file sstfb.h.

#define DACREG_BD0_I   0x6c /* clock B reg D */

Definition at line 221 of file sstfb.h.

#define DACREG_BD1_I   0x6d

Definition at line 222 of file sstfb.h.

#define DACREG_CC_CLKA   BIT(7) /* clk A controlled by regs */

Definition at line 215 of file sstfb.h.

#define DACREG_CC_CLKA_C   (2<<4) /* clk A uses reg C */

Definition at line 216 of file sstfb.h.

#define DACREG_CC_CLKB   BIT(3) /* clk B controlled by regs */

Definition at line 217 of file sstfb.h.

#define DACREG_CC_CLKB_D   3 /* clkB uses reg D */

Definition at line 218 of file sstfb.h.

#define DACREG_CC_I   0x06

Definition at line 214 of file sstfb.h.

#define DACREG_CR0_16BPP   0x30 /* mode 3 */

Definition at line 211 of file sstfb.h.

#define DACREG_CR0_24BPP   0x50 /* mode 5 */

Definition at line 212 of file sstfb.h.

#define DACREG_CR0_8BIT   BIT(1) /* set dac to 8 bits/read */

Definition at line 209 of file sstfb.h.

#define DACREG_CR0_EN_INDEXED   BIT(0) /* enable indexec mode */

Definition at line 208 of file sstfb.h.

#define DACREG_CR0_I   0x01

Definition at line 207 of file sstfb.h.

#define DACREG_CR0_PWDOWN   BIT(3) /* powerdown dac */

Definition at line 210 of file sstfb.h.

#define DACREG_CR1_I   0x05

Definition at line 213 of file sstfb.h.

#define DACREG_DATA_I   DACREG_RMR

Definition at line 205 of file sstfb.h.

#define DACREG_DIR_ATT   0x09

Definition at line 228 of file sstfb.h.

#define DACREG_DIR_TI   0x09

Definition at line 226 of file sstfb.h.

#define DACREG_ICS_CLK0   BIT(5)

Definition at line 248 of file sstfb.h.

#define DACREG_ICS_CLK0_0   0

Definition at line 249 of file sstfb.h.

#define DACREG_ICS_CLK1_A   0 /* bit4 */

Definition at line 250 of file sstfb.h.

#define DACREG_ICS_CMD   0x06 /* command */

Definition at line 232 of file sstfb.h.

#define DACREG_ICS_CMD_16BPP   0x50 /* ics color mode 6 (16bpp bypass)*/

Definition at line 233 of file sstfb.h.

#define DACREG_ICS_CMD_24BPP   0x70 /* ics color mode 7 (24bpp bypass)*/

Definition at line 234 of file sstfb.h.

#define DACREG_ICS_CMD_PWDOWN   BIT(0) /* powerdown dac */

Definition at line 235 of file sstfb.h.

#define DACREG_ICS_PLL_CLK0_1_INI   0x55 /* initial pll M value for freq f1 */

Definition at line 244 of file sstfb.h.

#define DACREG_ICS_PLL_CLK0_7_INI   0x71 /* f7 */

Definition at line 245 of file sstfb.h.

#define DACREG_ICS_PLL_CLK1_B_INI   0x79 /* fb */

Definition at line 246 of file sstfb.h.

#define DACREG_ICS_PLL_CTRL   0x0e

Definition at line 247 of file sstfb.h.

#define DACREG_ICS_PLLDATA   0x05 /* PLL data /parameter */

Definition at line 231 of file sstfb.h.

#define DACREG_ICS_PLLRMA   0x07 /* PLL read mode address */

Definition at line 236 of file sstfb.h.

#define DACREG_ICS_PLLWMA   0x04 /* PLL write mode address */

Definition at line 230 of file sstfb.h.

#define DACREG_LUT   0x01 /* color value */

Definition at line 200 of file sstfb.h.

#define DACREG_MIR_ATT   0x84

Definition at line 227 of file sstfb.h.

#define DACREG_MIR_TI   0x97

Definition at line 225 of file sstfb.h.

#define DACREG_RMA   0x03 /* pixel read mode address */

Definition at line 202 of file sstfb.h.

#define DACREG_RMR   0x02 /* pixel mask */

Definition at line 201 of file sstfb.h.

#define DACREG_RMR_I   0x00

Definition at line 206 of file sstfb.h.

#define DACREG_WMA   0x0 /* pixel write mode address */

Definition at line 199 of file sstfb.h.

#define DIS_VGA_PASSTHROUGH   BIT(0)

Definition at line 121 of file sstfb.h.

#define DISABLE_TEXTURE   BIT(6)

Definition at line 158 of file sstfb.h.

#define dprintk (   X...)

Definition at line 25 of file sstfb.h.

#define DRAM_REFRESH_16   (0x30 << 23) /* dram 16 ms */

Definition at line 155 of file sstfb.h.

#define EN_24BPP   BIT(22)

Definition at line 141 of file sstfb.h.

#define EN_ALPHA_WRITE   BIT(10)

Definition at line 93 of file sstfb.h.

#define EN_BLANK_OE   BIT(14)

Definition at line 133 of file sstfb.h.

#define EN_BLANKING   BIT(12)

Definition at line 131 of file sstfb.h.

#define EN_CLIPPING   BIT(0) /* enable clipping */

Definition at line 91 of file sstfb.h.

#define EN_DATA_OE   BIT(13)

Definition at line 132 of file sstfb.h.

#define EN_DCLK_OE   BIT(16)

Definition at line 135 of file sstfb.h.

#define EN_DRAM_OE   BIT(6)

Definition at line 147 of file sstfb.h.

#define EN_DRAM_REFRESH   BIT(22)

Definition at line 154 of file sstfb.h.

#define EN_FAST_RAS_READ   BIT(5)

Definition at line 146 of file sstfb.h.

#define EN_FAST_RD_AHEAD_WR   BIT(7)

Definition at line 148 of file sstfb.h.

#define EN_HVSYNC_OE   BIT(15)

Definition at line 134 of file sstfb.h.

#define EN_LFB_READ   BIT(3)

Definition at line 128 of file sstfb.h.

#define EN_PXL_PIPELINE   BIT(8) /* pixel pipeline (clip..)*/

Definition at line 103 of file sstfb.h.

#define EN_RD_AHEAD_FIFO   BIT(21)

Definition at line 153 of file sstfb.h.

#define EN_RGB_WRITE   BIT(9) /* enable writes to rgb area */

Definition at line 92 of file sstfb.h.

#define ENGINE_INVERT_Y   BIT(17) /* invert Y origin (pipe) */

Definition at line 94 of file sstfb.h.

#define f_dddprintk (   X...)

Definition at line 55 of file sstfb.h.

#define f_ddprintk (   X...)

Definition at line 50 of file sstfb.h.

#define f_dprintk (   X...)

Definition at line 45 of file sstfb.h.

#define FAST_PCI_READS   0 /* 1 waitstate */

Definition at line 115 of file sstfb.h.

#define FAST_PCI_WRITES   0 /* 0 ws */

Definition at line 126 of file sstfb.h.

#define FASTFILLCMD   0x0124

Definition at line 112 of file sstfb.h.

#define FBI_RESET   BIT(1)

Definition at line 122 of file sstfb.h.

#define FBIINIT0   0x0210 /* misc+fifo controls */

Definition at line 120 of file sstfb.h.

#define FBIINIT0_DEFAULT   DIS_VGA_PASSTHROUGH

Definition at line 253 of file sstfb.h.

#define FBIINIT1   0x0214 /* PCI + video controls */

Definition at line 124 of file sstfb.h.

#define FBIINIT1_DEFAULT
Value:
( \
FAST_PCI_WRITES \
/* SLOW_PCI_WRITES*/ \
)

Definition at line 255 of file sstfb.h.

#define FBIINIT2   0x0218 /* Dram controls */

Definition at line 145 of file sstfb.h.

#define FBIINIT2_DEFAULT
Value:

Definition at line 265 of file sstfb.h.

#define FBIINIT3   0x021c /* fbi controls */

Definition at line 157 of file sstfb.h.

#define FBIINIT3_DEFAULT   ( DISABLE_TEXTURE )

Definition at line 276 of file sstfb.h.

#define FBIINIT4   0x0200 /* misc controls */

Definition at line 114 of file sstfb.h.

#define FBIINIT4_DEFAULT
Value:
( \
FAST_PCI_READS \
/* SLOW_PCI_READS*/ \
)

Definition at line 279 of file sstfb.h.

#define FBIINIT5   0x0244 /* v2 specific */

Definition at line 164 of file sstfb.h.

#define FBIINIT5_MASK   0xfa40ffff /* mask video bits*/

Definition at line 165 of file sstfb.h.

#define FBIINIT6   0x0248 /* v2 specific */

Definition at line 171 of file sstfb.h.

#define FBIINIT6_DEFAULT   (0x0)

Definition at line 290 of file sstfb.h.

#define FBIINIT7   0x024c /* v2 specific */

Definition at line 173 of file sstfb.h.

#define FBZMODE   0x0110

Definition at line 90 of file sstfb.h.

#define FIFO_RESET   BIT(2)

Definition at line 123 of file sstfb.h.

#define HDOUBLESCAN   BIT(20)

Definition at line 166 of file sstfb.h.

#define HSYNC   0x0220

Definition at line 160 of file sstfb.h.

#define HSYNC_HIGH   BIT(23)

Definition at line 168 of file sstfb.h.

#define INTERLACE   BIT(26)

Definition at line 170 of file sstfb.h.

#define LAUNCH_BITBLT   BIT(31) /* Launch BitBLT in BltCommand, bltDstXY or bltSize */

Definition at line 196 of file sstfb.h.

#define LFB_565   0 /* bits 3:0 .16 bits RGB */

Definition at line 96 of file sstfb.h.

#define LFB_888   4 /* 24 bits RGB */

Definition at line 97 of file sstfb.h.

#define LFB_8888   5 /* 32 bits ARGB */

Definition at line 98 of file sstfb.h.

#define LFB_BYTE_SWIZZLE_RD   BIT(16) /* enable read-byteswap (big-endian) */

Definition at line 108 of file sstfb.h.

#define LFB_BYTE_SWIZZLE_WR   BIT(12) /* enable write-byteswap (big-endian) */

Definition at line 105 of file sstfb.h.

#define LFB_INVERT_Y   BIT(13) /* invert Y origin (LFB) */

Definition at line 106 of file sstfb.h.

#define LFB_READ_AHEAD   BIT(1)

Definition at line 117 of file sstfb.h.

#define LFB_WORD_SWIZZLE_RD   BIT(15) /* enable read-wordswap (big-endian) */

Definition at line 107 of file sstfb.h.

#define LFB_WORD_SWIZZLE_WR   BIT(11) /* enable write-wordswap (big-endian) */

Definition at line 104 of file sstfb.h.

#define LFBMODE   0x0114

Definition at line 95 of file sstfb.h.

#define NOPCMD   0x0120

Definition at line 111 of file sstfb.h.

#define PCI_EN_FIFO_WR   BIT(1)

Definition at line 82 of file sstfb.h.

#define PCI_EN_INIT_WR   BIT(0)

Definition at line 81 of file sstfb.h.

#define PCI_INIT_ENABLE   0x40

Definition at line 80 of file sstfb.h.

#define PCI_REMAP_DAC   BIT(2)

Definition at line 83 of file sstfb.h.

#define PCI_VCLK_DISABLE   0xe0

Definition at line 85 of file sstfb.h.

#define PCI_VCLK_ENABLE   0xc0 /* enable video */

Definition at line 84 of file sstfb.h.

#define POW2 (   x)    (1ul<<(x))

Definition at line 71 of file sstfb.h.

#define print_var (   X,
  Y... 
)

Definition at line 68 of file sstfb.h.

#define r_ddprintk (   X...)

Definition at line 39 of file sstfb.h.

#define r_dprintk (   X...)

Definition at line 34 of file sstfb.h.

#define RD_BUFF_BACK   (1 << 6) /* back */

Definition at line 102 of file sstfb.h.

#define RD_BUFF_FRONT   0 /* read buff select (front) */

Definition at line 101 of file sstfb.h.

#define SEL_INPUT_VCLK_2X   0 /* bit 17 */

Definition at line 136 of file sstfb.h.

#define SEL_INPUT_VCLK_SLAVE   BIT(17)

Definition at line 137 of file sstfb.h.

#define SEL_SOURCE_VCLK_2X_DIV2   (0x01 << 20)

Definition at line 139 of file sstfb.h.

#define SEL_SOURCE_VCLK_2X_SEL   (0x02 << 20)

Definition at line 140 of file sstfb.h.

#define SEL_SOURCE_VCLK_SLAVE   0 /* bits 21:20 */

Definition at line 138 of file sstfb.h.

#define SLOW_PCI_READS   BIT(0) /* 2 ws */

Definition at line 116 of file sstfb.h.

#define SLOW_PCI_WRITES   BIT(1) /* 1 ws */

Definition at line 127 of file sstfb.h.

#define SST_DEBUG_FUNC   0

Definition at line 27 of file sstfb.h.

#define SST_DEBUG_REG   0

Definition at line 26 of file sstfb.h.

#define SST_DEBUG_VAR   0

Definition at line 28 of file sstfb.h.

#define SSTFB_GET_VGAPASS   _IOR('F', 0xdd, __u32)

Definition at line 300 of file sstfb.h.

#define SSTFB_SET_VGAPASS   _IOW('F', 0xdd, __u32)

Definition at line 299 of file sstfb.h.

#define STATUS   0x0000

Definition at line 88 of file sstfb.h.

#define STATUS_FBI_BUSY   BIT(7)

Definition at line 89 of file sstfb.h.

#define SWAP_DACDATA0   (1 << 9)

Definition at line 151 of file sstfb.h.

#define SWAP_DACVSYNC   0

Definition at line 150 of file sstfb.h.

#define SWAP_FIFO_STALL   (2 << 9)

Definition at line 152 of file sstfb.h.

#define SWAPBUFFCMD   0x0128

Definition at line 113 of file sstfb.h.

#define TILES_IN_X_LSB_SHIFT   30 /* v2 */

Definition at line 172 of file sstfb.h.

#define TILES_IN_X_MSB_SHIFT   24 /* v2 */

Definition at line 142 of file sstfb.h.

#define TILES_IN_X_SHIFT   4

Definition at line 129 of file sstfb.h.

#define v_dprintk (   X...)

Definition at line 67 of file sstfb.h.

#define VCLK_2X_SEL_DEL_SHIFT   27 /* vclk out delay 0,4,6,8ns */

Definition at line 143 of file sstfb.h.

#define VCLK_DEL_SHIFT   29 /* vclk in delay */

Definition at line 144 of file sstfb.h.

#define VCO_MAX   260000

Definition at line 311 of file sstfb.h.

#define VDOUBLESCAN   BIT(21)

Definition at line 167 of file sstfb.h.

#define VIDEO_MASK   0x8080010f /* masks video related bits V1+V2*/

Definition at line 125 of file sstfb.h.

#define VIDEO_OFFSET_SHIFT   11 /* unit: #rows tile 64x16/2 */

Definition at line 149 of file sstfb.h.

#define VIDEO_RESET   BIT(8)

Definition at line 130 of file sstfb.h.

#define VIDEODIMENSIONS   0x020c

Definition at line 119 of file sstfb.h.

#define VSYNC   0x0224

Definition at line 161 of file sstfb.h.

#define VSYNC_HIGH   BIT(24)

Definition at line 169 of file sstfb.h.

#define WR_BUFF_BACK   (1 << 4) /* back */

Definition at line 100 of file sstfb.h.

#define WR_BUFF_FRONT   0 /* write buf select (front) */

Definition at line 99 of file sstfb.h.

#define Y_SWAP_ORIGIN_SHIFT   22 /* Y swap subtraction value */

Definition at line 159 of file sstfb.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
VID_CLOCK 
GFX_CLOCK 

Definition at line 304 of file sstfb.h.