| @@ -228,27 +228,27 @@ i830_bios_init(ScrnInfoPtr pScrn) | | | @@ -228,27 +228,27 @@ i830_bios_init(ScrnInfoPtr pScrn) |
228 | } | | 228 | } |
229 | #else | | 229 | #else |
230 | size = INTEL_VBIOS_SIZE; | | 230 | size = INTEL_VBIOS_SIZE; |
231 | #endif | | 231 | #endif |
232 | bios = xalloc(size); | | 232 | bios = xalloc(size); |
233 | if (bios == NULL) | | 233 | if (bios == NULL) |
234 | return -1; | | 234 | return -1; |
235 | | | 235 | |
236 | #if XSERVER_LIBPCIACCESS | | 236 | #if XSERVER_LIBPCIACCESS |
237 | ret = pci_device_read_rom (pI830->PciInfo, bios); | | 237 | ret = pci_device_read_rom (pI830->PciInfo, bios); |
238 | if (ret != 0) { | | 238 | if (ret != 0) { |
239 | xf86DrvMsg(pScrn->scrnIndex, X_WARNING, | | 239 | xf86DrvMsg(pScrn->scrnIndex, X_WARNING, |
240 | "libpciaccess failed to read %dkB video BIOS: %s\n", | | 240 | "libpciaccess failed to read %dkB video BIOS: %s\n", |
241 | size / 1024, strerror(-ret)); | | 241 | size / 1024, strerror(ret)); |
242 | xfree (bios); | | 242 | xfree (bios); |
243 | return -1; | | 243 | return -1; |
244 | } | | 244 | } |
245 | #else | | 245 | #else |
246 | /* xf86ReadPciBIOS returns the length read */ | | 246 | /* xf86ReadPciBIOS returns the length read */ |
247 | ret = xf86ReadPciBIOS(0, pI830->PciTag, 0, bios, size); | | 247 | ret = xf86ReadPciBIOS(0, pI830->PciTag, 0, bios, size); |
248 | if (ret <= 0) { | | 248 | if (ret <= 0) { |
249 | xfree (bios); | | 249 | xfree (bios); |
250 | return -1; | | 250 | return -1; |
251 | } | | 251 | } |
252 | #endif | | 252 | #endif |
253 | | | 253 | |
254 | vbt_off = INTEL_BIOS_16(0x1a); | | 254 | vbt_off = INTEL_BIOS_16(0x1a); |