summaryrefslogtreecommitdiff
path: root/src/smi_501.h
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-09-02 18:16:41 -0300
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-09-02 18:16:41 -0300
commitcf5132907e4709c872089fe2d79837b2de4e45b7 (patch)
treebc906cb4c35a838e7a9c8bb76d9f01b0e7c04f39 /src/smi_501.h
parenta2a090e10f031aed6dbf6d143d6ce8abdf7a2392 (diff)
Rename global smi501 functions to have SMI501 prefix.
Functions renamed were setDPMS -> SMI501_SetDPMS, regRead32 -> SMI501_Read32 and regWrite32 -> SMI501_Write32. Also moved SMI_SetDPMS to start of smi_501.c to have extern functions at start of the file.
Diffstat (limited to 'src/smi_501.h')
-rw-r--r--src/smi_501.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/src/smi_501.h b/src/smi_501.h
index 6002fae..06cb1d3 100644
--- a/src/smi_501.h
+++ b/src/smi_501.h
@@ -44,7 +44,7 @@ authorization from the XFree86 Project and Silicon Motion.
/* In Kb - documentation says it is 64Kb... */
#define FB_RESERVE4USB 512
-/* Power constants to use with setDPMS function. */
+/* Power constants to use with SMI501_SetDPMS function. */
typedef enum _DPMS_t {
DPMS_ON,
DPMS_STANDBY,
@@ -215,11 +215,14 @@ typedef enum _panel_state_t {
/******************************************************************************
* F U N C T I O N P R O T O T Y P E S
******************************************************************************/
-/* Set DPMS state. */
-void setDPMS(SMIPtr pSmi, DPMS_t state);
-/* Calculate memory clock settings of input clock. */
+void SMI501_SetDPMS(SMIPtr pSmi, DPMS_t state);
+Bool SMI501_SetMode(ScrnInfoPtr pScrn, DisplayModePtr mode);
+unsigned int SMI501_Read32(SMIPtr pSmi, unsigned int nOffset);
+void SMI501_Write32(SMIPtr pSmi, unsigned int nOffset, unsigned int nData);
-/* Init flags and values used in init_crt structure */
+/* FIXME does something use it? */
+void DisableOverlay(SMIPtr pSmi);
+void EnableOverlay(SMIPtr pSmi);
/* TV clock phase select */
#define DISP_CRT_TVP 0x00000100
@@ -305,18 +308,6 @@ void setDPMS(SMIPtr pSmi, DPMS_t state);
(((b) & RGB565_B_MASK) >> RGB565_B_SHIFT)) \
)
-/* Sets the same mode both on panel and crt */
-Bool SMI501_SetMode(ScrnInfoPtr pScrn, DisplayModePtr mode);
-
-unsigned int regRead32(SMIPtr pSmi, unsigned int nOffset);
-void regWrite32(SMIPtr pSmi, unsigned int nOffset, unsigned int nData);
-
-
-/* FIXME does something use it? */
-void DisableOverlay(SMIPtr pSmi);
-void EnableOverlay(SMIPtr pSmi);
-
-
/* REGISTER DEFINITIONS */
/* regSC.h */