tgareg.h File Reference

Back to the index.

Macros | Typedefs
tgareg.h File Reference

Go to the source code of this file.

Macros

#define TGA_PCIREG_PVRR   0x40 /* PCI Address Extension Register */
 
#define TGA_PCIREG_PAER   0x44 /* PCI VGA Redirect Register */
 
#define TGA_MEM_ALTROM   0x0000000 /* 0MB -- Alternate ROM space */
 
#define TGA2_MEM_EXTDEV   0x0000000 /* 0MB -- External Device Access */
 
#define TGA_MEM_CREGS   0x0100000 /* 1MB -- Core Registers */
 
#define TGA_CREGS_SIZE   0x0100000 /* Core registers occupy 1MB */
 
#define TGA_CREGS_ALIAS   0x0000400 /* Register copies every 1kB */
 
#define TGA2_MEM_CLOCK   0x0060000 /* TGA2 Clock access */
 
#define TGA2_MEM_RAMDAC   0x0080000 /* TGA2 RAMDAC access */
 
#define TGA_REG_GCBR0   0x000 /* Copy buffer 0 */
 
#define TGA_REG_GCBR1   0x001 /* Copy buffer 1 */
 
#define TGA_REG_GCBR2   0x002 /* Copy buffer 2 */
 
#define TGA_REG_GCBR3   0x003 /* Copy buffer 3 */
 
#define TGA_REG_GCBR4   0x004 /* Copy buffer 4 */
 
#define TGA_REG_GCBR5   0x005 /* Copy buffer 5 */
 
#define TGA_REG_GCBR6   0x006 /* Copy buffer 6 */
 
#define TGA_REG_GCBR7   0x007 /* Copy buffer 7 */
 
#define TGA_REG_GFGR   0x008 /* Foreground */
 
#define TGA_REG_GBGR   0x009 /* Background */
 
#define TGA_REG_GPMR   0x00a /* Plane Mask */
 
#define TGA_REG_GPXR_S   0x00b /* Pixel Mask (one-shot) */
 
#define TGA_REG_GMOR   0x00c /* Mode */
 
#define TGA_REG_GOPR   0x00d /* Raster Operation */
 
#define TGA_REG_GPSR   0x00e /* Pixel Shift */
 
#define TGA_REG_GADR   0x00f /* Address */
 
#define TGA_REG_GB1R   0x010 /* Bresenham 1 */
 
#define TGA_REG_GB2R   0x011 /* Bresenham 2 */
 
#define TGA_REG_GB3R   0x012 /* Bresenham 3 */
 
#define TGA_REG_GCTR   0x013 /* Continue */
 
#define TGA_REG_GDER   0x014 /* Deep */
 
#define TGA_REG_GREV
 
#define TGA_REG_GSMR   0x016 /* Stencil Mode */
 
#define TGA_REG_GPXR_P   0x017 /* Pixel Mask (persistent) */
 
#define TGA_REG_CCBR   0x018 /* Cursor Base Address */
 
#define TGA_REG_VHCR   0x019 /* Horizontal Control */
 
#define TGA_REG_VVCR   0x01a /* Vertical Control */
 
#define TGA_REG_VVBR   0x01b /* Video Base Address */
 
#define TGA_REG_VVVR   0x01c /* Video Valid */
 
#define TGA_REG_CXYR   0x01d /* Cursor XY */
 
#define TGA_REG_VSAR   0x01e /* Video Shift Address */
 
#define TGA_REG_SISR   0x01f /* Interrupt Status */
 
#define TGA_REG_GDAR   0x020 /* Data */
 
#define TGA_REG_GRIR   0x021 /* Red Increment */
 
#define TGA_REG_GGIR   0x022 /* Green Increment */
 
#define TGA_REG_GBIR   0x023 /* Blue Increment */
 
#define TGA_REG_GZIR_L   0x024 /* Z-increment Low */
 
#define TGA_REG_GZIR_H   0x025 /* Z-Increment High */
 
