]> git.pld-linux.org Git - packages/XFree86.git/blame - XFree86-mga-busmstr.patch
- 4.8.0 (probably the last XFree86 version ever, for comparison and archival reasons)
[packages/XFree86.git] / XFree86-mga-busmstr.patch
CommitLineData
31df3500
JR
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;
e0623502 7+ CARD32 pciCommand;
8
31df3500 9 switch ( pMga->Chipset ) {
e0623502 10 case PCI_CHIP_MGAG400:
31df3500 11@@ -1118,6 +1119,11 @@
e0623502 12 return FALSE;
13 }
31df3500 14 xf86DrvMsg( pScrn->scrnIndex, X_INFO, "[dri] visual configs initialized\n" );
e0623502 15+
16+ /* Enable bus mastering in PCI config space */
31df3500
JR
17+ pciCommand = pciReadLong(pMga->PciTag, PCI_CMD_STAT_REG);
18+ pciWriteLong(pMga->PciTag, PCI_CMD_STAT_REG,
e0623502 19+ pciCommand | PCI_CMD_MASTER_ENABLE);
20
21 return TRUE;
22 }
This page took 0.099846 seconds and 4 git commands to generate.