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

Go to the source code of this file.

Macros

#define FB_ACCEL_VIA_UNICHROME   50
 
#define MMIO_VGABASE   0x8000
 
#define MMIO_CR_READ   (MMIO_VGABASE + 0x3D4)
 
#define MMIO_CR_WRITE   (MMIO_VGABASE + 0x3D5)
 
#define MMIO_SR_READ   (MMIO_VGABASE + 0x3C4)
 
#define MMIO_SR_WRITE   (MMIO_VGABASE + 0x3C5)
 
#define HW_Cursor_ON   0
 
#define HW_Cursor_OFF   1
 
#define CURSOR_SIZE   (8 * 1024)
 
#define VQ_SIZE   (256 * 1024)
 
#define VIA_MMIO_BLTBASE   0x200000
 
#define VIA_MMIO_BLTSIZE   0x200000
 
#define VIA_REG_GECMD   0x000
 
#define VIA_REG_GEMODE   0x004
 
#define VIA_REG_SRCPOS   0x008
 
#define VIA_REG_DSTPOS   0x00C
 
#define VIA_REG_DIMENSION   0x010
 
#define VIA_REG_PATADDR   0x014
 
#define VIA_REG_FGCOLOR   0x018
 
#define VIA_REG_BGCOLOR   0x01C
 
#define VIA_REG_CLIPTL   0x020
 
#define VIA_REG_CLIPBR   0x024
 
#define VIA_REG_OFFSET   0x028
 
#define VIA_REG_KEYCONTROL   0x02C
 
#define VIA_REG_SRCBASE   0x030
 
#define VIA_REG_DSTBASE   0x034
 
#define VIA_REG_PITCH   0x038
 
#define VIA_REG_MONOPAT0   0x03C
 
#define VIA_REG_MONOPAT1   0x040
 
#define VIA_REG_COLORPAT   0x100
 
#define VIA_REG_GECMD_M1   0x000
 
#define VIA_REG_GEMODE_M1   0x004
 
#define VIA_REG_GESTATUS_M1   0x004 /* as same as VIA_REG_GEMODE */
 
#define VIA_REG_PITCH_M1   0x008 /* pitch of src and dst */
 
#define VIA_REG_DIMENSION_M1   0x00C /* width and height */
 
#define VIA_REG_DSTPOS_M1   0x010
 
#define VIA_REG_LINE_XY_M1   0x010
 
#define VIA_REG_DSTBASE_M1   0x014
 
#define VIA_REG_SRCPOS_M1   0x018
 
#define VIA_REG_LINE_K1K2_M1   0x018
 
#define VIA_REG_SRCBASE_M1   0x01C
 
#define VIA_REG_PATADDR_M1   0x020
 
#define VIA_REG_MONOPAT0_M1   0x024
 
#define VIA_REG_MONOPAT1_M1   0x028
 
#define VIA_REG_OFFSET_M1   0x02C
 
#define VIA_REG_LINE_ERROR_M1   0x02C
 
#define VIA_REG_CLIPTL_M1   0x040 /* top and left of clipping */
 
#define VIA_REG_CLIPBR_M1   0x044 /* bottom and right of clipping */
 
#define VIA_REG_KEYCONTROL_M1   0x048 /* color key control */
 
#define VIA_REG_FGCOLOR_M1   0x04C
 
#define VIA_REG_DSTCOLORKEY_M1   0x04C /* as same as VIA_REG_FG */
 
#define VIA_REG_BGCOLOR_M1   0x050
 
#define VIA_REG_SRCCOLORKEY_M1   0x050 /* as same as VIA_REG_BG */
 
#define VIA_REG_MONOPATFGC_M1   0x058 /* Add BG color of Pattern. */
 
#define VIA_REG_MONOPATBGC_M1   0x05C /* Add FG color of Pattern. */
 
#define VIA_REG_COLORPAT_M1   0x100 /* from 0x100 to 0x1ff */
 
#define VIA_PITCH_ENABLE   0x80000000
 
#define VIA_REG_CURSOR_MODE   0x2D0
 
#define VIA_REG_CURSOR_POS   0x2D4
 
#define VIA_REG_CURSOR_ORG   0x2D8
 
#define VIA_REG_CURSOR_BG   0x2DC
 
#define VIA_REG_CURSOR_FG   0x2E0
 
#define VIA_GEM_8bpp   0x00000000
 
#define VIA_GEM_16bpp   0x00000100
 
