Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268389
b: refs/heads/master
c: c44fa62
h: refs/heads/master
i:
  268387: 3cc3db3
v: v3
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Sep 16, 2011
1 parent e9d9791 commit 05ad1fc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 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: 4b4954621ff57e168ebd77b7d2682308d13b4e7f
refs/heads/master: c44fa627c7b351cb359b7bd373756776b907ecd5
2 changes: 1 addition & 1 deletion trunk/drivers/staging/xgifb/XGIfb.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct video_info {
int chip_id;
unsigned int video_size;
unsigned long video_base;
char *video_vbase;
void __iomem *video_vbase;
unsigned long mmio_base;
unsigned long mmio_size;
void __iomem *mmio_vbase;
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/xgifb/vb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -678,26 +678,26 @@ static int XGINew_ReadWriteRest(unsigned short StopAddr,
{
int i;
unsigned long Position = 0;
void __iomem *fbaddr = pVBInfo->FBAddr;

*((unsigned long *) (pVBInfo->FBAddr + Position)) = Position;
writel(Position, fbaddr + Position);

for (i = StartAddr; i <= StopAddr; i++) {
Position = 1 << i;
*((unsigned long *) (pVBInfo->FBAddr + Position)) = Position;
writel(Position, fbaddr + Position);
}

udelay(500); /* [Vicent] 2004/04/16.
Fix #1759 Memory Size error in Multi-Adapter. */

Position = 0;

if ((*(unsigned long *) (pVBInfo->FBAddr + Position)) != Position)
if (readl(fbaddr + Position) != Position)
return 0;

for (i = StartAddr; i <= StopAddr; i++) {
Position = 1 << i;
if ((*(unsigned long *) (pVBInfo->FBAddr + Position)) !=
Position)
if (readl(fbaddr + Position) != Position)
return 0;
}
return 1;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/xgifb/vb_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ struct vb_device_info {
unsigned short SelectCRT2Rate;

unsigned char *ROMAddr;
unsigned char *FBAddr;
void __iomem *FBAddr;
unsigned long BaseAddr;
unsigned long RelIO;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/xgifb/vgatypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct xgi_hw_device_info {

unsigned char *pjVirtualRomBase; /* ROM image */

unsigned char *pjVideoMemoryAddress;/* base virtual memory address */
void __iomem *pjVideoMemoryAddress;/* base virtual memory address */
/* of Linear VGA memory */

unsigned long ulVideoMemorySize; /* size, in bytes, of the
Expand Down

0 comments on commit 05ad1fc

Please sign in to comment.