diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-09-02 17:55:16 -0300 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2008-09-02 17:55:16 -0300 |
commit | a2a090e10f031aed6dbf6d143d6ce8abdf7a2392 (patch) | |
tree | e957e58dfebeacf505b98c9966d7ac1319a17b4e /src/smi_501.h | |
parent | 2d5ba5f7310fa8e11f7349d116aa871a239ac35f (diff) |
Correct all compiler warning messages.
Code compiled with:
gcc -Wall -Wbad-function-cast -Wdeclaration-after-statement \
-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
-fno-strict-aliasing -Wold-style-definition -Wpointer-arith \
-Wstrict-prototypes
This patch also makes most smi_501.c functions static, as they are not
called from anywhere else.
Also removed prototypes for non existent functions in smi_501.h.
Diffstat (limited to 'src/smi_501.h')
-rw-r--r-- | src/smi_501.h | 52 |
1 files changed, 10 insertions, 42 deletions
diff --git a/src/smi_501.h b/src/smi_501.h index 5f4809e..6002fae 100644 --- a/src/smi_501.h +++ b/src/smi_501.h @@ -215,8 +215,6 @@ typedef enum _panel_state_t { /****************************************************************************** * F U N C T I O N P R O T O T Y P E S ******************************************************************************/ -/* Set gate and power mode. */ -void setPower(SMIPtr pSmi, unsigned int nGates, unsigned int nClock); /* Set DPMS state. */ void setDPMS(SMIPtr pSmi, DPMS_t state); /* Calculate memory clock settings of input clock. */ @@ -308,46 +306,16 @@ void setDPMS(SMIPtr pSmi, DPMS_t state); ) /* Sets the same mode both on panel and crt */ -void SetMode(SMIPtr pSmi, unsigned int nWidth, unsigned int nHeight, - unsigned int fMode, unsigned int nHertz, display_t display, - int fbPitch, int bpp); -/* Initialize the panel hardware module */ - -/* Initialize the CRT hardware module */ -void crtInit(pinit_crt init); -/* Enable CRT gamma control (RGB 5:6:5 and RGB 8:8:8 modes only) */ -void crtSetMode(SMIPtr pSmi, unsigned int nWidth, unsigned int nHeight, - unsigned int fMode, unsigned int nHertz, int fbPitch, int bpp); -/* Get and/or set CRT DPMS.*/ -unsigned int crtDPMS(int nDPMS); -/* Set CRT frame buffer pointer. */ -void crtSetTiming(unsigned int nHDisplay, unsigned int nHTotal, - unsigned int nHSyncStart, unsigned int nHSyncEnd, - unsigned int nVDisplay, unsigned int nVTotal, - unsigned int nVSyncStart, unsigned int nVSyncEnd, - unsigned int nPixelClock, unsigned int nHPolarity, - unsigned int nVPolarity); -/* Get CRT LUT palette. */ -void crtHwcInit(pinit_crt_hwc init); -/* Enable CRT hardware cursor */ -void crtHwcEnable(void); -/* Disable CRT hardware cursor */ -void crtHwcDisable(void); -/* Set CRT pointer shape and/or colors. */ -void crtPointerShape(unsigned char *pShape, int nWidth, int nHeight, - int nHotX, int nHotY, RGB rgbColor[3]); -/* Set CRT cursor on-screen position. */ -void crtPointerPosition(int nX, int nY, int nTopSelect, int nLeftSelect); -/* Set CRT cursor on-screen position. */ -void crtHwcSetPosition(int nX, int nY, int nTopSelect, int nLeftSelect); -/* Set CRT cursor colors */ -void crtHwcSetColors(RGB rgbColor[HWC_NUM_COLORS]); - -/* Route Panel data to CRT for Simultaneous mode */ -void panelUseCRT(SMIPtr pSmi, BOOL bEnable); - -void panelSetMode(SMIPtr pSmi, unsigned int nWidth, unsigned int nHeight, - unsigned int fMode, unsigned int nHertz, int fbPitch, int bpp); +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 */ |