#define VIA_GEM_32bpp   0x00000300
 
#define VIA_GEC_NOOP   0x00000000
 
#define VIA_GEC_BLT   0x00000001
 
#define VIA_GEC_LINE   0x00000005
 
#define VIA_GEC_ROT   0x00000008
 
#define VIA_GEC_SRC_XY   0x00000000
 
#define VIA_GEC_SRC_LINEAR   0x00000010
 
#define VIA_GEC_DST_XY   0x00000000
 
#define VIA_GEC_DST_LINRAT   0x00000020
 
#define VIA_GEC_SRC_FB   0x00000000
 
#define VIA_GEC_SRC_SYS   0x00000040
 
#define VIA_GEC_DST_FB   0x00000000
 
#define VIA_GEC_DST_SYS   0x00000080
 
#define VIA_GEC_SRC_MONO   0x00000100
 
#define VIA_GEC_PAT_MONO   0x00000200
 
#define VIA_GEC_MSRC_OPAQUE   0x00000000
 
#define VIA_GEC_MSRC_TRANS   0x00000400
 
#define VIA_GEC_PAT_FB   0x00000000
 
#define VIA_GEC_PAT_REG   0x00000800
 
#define VIA_GEC_CLIP_DISABLE   0x00000000
 
#define VIA_GEC_CLIP_ENABLE   0x00001000
 
#define VIA_GEC_FIXCOLOR_PAT   0x00002000
 
#define VIA_GEC_INCX   0x00000000
 
#define VIA_GEC_DECY   0x00004000
 
#define VIA_GEC_INCY   0x00000000
 
#define VIA_GEC_DECX   0x00008000
 
#define VIA_GEC_MPAT_OPAQUE   0x00000000
 
#define VIA_GEC_MPAT_TRANS   0x00010000
 
#define VIA_GEC_MONO_UNPACK   0x00000000
 
#define VIA_GEC_MONO_PACK   0x00020000
 
#define VIA_GEC_MONO_DWORD   0x00000000
 
#define VIA_GEC_MONO_WORD   0x00040000
 
#define VIA_GEC_MONO_BYTE   0x00080000
 
#define VIA_GEC_LASTPIXEL_ON   0x00000000
 
#define VIA_GEC_LASTPIXEL_OFF   0x00100000
 
#define VIA_GEC_X_MAJOR   0x00000000
 
#define VIA_GEC_Y_MAJOR   0x00200000
 
#define VIA_GEC_QUICK_START   0x00800000
 
#define VIA_REG_STATUS   0x400
 
#define VIA_REG_CR_TRANSET   0x41C
 
#define VIA_REG_CR_TRANSPACE   0x420
 
#define VIA_REG_TRANSET   0x43C
 
#define VIA_REG_TRANSPACE   0x440
 
#define VIA_CMD_RGTR_BUSY   0x00000080
 
#define VIA_2D_ENG_BUSY   0x00000002
 
#define VIA_3D_ENG_BUSY   0x00000001
 
#define VIA_VR_QUEUE_BUSY   0x00020000
 
#define VIA_CMD_RGTR_BUSY_H5   0x00000010 /* Command Regulator is busy */
 
#define VIA_2D_ENG_BUSY_H5   0x00000002 /* 2D Engine is busy */
 
#define VIA_3D_ENG_BUSY_H5   0x00001FE1 /* 3D Engine is busy */
 
#define VIA_VR_QUEUE_BUSY_H5   0x00000004 /* Virtual Queue is busy */
 
#define VIA_CMD_RGTR_BUSY_M1   0x00000010 /* Command Regulator is busy */
 
#define VIA_2D_ENG_BUSY_M1   0x00000002 /* 2D Engine is busy */
 
#define VIA_3D_ENG_BUSY_M1   0x00001FE1 /* 3D Engine is busy */
 
#define VIA_VR_QUEUE_BUSY_M1   0x00000004 /* Virtual Queue is busy */
 
#define MAXLOOP   0xFFFFFF
 
#define VIA_BITBLT_COLOR   1
 
#define VIA_BITBLT_MONO   2
 
#define VIA_BITBLT_FILL   3
 

Functions

int viafb_setup_engine (struct fb_info *info)
 
void viafb_reset_engine (struct viafb_par *viapar)
 
void viafb_show_hw_cursor (struct fb_info *info, int Status)
 
void viafb_wait_engine_idle (struct fb_info *info)
 

Macro Definition Documentation

