1 |
|
---|
2 | #include "xf86RamDac.h"
|
---|
3 |
|
---|
4 | RamDacHelperRecPtr BTramdacProbe(ScrnInfoPtr pScrn, RamDacSupportedInfoRecPtr ramdacs);
|
---|
5 | void BTramdacSave(ScrnInfoPtr pScrn, RamDacRecPtr RamDacRec, RamDacRegRecPtr RamDacRegRec);
|
---|
6 | void BTramdacRestore(ScrnInfoPtr pScrn, RamDacRecPtr RamDacRec, RamDacRegRecPtr RamDacRegRec);
|
---|
7 | void BTramdacSetBpp(ScrnInfoPtr pScrn, RamDacRegRecPtr RamDacRegRec);
|
---|
8 |
|
---|
9 | #define ATT20C504_RAMDAC (VENDOR_BT << 16) | 0x00
|
---|
10 | #define ATT20C505_RAMDAC (VENDOR_BT << 16) | 0x01
|
---|
11 | #define BT485_RAMDAC (VENDOR_BT << 16) | 0x02
|
---|
12 |
|
---|
13 | /*
|
---|
14 | * BT registers
|
---|
15 | */
|
---|
16 |
|
---|
17 | #define BT_WRITE_ADDR 0x00
|
---|
18 | #define BT_RAMDAC_DATA 0x01
|
---|
19 | #define BT_PIXEL_MASK 0x02
|
---|
20 | #define BT_READ_ADDR 0x03
|
---|
21 | #define BT_CURS_WR_ADDR 0x04
|
---|
22 | #define BT_CURS_DATA 0x05
|
---|
23 | #define BT_COMMAND_REG_0 0x06
|
---|
24 | #define BT_CURS_RD_ADDR 0x07
|
---|
25 | #define BT_COMMAND_REG_1 0x08
|
---|
26 | #define BT_COMMAND_REG_2 0x09
|
---|
27 | #define BT_STATUS_REG 0x0A
|
---|
28 | #define BT_CURS_RAM_DATA 0x0B
|
---|
29 | #define BT_CURS_X_LOW 0x0C
|
---|
30 | #define BT_CURS_X_HIGH 0x0D
|
---|
31 | #define BT_CURS_Y_LOW 0x0E
|
---|
32 | #define BT_CURS_Y_HIGH 0x0F
|
---|