#define TGA_REG_GDBR   0x026 /* DMA Base Address */
 
#define TGA_REG_GBWR   0x027 /* Bresenham Width */
 
#define TGA_REG_GZVR_L   0x028 /* Z-value Low */
 
#define TGA_REG_GZVR_H   0x029 /* Z-value High */
 
#define TGA_REG_GZBR   0x02a /* Z-base address */
 
#define TGA_REG_GRVR   0x02c /* Red Value */
 
#define TGA_REG_GGVR   0x02d /* Green Value */
 
#define TGA_REG_GBVR   0x02e /* Blue Value */
 
#define TGA_REG_GSWR   0x02f /* Span Width */
 
#define TGA_REG_EPSR   0x030 /* Pallete and DAC Setup */
 
#define TGA_REG_GSNR0   0x040 /* Slope-no-go 0 */
 
#define TGA_REG_GSNR1   0x041 /* Slope-no-go 1 */
 
#define TGA_REG_GSNR2   0x042 /* Slope-no-go 2 */
 
#define TGA_REG_GSNR3   0x043 /* Slope-no-go 3 */
 
#define TGA_REG_GSNR4   0x044 /* Slope-no-go 4 */
 
#define TGA_REG_GSNR5   0x045 /* Slope-no-go 5 */
 
#define TGA_REG_GSNR6   0x046 /* Slope-no-go 6 */
 
#define TGA_REG_GSNR7   0x047 /* Slope-no-go 7 */
 
#define TGA_REG_GSLR0   0x048 /* Slope 0 */
 
#define TGA_REG_GSLR1   0x049 /* Slope 1 */
 
#define TGA_REG_GSLR2   0x04a /* Slope 2 */
 
#define TGA_REG_GSLR3   0x04b /* Slope 3 */
 
#define TGA_REG_GSLR4   0x04c /* Slope 4 */
 
#define TGA_REG_GSLR5   0x04d /* Slope 5 */
 
#define TGA_REG_GSLR6   0x04e /* Slope 6 */
 
#define TGA_REG_GSLR7   0x04f /* Slope 7 */
 
#define TGA_REG_GBCR0   0x050 /* Block Color 0 */
 
#define TGA_REG_GBCR1   0x051 /* Block Color 1 */
 
#define TGA_REG_GBCR2   0x052 /* Block Color 2 */
 
#define TGA_REG_GBCR3   0x053 /* Block Color 3 */
 
#define TGA_REG_GBCR4   0x054 /* Block Color 4 */
 
#define TGA_REG_GBCR5   0x055 /* Block Color 5 */
 
#define TGA_REG_GBCR6   0x056 /* Block Color 6 */
 
#define TGA_REG_GBCR7   0x057 /* Block Color 7 */
 
#define TGA_REG_GCSR   0x058 /* Copy 64 Source */
 
#define TGA_REG_GCDR   0x059 /* Copy 64 Destination */
 
#define TGA_REG_ERWR   0x078 /* EEPROM write */
 
#define TGA_REG_ECGR   0x07a /* Clock */
 
#define TGA_REG_EPDR   0x07c /* Pallete and DAC Data */
 
#define TGA_REG_SCSR   0x07e /* Command Status */
 
#define VVR_VIDEOVALID   0x00000001 /* 0 VGA, 1 TGA2 (TGA2 only) */
 
#define VVR_BLANK   0x00000002 /* 0 active, 1 blank */
 
#define VVR_CURSOR   0x00000004 /* 0 disable, 1 enable (TGA2 R/O) */
 
#define VVR_INTERLACE   0x00000008 /* 0 N/Int, 1 Int. (TGA2 R/O) */
 
#define VVR_DPMS_MASK   0x00000030 /* See "DMPS mask" below */
 
#define VVR_DPMS_SHIFT   4
 
#define VVR_DDC   0x00000040 /* DDC-in pin value (R/O) */
 
#define VVR_TILED   0x00000400 /* 0 linear, 1 tiled (not on TGA2) */
 
