VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.6.5/TI.h@ 49174

Last change on this file since 49174 was 49174, checked in by vboxsync, 11 years ago

Additions/x11: replace header files for X.Org Server 1.6.0 with those for version 1.6.5 due to an ABI bump in-between.

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