summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorrink <rink@FreeBSD.org>2006-03-03 14:52:57 +0000
committerrink <rink@FreeBSD.org>2006-03-03 14:52:57 +0000
commitc057d8091bf9f2862798af3adb7484d508ae7479 (patch)
tree179c24c34373313bc0465be4e37d0c300482d29b /sys/isa
parent44dc71d01c2239d95575519c8ec0be777d7d9546 (diff)
downloadFreeBSD-src-c057d8091bf9f2862798af3adb7484d508ae7479.zip
FreeBSD-src-c057d8091bf9f2862798af3adb7484d508ae7479.tar.gz
Committed the xbox syscons(8)-able console driver.
Reviewed by: arch@ (no comments) Approved by: imp (mentor)
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/syscons_isa.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/sys/isa/syscons_isa.c b/sys/isa/syscons_isa.c
index 3f750ef..130ad33 100644
--- a/sys/isa/syscons_isa.c
+++ b/sys/isa/syscons_isa.c
@@ -62,6 +62,12 @@ __FBSDID("$FreeBSD$");
#include <isa/isavar.h>
+#include "opt_xbox.h"
+
+#ifdef XBOX
+#include <machine/xbox.h>
+#endif
+
static devclass_t sc_devclass;
static sc_softc_t main_softc;
@@ -202,6 +208,19 @@ sc_get_cons_priority(int *unit, int *flags)
const char *at;
int u, f;
+#ifdef XBOX
+ /*
+ * The XBox Loader does not support hints, which makes our initial
+ * console probe fail. Therefore, if an XBox is found, we hardcode the
+ * existence of the console, as it is always there anyway.
+ */
+ if (arch_i386_is_xbox) {
+ *unit = 0;
+ *flags = SC_KERNEL_CONSOLE;
+ return CN_INTERNAL;
+ }
+#endif
+
*unit = -1;
for (u = 0; u < 16; u++) {
if (resource_disabled(SC_DRIVER_NAME, u))
OpenPOWER on IntegriCloud