pulseaudio: fix dependencies for openssl-3
[oi-userland.git] / components / x11 / xf86-video-mga / patches / 03.rom_map.patch
blob5ec87d183882215270d7834f6a364a779e1f71d6
1 --- a/src/mga_dacG.c Mon Feb 11 14:59:08 2013
2 +++ b/src/mga_dacG.c Mon Feb 11 15:00:39 2013
3 @@ -1051,6 +1051,19 @@
5 if (pMga->HasSDRAM)
6 pReg->Option = 0x40049120;
7 + else {
8 + /*
9 + * Do not reset biosen bit of option reg, as this will set
10 + * ROM base register to 0
11 + */
12 + CARD32 option = 0;
13 +#ifdef XSERVER_LIBPCIACCESS
14 + pci_device_cfg_read_u32(pMga->PciInfo, & option, PCI_OPTION_REG);
15 +#else
16 + option = pciReadLong(pMga->PciTag, PCI_OPTION_REG);
17 +#endif
18 + pReg->Option = (pReg->Option & 0xFBFFFFFF) | (option & 0x40000000);
19 + }
20 pReg->Option2 = 0x00008000;
21 break;