Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
tdfx.h File Reference
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>

Go to the source code of this file.

Macros

#define STATUS   0x00
 
#define PCIINIT0   0x04
 
#define SIPMONITOR   0x08
 
#define LFBMEMORYCONFIG   0x0c
 
#define MISCINIT0   0x10
 
#define MISCINIT1   0x14
 
#define DRAMINIT0   0x18
 
#define DRAMINIT1   0x1c
 
#define AGPINIT   0x20
 
#define TMUGBEINIT   0x24
 
#define VGAINIT0   0x28
 
#define VGAINIT1   0x2c
 
#define DRAMCOMMAND   0x30
 
#define DRAMDATA   0x34
 
#define PLLCTRL0   0x40
 
#define PLLCTRL1   0x44
 
#define PLLCTRL2   0x48
 
#define DACMODE   0x4c
 
#define DACADDR   0x50
 
#define DACDATA   0x54
 
#define RGBMAXDELTA   0x58
 
#define VIDPROCCFG   0x5c
 
#define HWCURPATADDR   0x60
 
#define HWCURLOC   0x64
 
#define HWCURC0   0x68
 
#define HWCURC1   0x6c
 
#define VIDINFORMAT   0x70
 
#define VIDINSTATUS   0x74
 
#define VIDSERPARPORT   0x78
 
#define VIDINXDELTA   0x7c
 
#define VIDININITERR   0x80
 
#define VIDINYDELTA   0x84
 
#define VIDPIXBUFTHOLD   0x88
 
#define VIDCHRMIN   0x8c
 
#define VIDCHRMAX   0x90
 
#define VIDCURLIN   0x94
 
#define VIDSCREENSIZE   0x98
 
#define VIDOVRSTARTCRD   0x9c
 
#define VIDOVRENDCRD   0xa0
 
#define VIDOVRDUDX   0xa4
 
#define VIDOVRDUDXOFF   0xa8
 
#define VIDOVRDVDY   0xac
 
#define VIDOVRDVDYOFF   0xe0
 
#define VIDDESKSTART   0xe4
 
#define VIDDESKSTRIDE   0xe8
 
#define VIDINADDR0   0xec
 
#define VIDINADDR1   0xf0
 
#define VIDINADDR2   0xf4
 
#define VIDINSTRIDE   0xf8
 
#define VIDCUROVRSTART   0xfc
 
#define INTCTRL   (0x00100000 + 0x04)
 
#define CLIP0MIN   (0x00100000 + 0x08)
 
#define CLIP0MAX   (0x00100000 + 0x0c)
 
#define DSTBASE   (0x00100000 + 0x10)
 
#define DSTFORMAT   (0x00100000 + 0x14)
 
#define SRCBASE   (0x00100000 + 0x34)
 
#define COMMANDEXTRA_2D   (0x00100000 + 0x38)
 
#define CLIP1MIN   (0x00100000 + 0x4c)
 
#define CLIP1MAX   (0x00100000 + 0x50)
 
#define SRCFORMAT   (0x00100000 + 0x54)
 
#define SRCSIZE   (0x00100000 + 0x58)
 
#define SRCXY   (0x00100000 + 0x5c)
 
#define COLORBACK   (0x00100000 + 0x60)
 
#define COLORFORE   (0x00100000 + 0x64)
 
#define DSTSIZE   (0x00100000 + 0x68)
 
#define DSTXY   (0x00100000 + 0x6c)
 
#define COMMAND_2D   (0x00100000 + 0x70)
 
#define LAUNCH_2D   (0x00100000 + 0x80)
 
#define COMMAND_3D   (0x00200000 + 0x120)
 
#define TDFX_ROP_COPY   0xcc /* src */
 
#define TDFX_ROP_INVERT   0x55 /* NOT dst */
 
#define TDFX_ROP_XOR   0x66 /* src XOR dst */
 
#define AUTOINC_DSTX   BIT(10)
 
#define AUTOINC_DSTY   BIT(11)
 
#define COMMAND_2D_FILLRECT   0x05
 
