diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-08-09 22:44:44 -0400 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-09-23 22:14:50 -0400 |
commit | 18d9dc08b22145adb248d16dd2cefb2ccf9f7665 (patch) | |
tree | d08dc3ce61e4f1c0cc69d5d876ed8e32a1377708 /drivers/video/via/hw.h | |
parent | 661c65cd0ce180d5e3a3e05f08fc9e64cedcf91c (diff) |
viafb: add new output device management
This patch adds a new output device management that stores for each
IGA which output devices are routed to it and a compatiblity layer
that converts the old per-output device values in the new format.
Bounding the output devices to each IGA is a central idea of the
cleanup. Doing it this way should be easier and make much more sense
than the old format which happily mixed different output devices
together and did not even take into account that some devices are no
longer available on newer chipsets.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
Diffstat (limited to 'drivers/video/via/hw.h')
-rw-r--r-- | drivers/video/via/hw.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/via/hw.h b/drivers/video/via/hw.h index 39f3a69bbbd8..c52a1d5f092d 100644 --- a/drivers/video/via/hw.h +++ b/drivers/video/via/hw.h | |||
@@ -30,6 +30,15 @@ | |||
30 | #define viafb_write_reg(i, p, d) via_write_reg(p, i, d) | 30 | #define viafb_write_reg(i, p, d) via_write_reg(p, i, d) |
31 | #define viafb_write_reg_mask(i, p, d, m) via_write_reg_mask(p, i, d, m) | 31 | #define viafb_write_reg_mask(i, p, d, m) via_write_reg_mask(p, i, d, m) |
32 | 32 | ||
33 | /* VIA output devices */ | ||
34 | #define VIA_6C 0x00000001 | ||
35 | #define VIA_93 0x00000002 | ||
36 | #define VIA_96 0x00000004 | ||
37 | #define VIA_CRT 0x00000010 | ||
38 | #define VIA_DVP1 0x00000020 | ||
39 | #define VIA_LVDS1 0x00000040 | ||
40 | #define VIA_LVDS2 0x00000080 | ||
41 | |||
33 | /*************************************************** | 42 | /*************************************************** |
34 | * Definition IGA1 Design Method of CRTC Registers * | 43 | * Definition IGA1 Design Method of CRTC Registers * |
35 | ****************************************************/ | 44 | ****************************************************/ |