#define CURSOR_SIZE   (8 * 1024)

Definition at line 38 of file accel.h.

#define FB_ACCEL_VIA_UNICHROME   50

Definition at line 25 of file accel.h.

#define HW_Cursor_OFF   1

Definition at line 36 of file accel.h.

#define HW_Cursor_ON   0

Definition at line 35 of file accel.h.

#define MAXLOOP   0xFFFFFF

Definition at line 200 of file accel.h.

#define MMIO_CR_READ   (MMIO_VGABASE + 0x3D4)

Definition at line 29 of file accel.h.

#define MMIO_CR_WRITE   (MMIO_VGABASE + 0x3D5)

Definition at line 30 of file accel.h.

#define MMIO_SR_READ   (MMIO_VGABASE + 0x3C4)

Definition at line 31 of file accel.h.

#define MMIO_SR_WRITE   (MMIO_VGABASE + 0x3C5)

Definition at line 32 of file accel.h.

#define MMIO_VGABASE   0x8000

Definition at line 28 of file accel.h.

#define VIA_2D_ENG_BUSY   0x00000002

Definition at line 182 of file accel.h.

#define VIA_2D_ENG_BUSY_H5   0x00000002 /* 2D Engine is busy */

Definition at line 190 of file accel.h.

#define VIA_2D_ENG_BUSY_M1   0x00000002 /* 2D Engine is busy */

Definition at line 196 of file accel.h.

#define VIA_3D_ENG_BUSY   0x00000001

Definition at line 184 of file accel.h.

#define VIA_3D_ENG_BUSY_H5   0x00001FE1 /* 3D Engine is busy */

Definition at line 191 of file accel.h.

#define VIA_3D_ENG_BUSY_M1   0x00001FE1 /* 3D Engine is busy */

Definition at line 197 of file accel.h.

#define VIA_BITBLT_COLOR   1

Definition at line 202 of file accel.h.

#define VIA_BITBLT_FILL   3

Definition at line 204 of file accel.h.

#define VIA_BITBLT_MONO   2

Definition at line 203 of file accel.h.

#define VIA_CMD_RGTR_BUSY   0x00000080

Definition at line 180 of file accel.h.

#define VIA_CMD_RGTR_BUSY_H5   0x00000010 /* Command Regulator is busy */

Definition at line 189 of file accel.h.

#define VIA_CMD_RGTR_BUSY_M1   0x00000010 /* Command Regulator is busy */

Definition at line 195 of file accel.h.

#define VIA_GEC_BLT   0x00000001

Definition at line 115 of file accel.h.

#define VIA_GEC_CLIP_DISABLE   0x00000000

Definition at line 144 of file accel.h.

#define VIA_GEC_CLIP_ENABLE   0x00001000

Definition at line 145 of file accel.h.

#define VIA_GEC_DECX   0x00008000

Definition at line 152 of file accel.h.

#define VIA_GEC_DECY   0x00004000

Definition at line 150 of file accel.h.

#define VIA_GEC_DST_FB   0x00000000

Definition at line 128 of file accel.h.

#define VIA_GEC_DST_LINRAT   0x00000020

Definition at line 124 of file accel.h.

#define VIA_GEC_DST_SYS   0x00000080

Definition at line 129 of file accel.h.

#define VIA_GEC_DST_XY   0x00000000

Definition at line 123 of file accel.h.

#define VIA_GEC_FIXCOLOR_PAT   0x00002000

Definition at line 147 of file accel.h.

#define VIA_GEC_INCX   0x00000000

Definition at line 149 of file accel.h.

#define VIA_GEC_INCY   0x00000000

Definition at line 151 of file accel.h.

#define VIA_GEC_LASTPIXEL_OFF   0x00100000

Definition at line 165 of file accel.h.

#define VIA_GEC_LASTPIXEL_ON   0x00000000

Definition at line 164 of file accel.h.

#define VIA_GEC_LINE   0x00000005

Definition at line 116 of file accel.h.

#define VIA_GEC_MONO_BYTE   0x00080000

Definition at line 162 of file accel.h.

#define VIA_GEC_MONO_DWORD   0x00000000

Definition at line 160 of file accel.h.

#define VIA_GEC_MONO_PACK   0x00020000

Definition at line 159 of file accel.h.

#define VIA_GEC_MONO_UNPACK   0x00000000

Definition at line 158 of file accel.h.

#define VIA_GEC_MONO_WORD   0x00040000