#define COMMAND_2D_S2S_BITBLT   0x01 /* screen to screen */
 
#define COMMAND_2D_H2S_BITBLT   0x03 /* host to screen */
 
#define COMMAND_3D_NOP   0x00
 
#define STATUS_RETRACE   BIT(6)
 
#define STATUS_BUSY   BIT(9)
 
#define MISCINIT1_CLUT_INV   BIT(0)
 
#define MISCINIT1_2DBLOCK_DIS   BIT(15)
 
#define DRAMINIT0_SGRAM_NUM   BIT(26)
 
#define DRAMINIT0_SGRAM_TYPE   BIT(27)
 
#define DRAMINIT0_SGRAM_TYPE_MASK   (BIT(27) | BIT(28) | BIT(29))
 
#define DRAMINIT0_SGRAM_TYPE_SHIFT   27
 
#define DRAMINIT1_MEM_SDRAM   BIT(30)
 
#define VGAINIT0_VGA_DISABLE   BIT(0)
 
#define VGAINIT0_EXT_TIMING   BIT(1)
 
#define VGAINIT0_8BIT_DAC   BIT(2)
 
#define VGAINIT0_EXT_ENABLE   BIT(6)
 
#define VGAINIT0_WAKEUP_3C3   BIT(8)
 
#define VGAINIT0_LEGACY_DISABLE   BIT(9)
 
#define VGAINIT0_ALT_READBACK   BIT(10)
 
#define VGAINIT0_FAST_BLINK   BIT(11)
 
#define VGAINIT0_EXTSHIFTOUT   BIT(12)
 
#define VGAINIT0_DECODE_3C6   BIT(13)
 
#define VGAINIT0_SGRAM_HBLANK_DISABLE   BIT(22)
 
#define VGAINIT1_MASK   0x1fffff
 
#define VIDCFG_VIDPROC_ENABLE   BIT(0)
 
#define VIDCFG_CURS_X11   BIT(1)
 
#define VIDCFG_INTERLACE   BIT(3)
 
#define VIDCFG_HALF_MODE   BIT(4)
 
#define VIDCFG_DESK_ENABLE   BIT(7)
 
#define VIDCFG_CLUT_BYPASS   BIT(10)
 
#define VIDCFG_2X   BIT(26)
 
#define VIDCFG_HWCURSOR_ENABLE   BIT(27)
 
#define VIDCFG_PIXFMT_SHIFT   18
 
#define DACMODE_2X   BIT(0)
 
#define DDC_ENAB   0x00040000
 
#define DDC_SCL_OUT   0x00080000
 
#define DDC_SDA_OUT   0x00100000
 
#define DDC_SCL_IN   0x00200000
 
#define DDC_SDA_IN   0x00400000
 
#define I2C_ENAB   0x00800000
 
#define I2C_SCL_OUT   0x01000000
 
#define I2C_SDA_OUT   0x02000000
 
#define I2C_SCL_IN   0x04000000
 
#define I2C_SDA_IN   0x08000000
 
#define MISC_W   0x3c2
 
#define MISC_R   0x3cc
 
#define SEQ_I   0x3c4
 
#define SEQ_D   0x3c5
 
#define CRT_I   0x3d4
 
#define CRT_D   0x3d5
 
#define ATT_IW   0x3c0
 
#define IS1_R   0x3da
 
#define GRA_I   0x3ce
 
#define GRA_D   0x3cf
 

Macro Definition Documentation

#define AGPINIT   0x20

Definition at line 16 of file tdfx.h.

#define ATT_IW   0x3c0

Definition at line 148 of file tdfx.h.

#define AUTOINC_DSTX   BIT(10)

Definition at line 90 of file tdfx.h.

#define AUTOINC_DSTY   BIT(11)

Definition at line 91 of file tdfx.h.

#define CLIP0MAX   (0x00100000 + 0x0c)

Definition at line 64 of file tdfx.h.

#define CLIP0MIN   (0x00100000 + 0x08)

