]> git.pld-linux.org Git - packages/X11.git/blob - X11-mga-busmstr.patch
- another try
[packages/X11.git] / X11-mga-busmstr.patch
1 --- xc.orig/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c   2004-08-08 14:22:29.000000000 +0200
2 +++ xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c        2004-08-08 15:13:17.170055096 +0200
3 @@ -982,6 +982,7 @@
4     DRIInfoPtr pDRIInfo;
5     MGADRIPtr pMGADRI;
6     MGADRIServerPrivatePtr pMGADRIServer;
7 +   CARD32 pciCommand;
8  
9     switch(pMga->Chipset) {
10     case PCI_CHIP_MGAG550:
11 @@ -1257,6 +1258,11 @@
12     }
13     xf86DrvMsg( pScrn->scrnIndex, X_INFO, "[dri] visual configs initialized\n" );
14  
15 +   /* Enable bus mastering in PCI config space */
16 +   pciCommand = pciReadLong(pMga->PciTag, PCI_CMD_STAT_REG);
17 +   pciWriteLong(pMga->PciTag, PCI_CMD_STAT_REG,
18 +               pciCommand | PCI_CMD_MASTER_ENABLE);
19 +
20     return TRUE;
21  }
22  
This page took 0.032824 seconds and 3 git commands to generate.