Definition at line 161 of file accel.h.

#define VIA_GEC_MPAT_OPAQUE   0x00000000

Definition at line 154 of file accel.h.

#define VIA_GEC_MPAT_TRANS   0x00010000

Definition at line 156 of file accel.h.

#define VIA_GEC_MSRC_OPAQUE   0x00000000

Definition at line 136 of file accel.h.

#define VIA_GEC_MSRC_TRANS   0x00000400

Definition at line 138 of file accel.h.

#define VIA_GEC_NOOP   0x00000000

Definition at line 114 of file accel.h.

#define VIA_GEC_PAT_FB   0x00000000

Definition at line 140 of file accel.h.

#define VIA_GEC_PAT_MONO   0x00000200

Definition at line 134 of file accel.h.

#define VIA_GEC_PAT_REG   0x00000800

Definition at line 142 of file accel.h.

#define VIA_GEC_QUICK_START   0x00800000

Definition at line 168 of file accel.h.

#define VIA_GEC_ROT   0x00000008

Definition at line 119 of file accel.h.

#define VIA_GEC_SRC_FB   0x00000000

Definition at line 126 of file accel.h.

#define VIA_GEC_SRC_LINEAR   0x00000010

Definition at line 122 of file accel.h.

#define VIA_GEC_SRC_MONO   0x00000100

Definition at line 132 of file accel.h.

#define VIA_GEC_SRC_SYS   0x00000040

Definition at line 127 of file accel.h.

#define VIA_GEC_SRC_XY   0x00000000

Definition at line 121 of file accel.h.

#define VIA_GEC_X_MAJOR   0x00000000

Definition at line 166 of file accel.h.

#define VIA_GEC_Y_MAJOR   0x00200000

Definition at line 167 of file accel.h.

#define VIA_GEM_16bpp   0x00000100

Definition at line 110 of file accel.h.

#define VIA_GEM_32bpp   0x00000300

Definition at line 111 of file accel.h.

#define VIA_GEM_8bpp   0x00000000

Definition at line 109 of file accel.h.

#define VIA_MMIO_BLTBASE   0x200000

Definition at line 41 of file accel.h.

#define VIA_MMIO_BLTSIZE   0x200000

Definition at line 42 of file accel.h.

#define VIA_PITCH_ENABLE   0x80000000

Definition at line 99 of file accel.h.

#define VIA_REG_BGCOLOR   0x01C

Definition at line 53 of file accel.h.

#define VIA_REG_BGCOLOR_M1   0x050

Definition at line 92 of file accel.h.

#define VIA_REG_CLIPBR   0x024

Definition at line 57 of file accel.h.

#define VIA_REG_CLIPBR_M1   0x044 /* bottom and right of clipping */

Definition at line 88 of file accel.h.

#define VIA_REG_CLIPTL   0x020

Definition at line 55 of file accel.h.

#define VIA_REG_CLIPTL_M1   0x040 /* top and left of clipping */

Definition at line 87 of file accel.h.

#define VIA_REG_COLORPAT   0x100

Definition at line 68 of file accel.h.

#define VIA_REG_COLORPAT_M1   0x100 /* from 0x100 to 0x1ff */

Definition at line 96 of file accel.h.

#define VIA_REG_CR_TRANSET   0x41C

Definition at line 172 of file accel.h.

#define VIA_REG_CR_TRANSPACE   0x420

Definition at line 173 of file accel.h.

#define VIA_REG_CURSOR_BG   0x2DC

Definition at line 105 of file accel.h.

#define VIA_REG_CURSOR_FG   0x2E0

Definition at line 106 of file accel.h.

#define VIA_REG_CURSOR_MODE   0x2D0

Definition at line 102 of file accel.h.

#define VIA_REG_CURSOR_ORG   0x2D8

Definition at line 104 of file accel.h.

#define VIA_REG_CURSOR_POS   0x2D4

Definition at line 103 of file accel.h.

#define VIA_REG_DIMENSION   0x010

Definition at line 50 of file accel.h.

#define VIA_REG_DIMENSION_M1   0x00C /* width and height */

Definition at line 75 of file accel.h.

#define VIA_REG_DSTBASE   0x034

Definition at line 62 of file accel.h.

#define VIA_REG_DSTBASE_M1   0x014

Definition at line 78 of file accel.h.

#define VIA_REG_DSTCOLORKEY_M1   0x04C /* as same as VIA_REG_FG */