#define VVR_LDDLY_MASK
 
#define VVR_LDDLY_SHIFT   16
 

Typedefs

typedef u_int32_t tga_reg_t
 

Macro Definition Documentation

◆ TGA2_MEM_CLOCK

#define TGA2_MEM_CLOCK   0x0060000 /* TGA2 Clock access */

Definition at line 51 of file tgareg.h.

◆ TGA2_MEM_EXTDEV

#define TGA2_MEM_EXTDEV   0x0000000 /* 0MB -- External Device Access */

Definition at line 46 of file tgareg.h.

◆ TGA2_MEM_RAMDAC

#define TGA2_MEM_RAMDAC   0x0080000 /* TGA2 RAMDAC access */

Definition at line 52 of file tgareg.h.

◆ TGA_CREGS_ALIAS

#define TGA_CREGS_ALIAS   0x0000400 /* Register copies every 1kB */

Definition at line 49 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_CREGS_SIZE

#define TGA_CREGS_SIZE   0x0100000 /* Core registers occupy 1MB */

Definition at line 48 of file tgareg.h.

◆ TGA_MEM_ALTROM

#define TGA_MEM_ALTROM   0x0000000 /* 0MB -- Alternate ROM space */

Definition at line 45 of file tgareg.h.

◆ TGA_MEM_CREGS

#define TGA_MEM_CREGS   0x0100000 /* 1MB -- Core Registers */

Definition at line 47 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_PCIREG_PAER

#define TGA_PCIREG_PAER   0x44 /* PCI VGA Redirect Register */

Definition at line 39 of file tgareg.h.

◆ TGA_PCIREG_PVRR

#define TGA_PCIREG_PVRR   0x40 /* PCI Address Extension Register */

Definition at line 37 of file tgareg.h.

◆ TGA_REG_CCBR

#define TGA_REG_CCBR   0x018 /* Cursor Base Address */

Definition at line 90 of file tgareg.h.

◆ TGA_REG_CXYR

#define TGA_REG_CXYR   0x01d /* Cursor XY */

Definition at line 95 of file tgareg.h.

◆ TGA_REG_ECGR

#define TGA_REG_ECGR   0x07a /* Clock */

Definition at line 155 of file tgareg.h.

◆ TGA_REG_EPDR

#define TGA_REG_EPDR   0x07c /* Pallete and DAC Data */

Definition at line 159 of file tgareg.h.

◆ TGA_REG_EPSR

#define TGA_REG_EPSR   0x030 /* Pallete and DAC Setup */

Definition at line 114 of file tgareg.h.

◆ TGA_REG_ERWR

#define TGA_REG_ERWR   0x078 /* EEPROM write */

Definition at line 151 of file tgareg.h.

◆ TGA_REG_GADR

#define TGA_REG_GADR   0x00f /* Address */

Definition at line 78 of file tgareg.h.

◆ TGA_REG_GB1R

#define TGA_REG_GB1R   0x010 /* Bresenham 1 */

Definition at line 80 of file tgareg.h.

◆ TGA_REG_GB2R

#define TGA_REG_GB2R   0x011 /* Bresenham 2 */

Definition at line 81 of file tgareg.h.

◆ TGA_REG_GB3R

#define TGA_REG_GB3R   0x012 /* Bresenham 3 */

Definition at line 82 of file tgareg.h.

◆ TGA_REG_GBCR0

#define TGA_REG_GBCR0   0x050 /* Block Color 0 */

Definition at line 136 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_GBCR1

#define TGA_REG_GBCR1   0x051 /* Block Color 1 */

Definition at line 137 of file tgareg.h.

◆ TGA_REG_GBCR2

#define TGA_REG_GBCR2   0x052 /* Block Color 2 */

Definition at line 138 of file tgareg.h.

◆ TGA_REG_GBCR3

#define TGA_REG_GBCR3   0x053 /* Block Color 3 */

Definition at line 139 of file tgareg.h.

◆ TGA_REG_GBCR4

