VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.0/xorg/TI.h@ 17234

Last change on this file since 17234 was 17234, checked in by vboxsync, 16 years ago

Additions/x11/x11include: blast! Corrected svn:keywords property on all files as per http://linserv.germany/vbox/wiki/SvnKeywords

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/ramdac/TI.h,v 1.4 2000/05/02 21:04:46 alanh Exp $ */
2
3#include <xf86RamDac.h>
4
5unsigned long TIramdacCalculateMNPForClock(unsigned long RefClock,
6 unsigned long ReqClock, char IsPixClock, unsigned long MinClock,
7 unsigned long MaxClock, unsigned long *rM, unsigned long *rN,
8 unsigned long *rP);
9RamDacHelperRecPtr TIramdacProbe(ScrnInfoPtr pScrn, RamDacSupportedInfoRecPtr ramdacs);
10void TIramdacSave(ScrnInfoPtr pScrn, RamDacRecPtr RamDacRec, RamDacRegRecPtr RamDacRegRec);
11void TIramdacRestore(ScrnInfoPtr pScrn, RamDacRecPtr RamDacRec, RamDacRegRecPtr RamDacRegRec);
12void TIramdac3026SetBpp(ScrnInfoPtr pScrn, RamDacRegRecPtr RamDacRegRec);
13void TIramdac3030SetBpp(ScrnInfoPtr pScrn, RamDacRegRecPtr RamDacRegRec);
14unsigned long TIramdac3030CalculateMNPForClock(unsigned long RefClock,
15 unsigned long ReqClock, char IsPixClock, unsigned long MinClock,
16 unsigned long MaxClock, unsigned long *rM, unsigned long *rN,
17 unsigned long *rP);
18void TIramdacHWCursorInit(xf86CursorInfoPtr infoPtr);
19void TIramdacLoadPalette( ScrnInfoPtr pScrn, int numColors, int *indices,
20 LOCO *colors, VisualPtr pVisual);
21
22typedef void TIramdacLoadPaletteProc(ScrnInfoPtr, int, int *, LOCO *,
23 VisualPtr);
24TIramdacLoadPaletteProc *TIramdacLoadPaletteWeak(void);
25
26#define TI3030_RAMDAC (VENDOR_TI << 16) | 0x00
27#define TI3026_RAMDAC (VENDOR_TI << 16) | 0x01
28
29/*
30 * TI Ramdac registers
31 */
32
33#define TIDAC_rev 0x01
34#define TIDAC_ind_curs_ctrl 0x06
35#define TIDAC_byte_router_ctrl 0x07
36#define TIDAC_latch_ctrl 0x0f
37#define TIDAC_true_color_ctrl 0x18
38#define TIDAC_multiplex_ctrl 0x19
39#define TIDAC_clock_select 0x1a
40#define TIDAC_palette_page 0x1c
41#define TIDAC_general_ctrl 0x1d
42#define TIDAC_misc_ctrl 0x1e
43#define TIDAC_pll_addr 0x2c
44#define TIDAC_pll_pixel_data 0x2d
45#define TIDAC_pll_memory_data 0x2e
46#define TIDAC_pll_loop_data 0x2f
47#define TIDAC_key_over_low 0x30
48#define TIDAC_key_over_high 0x31
49#define TIDAC_key_red_low 0x32
50#define TIDAC_key_red_high 0x33
51#define TIDAC_key_green_low 0x34
52#define TIDAC_key_green_high 0x35
53#define TIDAC_key_blue_low 0x36
54#define TIDAC_key_blue_high 0x37
55#define TIDAC_key_ctrl 0x38
56#define TIDAC_clock_ctrl 0x39
57#define TIDAC_sense_test 0x3a
58#define TIDAC_test_mode_data 0x3b
59#define TIDAC_crc_remain_lsb 0x3c
60#define TIDAC_crc_remain_msb 0x3d
61#define TIDAC_crc_bit_select 0x3e
62#define TIDAC_id 0x3f
63
64/* These are pll values that are accessed via TIDAC_pll_pixel_data */
65#define TIDAC_PIXEL_N 0x80
66#define TIDAC_PIXEL_M 0x81
67#define TIDAC_PIXEL_P 0x82
68#define TIDAC_PIXEL_VALID 0x83
69
70/* These are pll values that are accessed via TIDAC_pll_loop_data */
71#define TIDAC_LOOP_N 0x90
72#define TIDAC_LOOP_M 0x91
73#define TIDAC_LOOP_P 0x92
74#define TIDAC_LOOP_VALID 0x93
75
76/* Direct mapping addresses */
77#define TIDAC_INDEX 0xa0
78#define TIDAC_PALETTE_DATA 0xa1
79#define TIDAC_READ_MASK 0xa2
80#define TIDAC_READ_ADDR 0xa3
81#define TIDAC_CURS_WRITE_ADDR 0xa4
82#define TIDAC_CURS_COLOR 0xa5
83#define TIDAC_CURS_READ_ADDR 0xa7
84#define TIDAC_CURS_CTL 0xa9
85#define TIDAC_INDEXED_DATA 0xaa
86#define TIDAC_CURS_RAM_DATA 0xab
87#define TIDAC_CURS_XLOW 0xac
88#define TIDAC_CURS_XHIGH 0xad
89#define TIDAC_CURS_YLOW 0xae
90#define TIDAC_CURS_YHIGH 0xaf
91
92#define TIDAC_sw_reset 0xff
93
94/* Constants */
95#define TIDAC_TVP_3026_ID 0x26
96#define TIDAC_TVP_3030_ID 0x30
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette