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