#define TGA_REG_GBCR4   0x054 /* Block Color 4 */

Definition at line 140 of file tgareg.h.

◆ TGA_REG_GBCR5

#define TGA_REG_GBCR5   0x055 /* Block Color 5 */

Definition at line 141 of file tgareg.h.

◆ TGA_REG_GBCR6

#define TGA_REG_GBCR6   0x056 /* Block Color 6 */

Definition at line 142 of file tgareg.h.

◆ TGA_REG_GBCR7

#define TGA_REG_GBCR7   0x057 /* Block Color 7 */

Definition at line 143 of file tgareg.h.

◆ TGA_REG_GBGR

#define TGA_REG_GBGR   0x009 /* Background */

Definition at line 72 of file tgareg.h.

◆ TGA_REG_GBIR

#define TGA_REG_GBIR   0x023 /* Blue Increment */

Definition at line 101 of file tgareg.h.

◆ TGA_REG_GBVR

#define TGA_REG_GBVR   0x02e /* Blue Value */

Definition at line 112 of file tgareg.h.

◆ TGA_REG_GBWR

#define TGA_REG_GBWR   0x027 /* Bresenham Width */

Definition at line 105 of file tgareg.h.

◆ TGA_REG_GCBR0

#define TGA_REG_GCBR0   0x000 /* Copy buffer 0 */

Definition at line 62 of file tgareg.h.

◆ TGA_REG_GCBR1

#define TGA_REG_GCBR1   0x001 /* Copy buffer 1 */

Definition at line 63 of file tgareg.h.

◆ TGA_REG_GCBR2

#define TGA_REG_GCBR2   0x002 /* Copy buffer 2 */

Definition at line 64 of file tgareg.h.

◆ TGA_REG_GCBR3

#define TGA_REG_GCBR3   0x003 /* Copy buffer 3 */

Definition at line 65 of file tgareg.h.

◆ TGA_REG_GCBR4

#define TGA_REG_GCBR4   0x004 /* Copy buffer 4 */

Definition at line 66 of file tgareg.h.

◆ TGA_REG_GCBR5

#define TGA_REG_GCBR5   0x005 /* Copy buffer 5 */

Definition at line 67 of file tgareg.h.

◆ TGA_REG_GCBR6

#define TGA_REG_GCBR6   0x006 /* Copy buffer 6 */

Definition at line 68 of file tgareg.h.

◆ TGA_REG_GCBR7

#define TGA_REG_GCBR7   0x007 /* Copy buffer 7 */

Definition at line 69 of file tgareg.h.

◆ TGA_REG_GCDR

#define TGA_REG_GCDR   0x059 /* Copy 64 Destination */

Definition at line 146 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_GCSR

#define TGA_REG_GCSR   0x058 /* Copy 64 Source */

Definition at line 145 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_GCTR

#define TGA_REG_GCTR   0x013 /* Continue */

Definition at line 84 of file tgareg.h.

◆ TGA_REG_GDAR

#define TGA_REG_GDAR   0x020 /* Data */

Definition at line 98 of file tgareg.h.

◆ TGA_REG_GDBR

#define TGA_REG_GDBR   0x026 /* DMA Base Address */

Definition at line 104 of file tgareg.h.

◆ TGA_REG_GDER

#define TGA_REG_GDER   0x014 /* Deep */

Definition at line 85 of file tgareg.h.

◆ TGA_REG_GFGR

#define TGA_REG_GFGR   0x008 /* Foreground */

Definition at line 71 of file tgareg.h.

◆ TGA_REG_GGIR

#define TGA_REG_GGIR   0x022 /* Green Increment */

Definition at line 100 of file tgareg.h.

◆ TGA_REG_GGVR

#define TGA_REG_GGVR   0x02d /* Green Value */

Definition at line 111 of file tgareg.h.

◆ TGA_REG_GMOR

#define TGA_REG_GMOR   0x00c /* Mode */

Definition at line 75 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_GOPR

