Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281128
b: refs/heads/master
c: 7f04ec3
h: refs/heads/master
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent ec12816 commit 0122ac3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c0fe602f2de66fa775b1d28981212ff853a62d1b
refs/heads/master: 7f04ec3058b42ee1a503fbc1588c15d84f1d4b4c
38 changes: 19 additions & 19 deletions trunk/drivers/staging/xgifb/vb_setmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -6718,6 +6718,25 @@ static void XGI_SetLCDCap_B(unsigned short tempcx,
| 0x18)); /* Enable Dither */
}

static void XGI_LongWait(struct vb_device_info *pVBInfo)
{
unsigned short i;

i = xgifb_reg_get(pVBInfo->P3c4, 0x1F);

if (!(i & 0xC0)) {
for (i = 0; i < 0xFFFF; i++) {
if (!(inb(pVBInfo->P3da) & 0x08))
break;
}

for (i = 0; i < 0xFFFF; i++) {
if ((inb(pVBInfo->P3da) & 0x08))
break;
}
}
}

static void SetSpectrum(struct vb_device_info *pVBInfo)
{
unsigned short index;
Expand Down Expand Up @@ -7219,25 +7238,6 @@ unsigned char XGI_BridgeIsOn(struct vb_device_info *pVBInfo)
}
}

void XGI_LongWait(struct vb_device_info *pVBInfo)
{
unsigned short i;

i = xgifb_reg_get(pVBInfo->P3c4, 0x1F);

if (!(i & 0xC0)) {
for (i = 0; i < 0xFFFF; i++) {
if (!(inb(pVBInfo->P3da) & 0x08))
break;
}

for (i = 0; i < 0xFFFF; i++) {
if ((inb(pVBInfo->P3da) & 0x08))
break;
}
}
}

static void XGI_VBLongWait(struct vb_device_info *pVBInfo)
{
unsigned short tempal, temp, i, j;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/xgifb/vb_setmode.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ extern void XGI_UnLockCRT2(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *);
extern void XGI_LockCRT2(struct xgi_hw_device_info *HwDeviceExtension,
struct vb_device_info *);
extern void XGI_LongWait(struct vb_device_info *);
extern void XGI_SetCRT2ModeRegs(unsigned short ModeNo,
struct xgi_hw_device_info *,
struct vb_device_info *);
Expand Down

0 comments on commit 0122ac3

Please sign in to comment.