Definition at line 63 of file tdfx.h.

#define CLIP1MAX   (0x00100000 + 0x50)

Definition at line 70 of file tdfx.h.

#define CLIP1MIN   (0x00100000 + 0x4c)

Definition at line 69 of file tdfx.h.

#define COLORBACK   (0x00100000 + 0x60)

Definition at line 74 of file tdfx.h.

#define COLORFORE   (0x00100000 + 0x64)

Definition at line 75 of file tdfx.h.

#define COMMAND_2D   (0x00100000 + 0x70)

Definition at line 78 of file tdfx.h.

#define COMMAND_2D_FILLRECT   0x05

Definition at line 92 of file tdfx.h.

#define COMMAND_2D_H2S_BITBLT   0x03 /* host to screen */

Definition at line 94 of file tdfx.h.

#define COMMAND_2D_S2S_BITBLT   0x01 /* screen to screen */

Definition at line 93 of file tdfx.h.

#define COMMAND_3D   (0x00200000 + 0x120)

Definition at line 81 of file tdfx.h.

#define COMMAND_3D_NOP   0x00

Definition at line 96 of file tdfx.h.

#define COMMANDEXTRA_2D   (0x00100000 + 0x38)

Definition at line 68 of file tdfx.h.

#define CRT_D   0x3d5

Definition at line 147 of file tdfx.h.

#define CRT_I   0x3d4

Definition at line 146 of file tdfx.h.

#define DACADDR   0x50

Definition at line 28 of file tdfx.h.

#define DACDATA   0x54

Definition at line 29 of file tdfx.h.

#define DACMODE   0x4c

Definition at line 27 of file tdfx.h.

#define DACMODE_2X   BIT(0)

Definition at line 127 of file tdfx.h.

#define DDC_ENAB   0x00040000

Definition at line 130 of file tdfx.h.

#define DDC_SCL_IN   0x00200000

Definition at line 133 of file tdfx.h.

#define DDC_SCL_OUT   0x00080000

Definition at line 131 of file tdfx.h.

#define DDC_SDA_IN   0x00400000

Definition at line 134 of file tdfx.h.

#define DDC_SDA_OUT   0x00100000

Definition at line 132 of file tdfx.h.

#define DRAMCOMMAND   0x30

Definition at line 20 of file tdfx.h.

#define DRAMDATA   0x34

Definition at line 21 of file tdfx.h.

#define DRAMINIT0   0x18

Definition at line 14 of file tdfx.h.

#define DRAMINIT0_SGRAM_NUM   BIT(26)

Definition at line 101 of file tdfx.h.

#define DRAMINIT0_SGRAM_TYPE   BIT(27)

Definition at line 102 of file tdfx.h.

#define DRAMINIT0_SGRAM_TYPE_MASK   (BIT(27) | BIT(28) | BIT(29))

Definition at line 103 of file tdfx.h.

#define DRAMINIT0_SGRAM_TYPE_SHIFT   27

Definition at line 104 of file tdfx.h.

#define DRAMINIT1   0x1c

Definition at line 15 of file tdfx.h.

#define DRAMINIT1_MEM_SDRAM   BIT(30)

Definition at line 105 of file tdfx.h.

#define DSTBASE   (0x00100000 + 0x10)

Definition at line 65 of file tdfx.h.

#define DSTFORMAT   (0x00100000 + 0x14)

Definition at line 66 of file tdfx.h.

#define DSTSIZE   (0x00100000 + 0x68)

Definition at line 76 of file tdfx.h.

#define DSTXY   (0x00100000 + 0x6c)

Definition at line 77 of file tdfx.h.

#define GRA_D   0x3cf

Definition at line 151 of file tdfx.h.

#define GRA_I   0x3ce

Definition at line 150 of file tdfx.h.

#define HWCURC0   0x68

Definition at line 34 of file tdfx.h.

#define HWCURC1   0x6c

Definition at line 35 of file tdfx.h.

#define HWCURLOC   0x64

Definition at line 33 of file tdfx.h.