#define TGA_REG_GOPR   0x00d /* Raster Operation */

Definition at line 76 of file tgareg.h.

◆ TGA_REG_GPMR

#define TGA_REG_GPMR   0x00a /* Plane Mask */

Definition at line 73 of file tgareg.h.

◆ TGA_REG_GPSR

#define TGA_REG_GPSR   0x00e /* Pixel Shift */

Definition at line 77 of file tgareg.h.

◆ TGA_REG_GPXR_P

#define TGA_REG_GPXR_P   0x017 /* Pixel Mask (persistent) */

Definition at line 89 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_GPXR_S

#define TGA_REG_GPXR_S   0x00b /* Pixel Mask (one-shot) */

Definition at line 74 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_GREV

#define TGA_REG_GREV
Value:
0x015 /* Start/Version on TGA,
* Revision on TGA2 */

Definition at line 86 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_GRIR

#define TGA_REG_GRIR   0x021 /* Red Increment */

Definition at line 99 of file tgareg.h.

◆ TGA_REG_GRVR

#define TGA_REG_GRVR   0x02c /* Red Value */

Definition at line 110 of file tgareg.h.

◆ TGA_REG_GSLR0

#define TGA_REG_GSLR0   0x048 /* Slope 0 */

Definition at line 127 of file tgareg.h.

◆ TGA_REG_GSLR1

#define TGA_REG_GSLR1   0x049 /* Slope 1 */

Definition at line 128 of file tgareg.h.

◆ TGA_REG_GSLR2

#define TGA_REG_GSLR2   0x04a /* Slope 2 */

Definition at line 129 of file tgareg.h.

◆ TGA_REG_GSLR3

#define TGA_REG_GSLR3   0x04b /* Slope 3 */

Definition at line 130 of file tgareg.h.

◆ TGA_REG_GSLR4

#define TGA_REG_GSLR4   0x04c /* Slope 4 */

Definition at line 131 of file tgareg.h.

◆ TGA_REG_GSLR5

#define TGA_REG_GSLR5   0x04d /* Slope 5 */

Definition at line 132 of file tgareg.h.

◆ TGA_REG_GSLR6

#define TGA_REG_GSLR6   0x04e /* Slope 6 */

Definition at line 133 of file tgareg.h.

◆ TGA_REG_GSLR7

#define TGA_REG_GSLR7   0x04f /* Slope 7 */

Definition at line 134 of file tgareg.h.

◆ TGA_REG_GSMR

#define TGA_REG_GSMR   0x016 /* Stencil Mode */

Definition at line 88 of file tgareg.h.

◆ TGA_REG_GSNR0

#define TGA_REG_GSNR0   0x040 /* Slope-no-go 0 */

Definition at line 118 of file tgareg.h.

◆ TGA_REG_GSNR1

#define TGA_REG_GSNR1   0x041 /* Slope-no-go 1 */

Definition at line 119 of file tgareg.h.

◆ TGA_REG_GSNR2

#define TGA_REG_GSNR2   0x042 /* Slope-no-go 2 */

Definition at line 120 of file tgareg.h.

◆ TGA_REG_GSNR3

#define TGA_REG_GSNR3   0x043 /* Slope-no-go 3 */

Definition at line 121 of file tgareg.h.

◆ TGA_REG_GSNR4

#define TGA_REG_GSNR4   0x044 /* Slope-no-go 4 */

Definition at line 122 of file tgareg.h.

◆ TGA_REG_GSNR5

#define TGA_REG_GSNR5   0x045 /* Slope-no-go 5 */

Definition at line 123 of file tgareg.h.

◆ TGA_REG_GSNR6

#define TGA_REG_GSNR6   0x046 /* Slope-no-go 6 */

Definition at line 124 of file tgareg.h.

◆ TGA_REG_GSNR7

#define TGA_REG_GSNR7   0x047 /* Slope-no-go 7 */

Definition at line 125 of file tgareg.h.

◆ TGA_REG_GSWR

