summaryrefslogtreecommitdiff
path: root/src/smi_501.h
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-13 18:00:46 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-13 18:00:46 -0200
commitd2709b1af22a06b24606ec8c01f39f1ca27ca8d3 (patch)
tree8fba29fadaf94fd0d9344cc78cd3f71628b2e244 /src/smi_501.h
parent0870d46718fe4e01953efd63cec46c54140b20f9 (diff)
Enable gamma correction on the MSOC.
Diffstat (limited to 'src/smi_501.h')
-rw-r--r--src/smi_501.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/smi_501.h b/src/smi_501.h
index 9aff70c..8f46a0d 100644
--- a/src/smi_501.h
+++ b/src/smi_501.h
@@ -395,6 +395,10 @@ typedef struct _MSOCRegRec {
* 2:2 Panel Graphics Plane Enable.
* 0: Disable panel graphics plane.
* 1: Enable panel graphics plane.
+ * 3:3 Enable Gamma Control. Gamma control can only
+ * be enabled in RGB 5:6:5 and RGB 8:8:8 modes.
+ * 0: Disable.
+ * 1: Enable.
* 8:8 Enable Panel Timing.
* 0: Disable panel timing.
* 1: Enable panel timing.
@@ -421,7 +425,8 @@ typedef struct _MSOCRegRec {
struct {
int32_t format : bits( 0, 1);
int32_t enable : bits( 2, 2);
- int32_t u0 : bits( 3, 7);
+ int32_t gamma : bits( 3, 3);
+ int32_t u0 : bits( 4, 7);
int32_t timing : bits( 8, 8);
int32_t u1 : bits( 9, 11);
int32_t hsync : bits(12, 12);