]> git.pld-linux.org Git - packages/X11.git/blob - XFree86-mga-busmstr.patch
- merg from rawhide.
[packages/X11.git] / XFree86-mga-busmstr.patch
1 Index: mga_dri.c
2 ===================================================================
3 RCS file: /home/x-cvs/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c,v
4 retrieving revision 1.14
5 diff -u -r1.14 mga_dri.c
6 --- XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c  2000/12/11 22:34:55     1.14
7 +++ XFree86-4.0.2/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c  2001/03/02 20:13:06
8 @@ -379,6 +379,7 @@
9     int init_offset;
10     int i;
11     unsigned long mode_mask;
12 +   CARD32 pciCommand;
13  
14     switch(pMGA->Chipset) {
15     case PCI_CHIP_MGAG400:
16 @@ -782,6 +783,11 @@
17        return FALSE;
18     }
19     xf86DrvMsg(pScrn->scrnIndex, X_INFO, "visual configs initialized\n" );
20 +
21 +   /* Enable bus mastering in PCI config space */
22 +   pciCommand = pciReadLong(pMGA->PciTag, PCI_CMD_STAT_REG);
23 +   pciWriteLong(pMGA->PciTag, PCI_CMD_STAT_REG,
24 +               pciCommand | PCI_CMD_MASTER_ENABLE);
25  
26     return TRUE;
27  }
This page took 0.031147 seconds and 4 git commands to generate.