summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2005-05-21 20:29:58 +0000
committermarius <marius@FreeBSD.org>2005-05-21 20:29:58 +0000
commit524bb272a307ca9db2e35e23542f13c17af56f42 (patch)
tree6ab3f3b21b54230277bca51b72e64fe9fbc198a4
parent08a17e9d91cb875572f850999032edad28cd8078 (diff)
downloadFreeBSD-src-524bb272a307ca9db2e35e23542f13c17af56f42.zip
FreeBSD-src-524bb272a307ca9db2e35e23542f13c17af56f42.tar.gz
On sparc64 use 'syscons' rather than 'sc' for SC_DRIVER_NAME so
syscons(4) and its pseudo-devices don't get confused (including by other device drivers) with the system controller devices which are also termed 'sc' in the OFW tree (and which we probably want to interface with hwpmc(4) one day).
-rw-r--r--sys/dev/syscons/syscons.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/syscons/syscons.h b/sys/dev/syscons/syscons.h
index b5fb872..c013056 100644
--- a/sys/dev/syscons/syscons.h
+++ b/sys/dev/syscons/syscons.h
@@ -89,7 +89,15 @@
#define DPRINTF(l, p) if (SC_DEBUG_LEVEL >= (l)) printf p
+#ifndef __sparc64__
#define SC_DRIVER_NAME "sc"
+#else
+/*
+ * Use a different driver name on sparc64 so it does not get confused
+ * with the system controller devices which are also termed 'sc' in OFW.
+ */
+#define SC_DRIVER_NAME "syscons"
+#endif
#define SC_VTY(dev) minor(dev)
#define SC_DEV(sc, vty) ((sc)->dev[(vty) - (sc)->first_vty])
#define SC_STAT(dev) (*((scr_stat **)&(dev)->si_drv1))
OpenPOWER on IntegriCloud