summaryrefslogtreecommitdiffstats
path: root/sys/i386/xbox
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2014-02-16 14:35:19 +0000
committerbrueffer <brueffer@FreeBSD.org>2014-02-16 14:35:19 +0000
commitdb500f035427c363c4afa180d3b234adacb96191 (patch)
tree63caa25da69c60ee1c775c84847b460a187d4a08 /sys/i386/xbox
parent4a879c69ca41a52da751274229a9ca924b61b26e (diff)
downloadFreeBSD-src-db500f035427c363c4afa180d3b234adacb96191.zip
FreeBSD-src-db500f035427c363c4afa180d3b234adacb96191.tar.gz
Remove an nve(4)-specific workaround from the xbox port. nfe(4) doesn't
need it. Reviewed by: ed
Diffstat (limited to 'sys/i386/xbox')
-rw-r--r--sys/i386/xbox/xbox.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/i386/xbox/xbox.c b/sys/i386/xbox/xbox.c
index 623cf69..e89cc04 100644
--- a/sys/i386/xbox/xbox.c
+++ b/sys/i386/xbox/xbox.c
@@ -59,27 +59,6 @@ xbox_init(void)
/* register our poweroff function */
EVENTHANDLER_REGISTER (shutdown_final, xbox_poweroff, NULL,
SHUTDOWN_PRI_LAST);
-
- /*
- * Some XBOX loaders, such as Cromwell, have a flaw which cause the
- * nve(4) driver to fail attaching to the NIC.
- *
- * This is because they leave the NIC running; this will cause the
- * Nvidia driver to fail as the NIC does not return any sensible
- * values and thus fails attaching (using an error 0x5, this means
- * it cannot find a valid PHY)
- *
- * We bluntly tell the NIC to stop whatever it's doing; this makes
- * nve(4) attach correctly. As the NIC always resides at
- * 0xfef00000-0xfef003ff on an XBOX, we simply hardcode this address.
- */
- ptr = pmap_mapdev (0xfef00000, 0x400);
- *(uint32_t*)(ptr + 0x188) = 0; /* clear adapter control field */
- pmap_unmapdev ((vm_offset_t)ptr, 0x400);
}
-/*
- * This must be called before the drivers, as the if_nve(4) driver will fail
- * if we do not do this in advance.
- */
SYSINIT(xbox, SI_SUB_DRIVERS, SI_ORDER_FIRST, xbox_init, NULL);
OpenPOWER on IntegriCloud