Commit fac2cc92 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: xgifb: vb_setmode: make internal functions static

Make internal functions static.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ed2e7203
...@@ -3132,7 +3132,7 @@ static void XGI_UpdateModeInfo(struct xgi_hw_device_info *HwDeviceExtension, ...@@ -3132,7 +3132,7 @@ static void XGI_UpdateModeInfo(struct xgi_hw_device_info *HwDeviceExtension,
} }
} }
void XGI_GetVGAType(struct xgi_hw_device_info *HwDeviceExtension, static void XGI_GetVGAType(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *pVBInfo) struct vb_device_info *pVBInfo)
{ {
/* /*
...@@ -3187,7 +3187,7 @@ void XGI_GetVBType(struct vb_device_info *pVBInfo) ...@@ -3187,7 +3187,7 @@ void XGI_GetVBType(struct vb_device_info *pVBInfo)
} }
} }
void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex, static void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
struct xgi_hw_device_info *HwDeviceExtension, struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *pVBInfo) struct vb_device_info *pVBInfo)
{ {
...@@ -3395,7 +3395,7 @@ void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex, ...@@ -3395,7 +3395,7 @@ void XGI_GetVBInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
pVBInfo->VBInfo = tempbx; pVBInfo->VBInfo = tempbx;
} }
void XGI_GetTVInfo(unsigned short ModeNo, unsigned short ModeIdIndex, static void XGI_GetTVInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
struct vb_device_info *pVBInfo) struct vb_device_info *pVBInfo)
{ {
unsigned short temp, tempbx = 0, resinfo = 0, modeflag, index1; unsigned short temp, tempbx = 0, resinfo = 0, modeflag, index1;
...@@ -3503,8 +3503,8 @@ void XGI_GetTVInfo(unsigned short ModeNo, unsigned short ModeIdIndex, ...@@ -3503,8 +3503,8 @@ void XGI_GetTVInfo(unsigned short ModeNo, unsigned short ModeIdIndex,
pVBInfo->TVInfo = tempbx; pVBInfo->TVInfo = tempbx;
} }
unsigned char XGI_GetLCDInfo(unsigned short ModeNo, unsigned short ModeIdIndex, static unsigned char XGI_GetLCDInfo(unsigned short ModeNo,
struct vb_device_info *pVBInfo) unsigned short ModeIdIndex, struct vb_device_info *pVBInfo)
{ {
unsigned short temp, tempax, tempbx, modeflag, resinfo = 0, LCDIdIndex; unsigned short temp, tempax, tempbx, modeflag, resinfo = 0, LCDIdIndex;
...@@ -3859,7 +3859,7 @@ static void XGI_XG21SetPanelDelay(unsigned short tempbl, ...@@ -3859,7 +3859,7 @@ static void XGI_XG21SetPanelDelay(unsigned short tempbl,
mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S4); mdelay(pVBInfo->XG21_LVDSCapList[index].PSC_S4);
} }
void XGI_DisplayOn(struct xgi_hw_device_info *pXGIHWDE, static void XGI_DisplayOn(struct xgi_hw_device_info *pXGIHWDE,
struct vb_device_info *pVBInfo) struct vb_device_info *pVBInfo)
{ {
...@@ -6054,7 +6054,7 @@ static void XGI_DisableGatingCRT(struct xgi_hw_device_info *HwDeviceExtension, ...@@ -6054,7 +6054,7 @@ static void XGI_DisableGatingCRT(struct xgi_hw_device_info *HwDeviceExtension,
xgifb_reg_and_or(pVBInfo->P3d4, 0x63, 0xBF, 0x00); xgifb_reg_and_or(pVBInfo->P3d4, 0x63, 0xBF, 0x00);
} }
unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo, static unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo,
unsigned short ModeIdIndex, struct vb_device_info *pVBInfo) unsigned short ModeIdIndex, struct vb_device_info *pVBInfo)
{ {
unsigned short xres, yres, colordepth, modeflag, resindex, unsigned short xres, yres, colordepth, modeflag, resindex,
...@@ -6397,7 +6397,7 @@ static unsigned char XGI_EnableChISLCD(struct vb_device_info *pVBInfo) ...@@ -6397,7 +6397,7 @@ static unsigned char XGI_EnableChISLCD(struct vb_device_info *pVBInfo)
return 0; return 0;
} }
void XGI_DisableBridge(struct xgi_hw_device_info *HwDeviceExtension, static void XGI_DisableBridge(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *pVBInfo) struct vb_device_info *pVBInfo)
{ {
unsigned short tempah = 0; unsigned short tempah = 0;
...@@ -6981,7 +6981,7 @@ static void XGI_OEM310Setting(unsigned short ModeNo, ...@@ -6981,7 +6981,7 @@ static void XGI_OEM310Setting(unsigned short ModeNo,
/* Output : */ /* Output : */
/* Description : Origin code for crt2group */ /* Description : Origin code for crt2group */
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
void XGI_SetCRT2ModeRegs(unsigned short ModeNo, static void XGI_SetCRT2ModeRegs(unsigned short ModeNo,
struct xgi_hw_device_info *HwDeviceExtension, struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *pVBInfo) struct vb_device_info *pVBInfo)
{ {
...@@ -7393,7 +7393,7 @@ static void XGI_SetLCDAGroup(unsigned short ModeNo, unsigned short ModeIdIndex, ...@@ -7393,7 +7393,7 @@ static void XGI_SetLCDAGroup(unsigned short ModeNo, unsigned short ModeIdIndex,
XGI_SetCRT2ECLK(ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo); XGI_SetCRT2ECLK(ModeNo, ModeIdIndex, RefreshRateTableIndex, pVBInfo);
} }
unsigned char XGI_SetCRT2Group301(unsigned short ModeNo, static unsigned char XGI_SetCRT2Group301(unsigned short ModeNo,
struct xgi_hw_device_info *HwDeviceExtension, struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *pVBInfo) struct vb_device_info *pVBInfo)
{ {
...@@ -7531,7 +7531,7 @@ void XGI_SenseCRT1(struct vb_device_info *pVBInfo) ...@@ -7531,7 +7531,7 @@ void XGI_SenseCRT1(struct vb_device_info *pVBInfo)
xgifb_reg_set(pVBInfo->P3c4, 0x1F, (unsigned char) SR1F); xgifb_reg_set(pVBInfo->P3c4, 0x1F, (unsigned char) SR1F);
} }
void XGI_EnableBridge(struct xgi_hw_device_info *HwDeviceExtension, static void XGI_EnableBridge(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *pVBInfo) struct vb_device_info *pVBInfo)
{ {
unsigned short tempah; unsigned short tempah;
......
...@@ -6,49 +6,20 @@ extern void XGI_UnLockCRT2(struct xgi_hw_device_info *HwDeviceExtension, ...@@ -6,49 +6,20 @@ extern void XGI_UnLockCRT2(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *); struct vb_device_info *);
extern void XGI_LockCRT2(struct xgi_hw_device_info *HwDeviceExtension, extern void XGI_LockCRT2(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *); struct vb_device_info *);
extern void XGI_SetCRT2ModeRegs(unsigned short ModeNo,
struct xgi_hw_device_info *,
struct vb_device_info *);
extern void XGI_DisableBridge(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *);
extern void XGI_EnableBridge(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *);
extern void XGI_DisplayOff(struct xgi_hw_device_info *, extern void XGI_DisplayOff(struct xgi_hw_device_info *,
struct vb_device_info *); struct vb_device_info *);
extern void XGI_DisplayOn(struct xgi_hw_device_info *,
struct vb_device_info *);
extern void XGI_GetVBType(struct vb_device_info *); extern void XGI_GetVBType(struct vb_device_info *);
extern void XGI_SenseCRT1(struct vb_device_info *); extern void XGI_SenseCRT1(struct vb_device_info *);
extern void XGI_GetVGAType(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *);
extern void XGI_GetVBInfo(unsigned short ModeNo,
unsigned short ModeIdIndex,
struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *);
extern void XGI_GetTVInfo(unsigned short ModeNo,
unsigned short ModeIdIndex,
struct vb_device_info *);
extern unsigned char XGISetModeNew(struct xgi_hw_device_info *HwDeviceExtension, extern unsigned char XGISetModeNew(struct xgi_hw_device_info *HwDeviceExtension,
unsigned short ModeNo) ; unsigned short ModeNo) ;
extern unsigned char XGI_SearchModeID(unsigned short ModeNo, extern unsigned char XGI_SearchModeID(unsigned short ModeNo,
unsigned short *ModeIdIndex, unsigned short *ModeIdIndex,
struct vb_device_info *); struct vb_device_info *);
extern unsigned char XGI_GetLCDInfo(unsigned short ModeNo,
unsigned short ModeIdIndex,
struct vb_device_info *);
extern unsigned char XGI_BridgeIsOn(struct vb_device_info *); extern unsigned char XGI_BridgeIsOn(struct vb_device_info *);
extern unsigned char
XGI_SetCRT2Group301(unsigned short ModeNo,
struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *);
extern unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE, extern unsigned short XGI_GetRatePtrCRT2(struct xgi_hw_device_info *pXGIHWDE,
unsigned short ModeNo, unsigned short ModeNo,
unsigned short ModeIdIndex, unsigned short ModeIdIndex,
struct vb_device_info *); struct vb_device_info *);
extern unsigned char XGI_XG21CheckLVDSMode(unsigned short ModeNo,
unsigned short ModeIdIndex,
struct vb_device_info *pVBInfo);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment