summaryrefslogtreecommitdiff
path: root/hw/xfree86/int10
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2007-08-23 18:19:17 -0700
committerIan Romanick <idr@us.ibm.com>2007-08-23 18:19:17 -0700
commit8b6b40b7271acd81a9548f502c18f46f3b640640 (patch)
tree1462cb63501a8bdd8845d7c62e038b6a86b78fd5 /hw/xfree86/int10
parentab7a6d860d4a275a810a64b1ba7b13726ed10575 (diff)
parent3305d17195e3a0a5555300555bd7703312fa489f (diff)
Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/xserver into pci-rework
Conflicts: hw/xfree86/common/xf86.h hw/xfree86/common/xf86Init.c hw/xfree86/common/xf86pciBus.c hw/xfree86/int10/generic.c hw/xfree86/int10/helper_exec.c hw/xfree86/loader/xf86sym.c hw/xfree86/os-support/bus/Pci.c hw/xfree86/os-support/bus/Pci.h hw/xfree86/os-support/bus/linuxPci.c hw/xfree86/os-support/linux/int10/linux.c
Diffstat (limited to 'hw/xfree86/int10')
-rw-r--r--hw/xfree86/int10/generic.c59
-rw-r--r--hw/xfree86/int10/helper_exec.c119
-rw-r--r--hw/xfree86/int10/helper_mem.c127
-rw-r--r--hw/xfree86/int10/xf86int10.h20
4 files changed, 91 insertions, 234 deletions
diff --git a/hw/xfree86/int10/generic.c b/hw/xfree86/int10/generic.c
index 6a0471145..a30dee103 100644
--- a/hw/xfree86/int10/generic.c
+++ b/hw/xfree86/int10/generic.c
@@ -125,8 +125,7 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
void* options = NULL;
int screen;
legacyVGARec vga;
- xf86int10BiosLocation bios;
-
+
#ifdef _PC
int size;
CARD32 cs;
@@ -187,14 +186,9 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
#endif
INTPriv(pInt)->highMemory = V_BIOS;
- xf86int10ParseBiosLocation(options,&bios);
-
- if (xf86IsEntityPrimary(entityIndex)
- && !(initPrimary(options))) {
- if (! xf86int10GetBiosSegment(pInt, &bios,
- (unsigned char *)sysMem - V_BIOS)) {
+ if (xf86IsEntityPrimary(entityIndex) && !(initPrimary(options))) {
+ if (!xf86int10GetBiosSegment(pInt, (unsigned char *)sysMem - V_BIOS))
goto error1;
- }
set_return_trap(pInt);
@@ -204,8 +198,7 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
xf86Int10SaveRestoreBIOSVars(pInt, TRUE);
} else {
- const BusType location_type = xf86int10GetBiosLocationType(pInt,
- &bios);
+ const BusType location_type = xf86int10GetBiosLocationType(pInt);
int bios_location = V_BIOS;
reset_int_vect(pInt);
@@ -214,12 +207,8 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
switch (location_type) {
case BUS_PCI: {
int err;
- struct pci_device *rom_device = (bios.bus == BUS_PCI)
- ? pci_device_find_by_slot(PCI_DOM_FROM_BUS(bios.location.pci.bus),
- PCI_BUS_NO_DOMAIN(bios.location.pci.bus),
- bios.location.pci.dev,
- bios.location.pci.func)
- : xf86GetPciInfoForEntity(pInt->entityIndex);
+ struct pci_device *rom_device =
+ xf86GetPciInfoForEntity(pInt->entityIndex);
vbiosMem = (unsigned char *)base + bios_location;
err = pci_device_read_rom(rom_device, vbiosMem);
@@ -232,9 +221,6 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
break;
}
case BUS_ISA:
- if (bios.bus == BUS_ISA) {
- bios_location = bios.location.legacy;
- }
vbiosMem = (unsigned char *)sysMem + bios_location;
#if 0
(void)memset(vbiosMem, 0, V_BIOS_SIZE);
@@ -279,41 +265,26 @@ xf86ExtendedInitInt10(int entityIndex, int Flags)
* If this adapter is the primary, use its post-init BIOS (if we can find
* it).
*/
- xf86int10ParseBiosLocation(options,&bios);
-
{
int bios_location = V_BIOS;
Bool done = FALSE;
vbiosMem = (unsigned char *)base + bios_location;
- if ((bios.bus == BUS_ISA)
- || (bios.bus != BUS_PCI && xf86IsEntityPrimary(entityIndex))) {
- if (bios.bus == BUS_ISA && bios.location.legacy) {
- xf86DrvMsg(screen, X_CONFIG,"Looking for legacy V_BIOS "
- "at 0x%x for %sprimary device\n",
- bios.location.legacy,
- xf86IsEntityPrimary(entityIndex) ? "" : "non-");
- bios_location = bios.location.legacy;
- vbiosMem = (unsigned char *)base + bios_location;
- }
- if (int10_check_bios(screen, bios_location >> 4, vbiosMem))
- done = TRUE;
- else
- xf86DrvMsg(screen,X_INFO,
- "No legacy BIOS found -- trying PCI\n");
+ if (xf86IsEntityPrimary(entityIndex)) {
+ if (int10_check_bios(screen, bios_location >> 4, vbiosMem))
+ done = TRUE;
+ else
+ xf86DrvMsg(screen,X_INFO,
+ "No legacy BIOS found -- trying PCI\n");
}
if (!done) {
int err;
- struct pci_device *rom_device = (bios.bus == BUS_PCI)
- ? pci_device_find_by_slot(PCI_DOM_FROM_BUS(bios.location.pci.bus),
- PCI_BUS_NO_DOMAIN(bios.location.pci.bus),
- bios.location.pci.dev,
- bios.location.pci.func)
- : xf86GetPciInfoForEntity(pInt->entityIndex);
+ struct pci_device *rom_device =
+ xf86GetPciInfoForEntity(pInt->entityIndex);
err = pci_device_read_rom(rom_device, vbiosMem);
if (err) {
- xf86DrvMsg(screen,X_ERROR,"Cannot read V_BIOS (3) %s\n",
+ xf86DrvMsg(screen,X_ERROR,"Cannot read V_BIOS (5) %s\n",
strerror(err));
goto error1;
}
diff --git a/hw/xfree86/int10/helper_exec.c b/hw/xfree86/int10/helper_exec.c
index aef24cc35..3e1051dc2 100644
--- a/hw/xfree86/int10/helper_exec.c
+++ b/hw/xfree86/int10/helper_exec.c
@@ -8,7 +8,7 @@
*/
/*
- * To debug port accesses define PRINT_PORT.
+ * To debug port accesses define PRINT_PORT to 1.
* Note! You also have to comment out ioperm()
* in xf86EnableIO(). Otherwise we won't trap
* on PIO.
@@ -18,6 +18,8 @@
#include <xorg-config.h>
#endif
+#define PRINT_PORT 0
+
#include <unistd.h>
#include <X11/Xos.h>
@@ -28,6 +30,9 @@
#include "int10Defines.h"
#include "xf86int10.h"
#include "Pci.h"
+#ifdef _X86EMU
+#include "x86emu/x86emui.h"
+#endif
static int pciCfg1in(CARD16 addr, CARD32 *val);
static int pciCfg1out(CARD16 addr, CARD32 val);
@@ -41,6 +46,8 @@ static void SetResetBIOSVars(xf86Int10InfoPtr pInt, Bool set);
#define REG pInt
+static int pci_config_cycle = 0;
+
int
setup_int(xf86Int10InfoPtr pInt)
{
@@ -210,10 +217,9 @@ port_rep_inb(xf86Int10InfoPtr pInt,
{
register int inc = d_f ? -1 : 1;
CARD32 dst = base;
-#ifdef PRINT_PORT
- ErrorF(" rep_insb(%#x) %d bytes at %p %s\n",
- port, count, base, d_f ? "up" : "down");
-#endif
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" rep_insb(%#x) %d bytes at %8.8x %s\n",
+ port, count, base, d_f ? "up" : "down");
while (count--) {
MEM_WB(pInt, dst, x_inb(port));
dst += inc;
@@ -227,10 +233,9 @@ port_rep_inw(xf86Int10InfoPtr pInt,
{
register int inc = d_f ? -2 : 2;
CARD32 dst = base;
-#ifdef PRINT_PORT
- ErrorF(" rep_insw(%#x) %d bytes at %p %s\n",
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" rep_insw(%#x) %d bytes at %8.8x %s\n",
port, count, base, d_f ? "up" : "down");
-#endif
while (count--) {
MEM_WW(pInt, dst, x_inw(port));
dst += inc;
@@ -244,10 +249,9 @@ port_rep_inl(xf86Int10InfoPtr pInt,
{
register int inc = d_f ? -4 : 4;
CARD32 dst = base;
-#ifdef PRINT_PORT
- ErrorF(" rep_insl(%#x) %d bytes at %p %s\n",
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" rep_insl(%#x) %d bytes at %8.8x %s\n",
port, count, base, d_f ? "up" : "down");
-#endif
while (count--) {
MEM_WL(pInt, dst, x_inl(port));
dst += inc;
@@ -261,10 +265,9 @@ port_rep_outb(xf86Int10InfoPtr pInt,
{
register int inc = d_f ? -1 : 1;
CARD32 dst = base;
-#ifdef PRINT_PORT
- ErrorF(" rep_outb(%#x) %d bytes at %p %s\n",
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" rep_outb(%#x) %d bytes at %8.8x %s\n",
port, count, base, d_f ? "up" : "down");
-#endif
while (count--) {
x_outb(port, MEM_RB(pInt, dst));
dst += inc;
@@ -278,10 +281,9 @@ port_rep_outw(xf86Int10InfoPtr pInt,
{
register int inc = d_f ? -2 : 2;
CARD32 dst = base;
-#ifdef PRINT_PORT
- ErrorF(" rep_outw(%#x) %d bytes at %p %s\n",
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" rep_outw(%#x) %d bytes at %8.8x %s\n",
port, count, base, d_f ? "up" : "down");
-#endif
while (count--) {
x_outw(port, MEM_RW(pInt, dst));
dst += inc;
@@ -295,10 +297,9 @@ port_rep_outl(xf86Int10InfoPtr pInt,
{
register int inc = d_f ? -4 : 4;
CARD32 dst = base;
-#ifdef PRINT_PORT
- ErrorF(" rep_outl(%#x) %d bytes at %p %s\n",
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" rep_outl(%#x) %d bytes at %8.8x %s\n",
port, count, base, d_f ? "up" : "down");
-#endif
while (count--) {
x_outl(port, MEM_RL(pInt, dst));
dst += inc;
@@ -315,9 +316,8 @@ x_inb(CARD16 port)
Int10Current->inb40time++;
val = (CARD8)(Int10Current->inb40time >>
((Int10Current->inb40time & 1) << 3));
-#ifdef PRINT_PORT
- ErrorF(" inb(%#x) = %2.2x\n", port, val);
-#endif
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" inb(%#x) = %2.2x\n", port, val);
#ifdef __NOT_YET__
} else if (port < 0x0100) { /* Don't interfere with mainboard */
val = 0;
@@ -328,12 +328,10 @@ x_inb(CARD16 port)
stack_trace(Int10Current);
}
#endif /* __NOT_YET__ */
- } else {
- if (!pciCfg1inb(port, &val))
- val = inb(Int10Current->ioBase + port);
-#ifdef PRINT_PORT
- ErrorF(" inb(%#x) = %2.2x\n", port, val);
-#endif
+ } else if (!pciCfg1inb(port, &val)) {
+ val = inb(Int10Current->ioBase + port);
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" inb(%#x) = %2.2x\n", port, val);
}
return val;
}
@@ -352,13 +350,11 @@ x_inw(CARD16 port)
*/
X_GETTIMEOFDAY(&tv);
val = (CARD16)(tv.tv_usec / 3);
- } else {
- if (!pciCfg1inw(port, &val))
- val = inw(Int10Current->ioBase + port);
+ } else if (!pciCfg1inw(port, &val)) {
+ val = inw(Int10Current->ioBase + port);
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" inw(%#x) = %4.4x\n", port, val);
}
-#ifdef PRINT_PORT
- ErrorF(" inw(%#x) = %4.4x\n", port, val);
-#endif
return val;
}
@@ -375,9 +371,8 @@ x_outb(CARD16 port, CARD8 val)
*/
X_GETTIMEOFDAY(&tv);
Int10Current->inb40time = (CARD16)(tv.tv_usec | 1);
-#ifdef PRINT_PORT
- ErrorF(" outb(%#x, %2.2x)\n", port, val);
-#endif
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" outb(%#x, %2.2x)\n", port, val);
#ifdef __NOT_YET__
} else if (port < 0x0100) { /* Don't interfere with mainboard */
xf86DrvMsgVerb(Int10Current->scrnIndex, X_NOT_IMPLEMENTED, 2,
@@ -387,24 +382,22 @@ x_outb(CARD16 port, CARD8 val)
stack_trace(Int10Current);
}
#endif /* __NOT_YET__ */
- } else {
-#ifdef PRINT_PORT
- ErrorF(" outb(%#x, %2.2x)\n", port, val);
-#endif
- if (!pciCfg1outb(port, val))
- outb(Int10Current->ioBase + port, val);
+ } else if (!pciCfg1outb(port, val)) {
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" outb(%#x, %2.2x)\n", port, val);
+ outb(Int10Current->ioBase + port, val);
}
}
void
x_outw(CARD16 port, CARD16 val)
{
-#ifdef PRINT_PORT
- ErrorF(" outw(%#x, %4.4x)\n", port, val);
-#endif
- if (!pciCfg1outw(port, val))
+ if (!pciCfg1outw(port, val)) {
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" outw(%#x, %4.4x)\n", port, val);
outw(Int10Current->ioBase + port, val);
+ }
}
CARD32
@@ -412,24 +405,22 @@ x_inl(CARD16 port)
{
CARD32 val;
- if (!pciCfg1in(port, &val))
+ if (!pciCfg1in(port, &val)) {
val = inl(Int10Current->ioBase + port);
-
-#ifdef PRINT_PORT
- ErrorF(" inl(%#x) = %8.8x\n", port, val);
-#endif
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" inl(%#x) = %8.8x\n", port, val);
+ }
return val;
}
void
x_outl(CARD16 port, CARD32 val)
{
-#ifdef PRINT_PORT
- ErrorF(" outl(%#x, %8.8x)\n", port, val);
-#endif
-
- if (!pciCfg1out(port, val))
+ if (!pciCfg1out(port, val)) {
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" outl(%#x, %8.8x)\n", port, val);
outl(Int10Current->ioBase + port, val);
+ }
}
CARD8
@@ -481,6 +472,8 @@ pciCfg1in(CARD16 addr, CARD32 *val)
}
if (addr == 0xCFC) {
pci_device_cfg_read_u32(Int10Current->dev, val, OFFSET(PciCfg1Addr));
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" cfg_inl(%#x) = %8.8x\n", PciCfg1Addr, *val);
return 1;
}
return 0;
@@ -494,6 +487,8 @@ pciCfg1out(CARD16 addr, CARD32 val)
return 1;
}
if (addr == 0xCFC) {
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" cfg_outl(%#x, %8.8x)\n", PciCfg1Addr, val);
pci_device_cfg_write_u32(Int10Current->dev, val, OFFSET(PciCfg1Addr));
return 1;
}
@@ -514,6 +509,8 @@ pciCfg1inw(CARD16 addr, CARD16 *val)
const unsigned offset = addr - 0xCFC;
pci_device_cfg_read_u16(Int10Current->dev, val, OFFSET(PciCfg1Addr) + offset);
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" cfg_inw(%#x) = %4.4x\n", PciCfg1Addr + offset, *val);
return 1;
}
return 0;
@@ -533,6 +530,8 @@ pciCfg1outw(CARD16 addr, CARD16 val)
if ((addr >= 0xCFC) && (addr <= 0xCFF)) {
const unsigned offset = addr - 0xCFC;
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" cfg_outw(%#x, %4.4x)\n", PciCfg1Addr + offset, val);
pci_device_cfg_write_u16(Int10Current->dev, val, OFFSET(PciCfg1Addr) + offset);
return 1;
}
@@ -553,6 +552,8 @@ pciCfg1inb(CARD16 addr, CARD8 *val)
const unsigned offset = addr - 0xCFC;
pci_device_cfg_read_u8(Int10Current->dev, val, OFFSET(PciCfg1Addr) + offset);
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" cfg_inb(%#x) = %2.2x\n", PciCfg1Addr + offset, *val);
return 1;
}
return 0;
@@ -572,6 +573,8 @@ pciCfg1outb(CARD16 addr, CARD8 val)
if ((addr >= 0xCFC) && (addr <= 0xCFF)) {
const unsigned offset = addr - 0xCFC;
+ if (PRINT_PORT && DEBUG_IO_TRACE())
+ ErrorF(" cfg_outb(%#x, %2.2x)\n", PciCfg1Addr + offset, val);
pci_device_cfg_write_u8(Int10Current->dev, val, OFFSET(PciCfg1Addr) + offset);
return 1;
}
diff --git a/hw/xfree86/int10/helper_mem.c b/hw/xfree86/int10/helper_mem.c
index c62377ca8..b59f47358 100644
--- a/hw/xfree86/int10/helper_mem.c
+++ b/hw/xfree86/int10/helper_mem.c
@@ -25,13 +25,11 @@
typedef enum {
OPT_NOINT10,
OPT_INIT_PRIMARY,
- OPT_BIOS_LOCATION
} INT10Opts;
static const OptionInfoRec INT10Options[] = {
{OPT_NOINT10, "NoINT10", OPTV_BOOLEAN, {0}, FALSE },
{OPT_INIT_PRIMARY, "InitPrimary", OPTV_BOOLEAN, {0}, FALSE },
- {OPT_BIOS_LOCATION, "BiosLocation", OPTV_STRING, {0}, FALSE },
{ -1, NULL, OPTV_NONE, {0}, FALSE },
};
@@ -271,92 +269,14 @@ initPrimary(const void* options)
return initPrimary;
}
-/*
- * xf86int10ParseBiosLocation(): allows to set the location of the
- * BIOS. One may select a BIOS of another card for posting or the
- * legacy V_BIOS range located at 0xc0000 or an alternative address
- * (BUS_ISA).
- * This is only useful under very special circumstances and should
- * be used with extreme care.
- */
-void
-xf86int10ParseBiosLocation(const void* options,
- xf86int10BiosLocationPtr bios)
-{
- const char *p;
- const char *str;
-
- bios->bus = BUS_NONE;
-
- if ((options == NULL)
- || ((str = xf86GetOptValString(options, OPT_BIOS_LOCATION)) == NULL)) {
- return;
- }
-
- if (strncasecmp(str, "pci", 3) == 0) {
- bios->bus = BUS_PCI;
- } else if (strncasecmp(str, "primary", 7) == 0) {
- bios->bus = BUS_ISA;
- }
- else {
- return;
- }
-
- p = strchr(str, ':');
-
- switch (bios->bus) {
- case BUS_ISA:
- bios->location.legacy = (p != NULL) ? atoi(++p) : 0;
- break;
- case BUS_PCI:
- if (p) {
- bios->location.pci.bus = atoi(++p);
- if ((p = strchr(p, ':'))) {
- bios->location.pci.dev = atoi(++p);
- if ((p = strchr(p, ':'))) {
- bios->location.pci.func = atoi(++p);
- break;
- }
- }
- }
- /* fall through */
- bios->bus = BUS_NONE;
- break;
- default:
- break;
- }
-}
-
-
BusType
-xf86int10GetBiosLocationType(const xf86Int10InfoPtr pInt,
- const xf86int10BiosLocationPtr bios)
+xf86int10GetBiosLocationType(const xf86Int10InfoPtr pInt)
{
- BusType location_type = bios->bus;
-
- switch (location_type) {
- case BUS_PCI:
- xf86DrvMsg(pInt->scrnIndex,X_CONFIG,"Overriding bios location: "
- "PCI:%i:%i%i\n",bios->location.pci.bus,
- bios->location.pci.dev,bios->location.pci.func);
- break;
- case BUS_ISA:
- if (bios->location.legacy)
- xf86DrvMsg(pInt->scrnIndex,X_CONFIG,"Overriding bios location: "
- "Legacy:0x%x\n",bios->location.legacy);
- else
- xf86DrvMsg(pInt->scrnIndex,X_CONFIG,"Overriding bios location: "
- "Legacy\n");
- break;
- case BUS_NONE: {
- EntityInfoPtr pEnt = xf86GetEntityInfo(pInt->entityIndex);
- location_type = pEnt->location.type;
- xfree(pEnt);
- break;
- }
- default:
- break;
- }
+ BusType location_type;
+
+ EntityInfoPtr pEnt = xf86GetEntityInfo(pInt->entityIndex);
+ location_type = pEnt->location.type;
+ xfree(pEnt);
return location_type;
}
@@ -371,40 +291,19 @@ xf86int10GetBiosLocationType(const xf86Int10InfoPtr pInt,
}
Bool
-xf86int10GetBiosSegment(xf86Int10InfoPtr pInt,
- const xf86int10BiosLocationPtr bios, void * base)
+xf86int10GetBiosSegment(xf86Int10InfoPtr pInt, void *base)
{
unsigned i;
int cs = ~0;
int segments[4];
const char * format;
+ segments[0] = MEM_RW(pInt, (0x10 << 2) + 2);
+ segments[1] = MEM_RW(pInt, (0x42 << 2) + 2);
+ segments[2] = V_BIOS >> 4;
+ segments[3] = ~0;
- if (bios->bus == BUS_ISA && bios->location.legacy) {
- xf86DrvMsg(pInt->scrnIndex, X_CONFIG,
- "Overriding BIOS location: 0x%x\n",
- bios->location.legacy);
-
- segments[0] = bios->location.legacy >> 4;
- segments[1] = ~0;
-
- format = "No V_BIOS at specified address 0x%lx\n";
- } else {
- if (bios->bus == BUS_PCI) {
- xf86DrvMsg(pInt->scrnIndex, X_WARNING,
- "Option BiosLocation for primary device ignored: "
- "It points to PCI.\n");
- xf86DrvMsg(pInt->scrnIndex, X_WARNING,
- "You must set Option InitPrimary also\n");
- }
-
- segments[0] = MEM_RW(pInt, (0x10 << 2) + 2);
- segments[1] = MEM_RW(pInt, (0x42 << 2) + 2);
- segments[2] = V_BIOS >> 4;
- segments[3] = ~0;
-
- format = "No V_BIOS found\n";
- }
+ format = "No V_BIOS found\n";
for (i = 0; segments[i] != ~0; i++) {
unsigned char * vbiosMem;
@@ -424,7 +323,7 @@ xf86int10GetBiosSegment(xf86Int10InfoPtr pInt,
}
xf86DrvMsg(pInt->scrnIndex, X_INFO, "Primary V_BIOS segment is: 0x%lx\n",
- (unsigned long)cs);
+ (unsigned long)cs);
pInt->BIOSseg = cs;
return TRUE;
diff --git a/hw/xfree86/int10/xf86int10.h b/hw/xfree86/int10/xf86int10.h
index a7beeea6c..0e6669d8f 100644
--- a/hw/xfree86/int10/xf86int10.h
+++ b/hw/xfree86/int10/xf86int10.h
@@ -59,18 +59,6 @@ typedef struct {
CARD8 save_vse;
CARD8 save_46e8;
} legacyVGARec, *legacyVGAPtr;
-
-typedef struct {
- BusType bus;
- union {
- struct {
- int bus;
- int dev;
- int func;
- } pci;
- int legacy;
- } location;
-} xf86int10BiosLocation, *xf86int10BiosLocationPtr;
/* OS dependent functions */
xf86Int10InfoPtr xf86InitInt10(int entityIndex);
@@ -185,12 +173,8 @@ Bool int10skip(const void* options);
Bool int10_check_bios(int scrnIndex, int codeSeg,
const unsigned char* vbiosMem);
Bool initPrimary(const void* options);
-void xf86int10ParseBiosLocation(const void* options,
- xf86int10BiosLocationPtr bios);
-BusType xf86int10GetBiosLocationType(const xf86Int10InfoPtr pInt,
- const xf86int10BiosLocationPtr bios);
-Bool xf86int10GetBiosSegment(xf86Int10InfoPtr pInt,
- const xf86int10BiosLocationPtr bios, void * base);
+BusType xf86int10GetBiosLocationType(const xf86Int10InfoPtr pInt);
+Bool xf86int10GetBiosSegment(xf86Int10InfoPtr pInt, void *base);
#ifdef DEBUG
void dprint(unsigned long start, unsigned long size);
#endif