Skip to content

Commit

Permalink
staging: xgifb: rename XGINew_SetReg1() to xgifb_reg_set()
Browse files Browse the repository at this point in the history
Rename XGINew_SetReg1() to xgifb_reg_set().

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent 3d2a60a commit 8104e32
Show file tree
Hide file tree
Showing 6 changed files with 657 additions and 663 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -2321,7 +2321,7 @@ static int __devinit xgifb_probe(struct pci_dev *pdev,
for (m = 0; m < sizeof(XGI21_LCDCapList)/sizeof(struct XGI21_LVDSCapStruct); m++) {
if ((XGI21_LCDCapList[m].LVDSHDE == XGIbios_mode[xgifb_mode_idx].xres) &&
(XGI21_LCDCapList[m].LVDSVDE == XGIbios_mode[xgifb_mode_idx].yres)) {
XGINew_SetReg1(XGI_Pr.P3d4, 0x36, m);
xgifb_reg_set(XGI_Pr.P3d4, 0x36, m);
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions drivers/staging/xgifb/vb_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static unsigned char XGINew_Sense(unsigned short tempbx, unsigned short tempcx,
unsigned short temp, i, tempch;

temp = tempbx & 0xFF;
XGINew_SetReg1(pVBInfo->Part4Port, 0x11, temp);
xgifb_reg_set(pVBInfo->Part4Port, 0x11, temp);
temp = (tempbx & 0xFF00) >> 8;
temp |= (tempcx & 0x00FF);
XGINew_SetRegANDOR(pVBInfo->Part4Port, 0x10, ~0x1F, temp);
Expand Down Expand Up @@ -143,7 +143,7 @@ static unsigned char XGINew_GetPanelID(struct vb_device_info *pVBInfo)

tempbx = tempbx >> 1;
temp = tempbx & 0x00F;
XGINew_SetReg1(pVBInfo->P3d4, 0x36, temp);
xgifb_reg_set(pVBInfo->P3d4, 0x36, temp);
tempbx--;
tempbx = PanelTypeTable[tempbx];

Expand Down Expand Up @@ -179,7 +179,7 @@ static unsigned char XGINew_SenseHiTV(struct xgi_hw_device_info *HwDeviceExtensi
tempcx = 0x0604;

temp = tempbx & 0xFF;
XGINew_SetReg1(pVBInfo->Part4Port, 0x11, temp);
xgifb_reg_set(pVBInfo->Part4Port, 0x11, temp);
temp = (tempbx & 0xFF00) >> 8;
temp |= (tempcx & 0x00FF);
XGINew_SetRegANDOR(pVBInfo->Part4Port, 0x10, ~0x1F, temp);
Expand All @@ -199,7 +199,7 @@ static unsigned char XGINew_SenseHiTV(struct xgi_hw_device_info *HwDeviceExtensi

tempcx = 0x0804;
temp = tempbx & 0xFF;
XGINew_SetReg1(pVBInfo->Part4Port, 0x11, temp);
xgifb_reg_set(pVBInfo->Part4Port, 0x11, temp);
temp = (tempbx & 0xFF00) >> 8;
temp |= (tempcx & 0x00FF);
XGINew_SetRegANDOR(pVBInfo->Part4Port, 0x10, ~0x1F, temp);
Expand All @@ -218,7 +218,7 @@ static unsigned char XGINew_SenseHiTV(struct xgi_hw_device_info *HwDeviceExtensi
tempbx = 0x3FF;
tempcx = 0x0804;
temp = tempbx & 0xFF;
XGINew_SetReg1(pVBInfo->Part4Port, 0x11, temp);
xgifb_reg_set(pVBInfo->Part4Port, 0x11, temp);
temp = (tempbx & 0xFF00) >> 8;
temp |= (tempcx & 0x00FF);
XGINew_SetRegANDOR(pVBInfo->Part4Port, 0x10, ~0x1F, temp);
Expand Down Expand Up @@ -276,7 +276,7 @@ void XGI_GetSenseStatus(struct xgi_hw_device_info *HwDeviceExtension, struct vb_
P2reg0 = XGINew_GetReg1(pVBInfo->Part2Port, 0x00);
if (!XGINew_BridgeIsEnable(HwDeviceExtension, pVBInfo)) {
SenseModeNo = 0x2e;
/* XGINew_SetReg1(pVBInfo->P3d4, 0x30, 0x41); */
/* xgifb_reg_set(pVBInfo->P3d4, 0x30, 0x41); */
/* XGISetModeNew(HwDeviceExtension, 0x2e); // ynlai InitMode */

temp = XGI_SearchModeID(SenseModeNo, &ModeIdIndex, pVBInfo);
Expand All @@ -295,7 +295,7 @@ void XGI_GetSenseStatus(struct xgi_hw_device_info *HwDeviceExtension, struct vb_
for (i = 0; i < 20; i++)
XGI_LongWait(pVBInfo);
}
XGINew_SetReg1(pVBInfo->Part2Port, 0x00, 0x1c);
xgifb_reg_set(pVBInfo->Part2Port, 0x00, 0x1c);
tempax = 0;
tempbx = *pVBInfo->pRGBSenseData;

Expand Down Expand Up @@ -366,7 +366,7 @@ void XGI_GetSenseStatus(struct xgi_hw_device_info *HwDeviceExtension, struct vb_
XGINew_Sense(tempbx, tempcx, pVBInfo);

XGINew_SetRegANDOR(pVBInfo->P3d4, 0x32, ~0xDF, tempax);
XGINew_SetReg1(pVBInfo->Part2Port, 0x00, P2reg0);
xgifb_reg_set(pVBInfo->Part2Port, 0x00, P2reg0);

if (!(P2reg0 & 0x20)) {
pVBInfo->VBInfo = DisableCRT2Display;
Expand Down
Loading

0 comments on commit 8104e32

Please sign in to comment.