Definition at line 91 of file accel.h.

#define VIA_REG_DSTPOS   0x00C

Definition at line 48 of file accel.h.

#define VIA_REG_DSTPOS_M1   0x010

Definition at line 76 of file accel.h.

#define VIA_REG_FGCOLOR   0x018

Definition at line 52 of file accel.h.

#define VIA_REG_FGCOLOR_M1   0x04C

Definition at line 90 of file accel.h.

#define VIA_REG_GECMD   0x000

Definition at line 45 of file accel.h.

#define VIA_REG_GECMD_M1   0x000

Definition at line 71 of file accel.h.

#define VIA_REG_GEMODE   0x004

Definition at line 46 of file accel.h.

#define VIA_REG_GEMODE_M1   0x004

Definition at line 72 of file accel.h.

#define VIA_REG_GESTATUS_M1   0x004 /* as same as VIA_REG_GEMODE */

Definition at line 73 of file accel.h.

#define VIA_REG_KEYCONTROL   0x02C

Definition at line 60 of file accel.h.

#define VIA_REG_KEYCONTROL_M1   0x048 /* color key control */

Definition at line 89 of file accel.h.

#define VIA_REG_LINE_ERROR_M1   0x02C

Definition at line 86 of file accel.h.

#define VIA_REG_LINE_K1K2_M1   0x018

Definition at line 80 of file accel.h.

#define VIA_REG_LINE_XY_M1   0x010

Definition at line 77 of file accel.h.

#define VIA_REG_MONOPAT0   0x03C

Definition at line 65 of file accel.h.

#define VIA_REG_MONOPAT0_M1   0x024

Definition at line 83 of file accel.h.

#define VIA_REG_MONOPAT1   0x040

Definition at line 66 of file accel.h.

#define VIA_REG_MONOPAT1_M1   0x028

Definition at line 84 of file accel.h.

#define VIA_REG_MONOPATBGC_M1   0x05C /* Add FG color of Pattern. */

Definition at line 95 of file accel.h.

#define VIA_REG_MONOPATFGC_M1   0x058 /* Add BG color of Pattern. */

Definition at line 94 of file accel.h.

#define VIA_REG_OFFSET   0x028

Definition at line 58 of file accel.h.

#define VIA_REG_OFFSET_M1   0x02C

Definition at line 85 of file accel.h.

#define VIA_REG_PATADDR   0x014

Definition at line 51 of file accel.h.

#define VIA_REG_PATADDR_M1   0x020

Definition at line 82 of file accel.h.

#define VIA_REG_PITCH   0x038

Definition at line 64 of file accel.h.

#define VIA_REG_PITCH_M1   0x008 /* pitch of src and dst */

Definition at line 74 of file accel.h.

#define VIA_REG_SRCBASE   0x030

Definition at line 61 of file accel.h.

#define VIA_REG_SRCBASE_M1   0x01C

Definition at line 81 of file accel.h.

#define VIA_REG_SRCCOLORKEY_M1   0x050 /* as same as VIA_REG_BG */

Definition at line 93 of file accel.h.

#define VIA_REG_SRCPOS   0x008

Definition at line 47 of file accel.h.

#define VIA_REG_SRCPOS_M1   0x018

Definition at line 79 of file accel.h.

#define VIA_REG_STATUS   0x400

Definition at line 171 of file accel.h.

#define VIA_REG_TRANSET   0x43C

Definition at line 174 of file accel.h.

#define VIA_REG_TRANSPACE   0x440

Definition at line 175 of file accel.h.

#define VIA_VR_QUEUE_BUSY   0x00020000

Definition at line 186 of file accel.h.

#define VIA_VR_QUEUE_BUSY_H5   0x00000004 /* Virtual Queue is busy */

Definition at line 192 of file accel.h.

#define VIA_VR_QUEUE_BUSY_M1   0x00000004 /* Virtual Queue is busy */

Definition at line 198 of file accel.h.

#define VQ_SIZE   (256 * 1024)

Definition at line 39 of file accel.h.

Function Documentation

void viafb_reset_engine ( struct viafb_par viapar)

Definition at line 381 of file accel.c.

int viafb_setup_engine ( struct fb_info info)

Definition at line 318 of file accel.c.

void viafb_show_hw_cursor ( struct fb_info info,
int  Status 
)

Definition at line 492 of file accel.c.

void viafb_wait_engine_idle ( struct fb_info info)

Definition at line 517 of file accel.c.