diff options
author | Ian Romanick <idr@umwelt.(none)> | 2006-07-21 16:47:45 -0700 |
---|---|---|
committer | Ian Romanick <idr@umwelt.(none)> | 2006-07-21 16:47:45 -0700 |
commit | e18d34f4238e13e226b0407fa2f5f77d2038de39 (patch) | |
tree | 4b483d31917c93457a156762accbb6073376804a /hw/xfree86/int10/pci.c | |
parent | 07ad92d2c4cb07db8487d76efc822fd7b88137cb (diff) |
Make the various implementations of xf86ExtendedInitInt10 use the
libpciaccess interfaces. This eliminates all calls to mapPciRom,
which in turn allows the elimination of hw/xfree86/int10/pci.c.
Diffstat (limited to 'hw/xfree86/int10/pci.c')
-rw-r--r-- | hw/xfree86/int10/pci.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/hw/xfree86/int10/pci.c b/hw/xfree86/int10/pci.c deleted file mode 100644 index d5758e720..000000000 --- a/hw/xfree86/int10/pci.c +++ /dev/null @@ -1,45 +0,0 @@ -/* $XFree86: xc/programs/Xserver/hw/xfree86/int10/pci.c,v 1.11 2001/10/01 13:44:13 eich Exp $ */ - -/* - * XFree86 int10 module - * execute BIOS int 10h calls in x86 real mode environment - * Copyright 1999 Egbert Eich - */ -#ifdef HAVE_XORG_CONFIG_H -#include <xorg-config.h> -#endif - -#include <string.h> - -#include "xf86Pci.h" -#include "xf86.h" -#define _INT10_PRIVATE -#include "xf86int10.h" - -int -mapPciRom(int pciEntity, unsigned char * address) -{ - struct pci_device * pvp = xf86GetPciInfoForEntity(pciEntity); - int err; - - if (pvp == NULL) { -#ifdef DEBUG - ErrorF("mapPciRom: no PCI info\n"); -#endif - return 0; - } - - /* Read in entire PCI ROM */ - err = pci_device_read_rom( pvp, address ); - -#ifdef DEBUG - if ( err != 0 ) - ErrorF("mapPciRom: no BIOS found\n"); -#ifdef PRINT_PCI - else - dprint(address,0x20); -#endif -#endif - - return pvp->rom_size; -} |