#define HWCURPATADDR   0x60

Definition at line 32 of file tdfx.h.

#define I2C_ENAB   0x00800000

Definition at line 135 of file tdfx.h.

#define I2C_SCL_IN   0x04000000

Definition at line 138 of file tdfx.h.

#define I2C_SCL_OUT   0x01000000

Definition at line 136 of file tdfx.h.

#define I2C_SDA_IN   0x08000000

Definition at line 139 of file tdfx.h.

#define I2C_SDA_OUT   0x02000000

Definition at line 137 of file tdfx.h.

#define INTCTRL   (0x00100000 + 0x04)

Definition at line 62 of file tdfx.h.

#define IS1_R   0x3da

Definition at line 149 of file tdfx.h.

#define LAUNCH_2D   (0x00100000 + 0x80)

Definition at line 79 of file tdfx.h.

#define LFBMEMORYCONFIG   0x0c

Definition at line 11 of file tdfx.h.

#define MISC_R   0x3cc

Definition at line 143 of file tdfx.h.

#define MISC_W   0x3c2

Definition at line 142 of file tdfx.h.

#define MISCINIT0   0x10

Definition at line 12 of file tdfx.h.

#define MISCINIT1   0x14

Definition at line 13 of file tdfx.h.

#define MISCINIT1_2DBLOCK_DIS   BIT(15)

Definition at line 100 of file tdfx.h.

#define MISCINIT1_CLUT_INV   BIT(0)

Definition at line 99 of file tdfx.h.

#define PCIINIT0   0x04

Definition at line 9 of file tdfx.h.

#define PLLCTRL0   0x40

Definition at line 24 of file tdfx.h.

#define PLLCTRL1   0x44

Definition at line 25 of file tdfx.h.

#define PLLCTRL2   0x48

Definition at line 26 of file tdfx.h.

#define RGBMAXDELTA   0x58

Definition at line 30 of file tdfx.h.

#define SEQ_D   0x3c5

Definition at line 145 of file tdfx.h.

#define SEQ_I   0x3c4

Definition at line 144 of file tdfx.h.

#define SIPMONITOR   0x08

Definition at line 10 of file tdfx.h.

#define SRCBASE   (0x00100000 + 0x34)

Definition at line 67 of file tdfx.h.

#define SRCFORMAT   (0x00100000 + 0x54)

Definition at line 71 of file tdfx.h.

#define SRCSIZE   (0x00100000 + 0x58)

Definition at line 72 of file tdfx.h.

#define SRCXY   (0x00100000 + 0x5c)

Definition at line 73 of file tdfx.h.

#define STATUS   0x00

Definition at line 8 of file tdfx.h.

#define STATUS_BUSY   BIT(9)

Definition at line 98 of file tdfx.h.

#define STATUS_RETRACE   BIT(6)

Definition at line 97 of file tdfx.h.

#define TDFX_ROP_COPY   0xcc /* src */

Definition at line 86 of file tdfx.h.

#define TDFX_ROP_INVERT   0x55 /* NOT dst */

Definition at line 87 of file tdfx.h.

#define TDFX_ROP_XOR   0x66 /* src XOR dst */

Definition at line 88 of file tdfx.h.

#define TMUGBEINIT   0x24

Definition at line 17 of file tdfx.h.

#define VGAINIT0   0x28

Definition at line 18 of file tdfx.h.

#define VGAINIT0_8BIT_DAC   BIT(2)

Definition at line 108 of file tdfx.h.

#define VGAINIT0_ALT_READBACK   BIT(10)

Definition at line 112 of file tdfx.h.

#define VGAINIT0_DECODE_3C6   BIT(13)

Definition at line 115 of file tdfx.h.

#define VGAINIT0_EXT_ENABLE   BIT(6)

Definition at line 109 of file tdfx.h.

#define VGAINIT0_EXT_TIMING   BIT(1)

Definition at line 107 of file tdfx.h.

#define VGAINIT0_EXTSHIFTOUT   BIT(12)

Definition at line 114 of file tdfx.h.