#define TGA_REG_GSWR   0x02f /* Span Width */

Definition at line 113 of file tgareg.h.

◆ TGA_REG_GZBR

#define TGA_REG_GZBR   0x02a /* Z-base address */

Definition at line 108 of file tgareg.h.

◆ TGA_REG_GZIR_H

#define TGA_REG_GZIR_H   0x025 /* Z-Increment High */

Definition at line 103 of file tgareg.h.

◆ TGA_REG_GZIR_L

#define TGA_REG_GZIR_L   0x024 /* Z-increment Low */

Definition at line 102 of file tgareg.h.

◆ TGA_REG_GZVR_H

#define TGA_REG_GZVR_H   0x029 /* Z-value High */

Definition at line 107 of file tgareg.h.

◆ TGA_REG_GZVR_L

#define TGA_REG_GZVR_L   0x028 /* Z-value Low */

Definition at line 106 of file tgareg.h.

◆ TGA_REG_SCSR

#define TGA_REG_SCSR   0x07e /* Command Status */

Definition at line 163 of file tgareg.h.

◆ TGA_REG_SISR

#define TGA_REG_SISR   0x01f /* Interrupt Status */

Definition at line 97 of file tgareg.h.

◆ TGA_REG_VHCR

#define TGA_REG_VHCR   0x019 /* Horizontal Control */

Definition at line 91 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_VSAR

#define TGA_REG_VSAR   0x01e /* Video Shift Address */

Definition at line 96 of file tgareg.h.

◆ TGA_REG_VVBR

#define TGA_REG_VVBR   0x01b /* Video Base Address */

Definition at line 93 of file tgareg.h.

◆ TGA_REG_VVCR

#define TGA_REG_VVCR   0x01a /* Vertical Control */

Definition at line 92 of file tgareg.h.

Referenced by DEVICE_ACCESS().

◆ TGA_REG_VVVR

#define TGA_REG_VVVR   0x01c /* Video Valid */

Definition at line 94 of file tgareg.h.

◆ VVR_BLANK

#define VVR_BLANK   0x00000002 /* 0 active, 1 blank */

Definition at line 171 of file tgareg.h.

◆ VVR_CURSOR

#define VVR_CURSOR   0x00000004 /* 0 disable, 1 enable (TGA2 R/O) */

Definition at line 172 of file tgareg.h.

◆ VVR_DDC

#define VVR_DDC   0x00000040 /* DDC-in pin value (R/O) */

Definition at line 176 of file tgareg.h.

◆ VVR_DPMS_MASK

#define VVR_DPMS_MASK   0x00000030 /* See "DMPS mask" below */

Definition at line 174 of file tgareg.h.

◆ VVR_DPMS_SHIFT

#define VVR_DPMS_SHIFT   4

Definition at line 175 of file tgareg.h.

◆ VVR_INTERLACE

#define VVR_INTERLACE   0x00000008 /* 0 N/Int, 1 Int. (TGA2 R/O) */

Definition at line 173 of file tgareg.h.

◆ VVR_LDDLY_MASK

#define VVR_LDDLY_MASK
Value:
0x01ff0000 /* load delay in quad pixel clock ticks
(not on TGA2) */

Definition at line 178 of file tgareg.h.

◆ VVR_LDDLY_SHIFT

#define VVR_LDDLY_SHIFT   16

Definition at line 180 of file tgareg.h.

◆ VVR_TILED

#define VVR_TILED   0x00000400 /* 0 linear, 1 tiled (not on TGA2) */

Definition at line 177 of file tgareg.h.

◆ VVR_VIDEOVALID

#define VVR_VIDEOVALID   0x00000001 /* 0 VGA, 1 TGA2 (TGA2 only) */

Definition at line 170 of file tgareg.h.

Typedef Documentation

◆ tga_reg_t

typedef u_int32_t tga_reg_t

Definition at line 60 of file tgareg.h.


Generated on Fri Dec 7 2018 19:52:23 for GXemul by doxygen 1.8.13