]> git.pld-linux.org Git - packages/X11.git/blob - XFree86-mga-busmstr.patch
- cleanup
[packages/X11.git] / XFree86-mga-busmstr.patch
1 --- XFree86-4.1.0/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c.orig     Wed May  2 17:06:09 2001
2 +++ XFree86-4.1.0/xc/programs/Xserver/hw/xfree86/drivers/mga/mga_dri.c  Sun Jun 17 23:03:55 2001
3 @@ -897,6 +897,7 @@
4     DRIInfoPtr pDRIInfo;
5     MGADRIPtr pMGADRI;
6     MGADRIServerPrivatePtr pMGADRIServer;
7 +   CARD32 pciCommand;
8  
9     switch ( pMga->Chipset ) {
10     case PCI_CHIP_MGAG400:
11 @@ -1118,6 +1119,11 @@
12        return FALSE;
13     }
14     xf86DrvMsg( pScrn->scrnIndex, X_INFO, "[dri] visual configs initialized\n" );
15 +
16 +   /* Enable bus mastering in PCI config space */
17 +   pciCommand = pciReadLong(pMga->PciTag, PCI_CMD_STAT_REG);
18 +   pciWriteLong(pMga->PciTag, PCI_CMD_STAT_REG,
19 +               pciCommand | PCI_CMD_MASTER_ENABLE);
20  
21     return TRUE;
22  }
This page took 0.027962 seconds and 3 git commands to generate.