#define VGAINIT0_FAST_BLINK   BIT(11)

Definition at line 113 of file tdfx.h.

#define VGAINIT0_LEGACY_DISABLE   BIT(9)

Definition at line 111 of file tdfx.h.

#define VGAINIT0_SGRAM_HBLANK_DISABLE   BIT(22)

Definition at line 116 of file tdfx.h.

#define VGAINIT0_VGA_DISABLE   BIT(0)

Definition at line 106 of file tdfx.h.

#define VGAINIT0_WAKEUP_3C3   BIT(8)

Definition at line 110 of file tdfx.h.

#define VGAINIT1   0x2c

Definition at line 19 of file tdfx.h.

#define VGAINIT1_MASK   0x1fffff

Definition at line 117 of file tdfx.h.

#define VIDCFG_2X   BIT(26)

Definition at line 124 of file tdfx.h.

#define VIDCFG_CLUT_BYPASS   BIT(10)

Definition at line 123 of file tdfx.h.

#define VIDCFG_CURS_X11   BIT(1)

Definition at line 119 of file tdfx.h.

#define VIDCFG_DESK_ENABLE   BIT(7)

Definition at line 122 of file tdfx.h.

#define VIDCFG_HALF_MODE   BIT(4)

Definition at line 121 of file tdfx.h.

#define VIDCFG_HWCURSOR_ENABLE   BIT(27)

Definition at line 125 of file tdfx.h.

#define VIDCFG_INTERLACE   BIT(3)

Definition at line 120 of file tdfx.h.

#define VIDCFG_PIXFMT_SHIFT   18

Definition at line 126 of file tdfx.h.

#define VIDCFG_VIDPROC_ENABLE   BIT(0)

Definition at line 118 of file tdfx.h.

#define VIDCHRMAX   0x90

Definition at line 44 of file tdfx.h.

#define VIDCHRMIN   0x8c

Definition at line 43 of file tdfx.h.

#define VIDCURLIN   0x94

Definition at line 45 of file tdfx.h.

#define VIDCUROVRSTART   0xfc

Definition at line 60 of file tdfx.h.

#define VIDDESKSTART   0xe4

Definition at line 54 of file tdfx.h.

#define VIDDESKSTRIDE   0xe8

Definition at line 55 of file tdfx.h.

#define VIDINADDR0   0xec

Definition at line 56 of file tdfx.h.

#define VIDINADDR1   0xf0

Definition at line 57 of file tdfx.h.

#define VIDINADDR2   0xf4

Definition at line 58 of file tdfx.h.

#define VIDINFORMAT   0x70

Definition at line 36 of file tdfx.h.

#define VIDININITERR   0x80

Definition at line 40 of file tdfx.h.

#define VIDINSTATUS   0x74

Definition at line 37 of file tdfx.h.

#define VIDINSTRIDE   0xf8

Definition at line 59 of file tdfx.h.

#define VIDINXDELTA   0x7c

Definition at line 39 of file tdfx.h.

#define VIDINYDELTA   0x84

Definition at line 41 of file tdfx.h.

#define VIDOVRDUDX   0xa4

Definition at line 49 of file tdfx.h.

#define VIDOVRDUDXOFF   0xa8

Definition at line 50 of file tdfx.h.

#define VIDOVRDVDY   0xac

Definition at line 51 of file tdfx.h.

#define VIDOVRDVDYOFF   0xe0

Definition at line 53 of file tdfx.h.

#define VIDOVRENDCRD   0xa0

Definition at line 48 of file tdfx.h.

#define VIDOVRSTARTCRD   0x9c

Definition at line 47 of file tdfx.h.

#define VIDPIXBUFTHOLD   0x88

Definition at line 42 of file tdfx.h.

#define VIDPROCCFG   0x5c

Definition at line 31 of file tdfx.h.

#define VIDSCREENSIZE   0x98

Definition at line 46 of file tdfx.h.

#define VIDSERPARPORT   0x78

Definition at line 38 of file tdfx.h.