summaryrefslogtreecommitdiffstats
path: root/sys/dev/si
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-09-22 20:00:12 +0000
committerpeter <peter@FreeBSD.org>1995-09-22 20:00:12 +0000
commit93bc840fa1fa7e0d6a7e90968972c3d5f51fef19 (patch)
tree762fcf97da0a6cb7cca55741546f9a44d577d5a5 /sys/dev/si
parent1d9235770f2fab4c1d8ed542aa5e65d7f8a8cf32 (diff)
downloadFreeBSD-src-93bc840fa1fa7e0d6a7e90968972c3d5f51fef19.zip
FreeBSD-src-93bc840fa1fa7e0d6a7e90968972c3d5f51fef19.tar.gz
Add some hooks visible from outside via nlist, so pstat can read the tty
state.
Diffstat (limited to 'sys/dev/si')
-rw-r--r--sys/dev/si/si.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index 613e6bf..17055e0 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -30,7 +30,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHORS BE LIABLE.
*
- * $Id: si.c,v 1.7 1995/09/13 08:45:28 peter Exp $
+ * $Id: si.c,v 1.8 1995/09/22 18:28:21 peter Exp $
*/
#ifndef lint
@@ -111,9 +111,11 @@ static char *si_mctl2str __P((enum si_mctl cmd));
#define DPRINT(x) /* void */
#endif
-static int si_Nports = 0;
-static int si_Nmodules = 0;
-static int si_debug = 0;
+static int si_Nports;
+static int si_Nmodules;
+static int si_debug = 0; /* data, not bss, so it's patchable */
+
+static struct tty *si_tty;
/* where the firmware lives */
extern int si_dsize;
@@ -588,6 +590,7 @@ mem_fail:
if (tp == 0)
goto mem_fail;
bzero(tp, sizeof(*tp) * nport);
+ si_tty = tp;
/* mark the device state as attached */
si_kdc[unit].kdc_state = DC_BUSY;
@@ -626,7 +629,7 @@ mem_fail:
break;
}
if (modp->sm_next == 0) {
- printf("si%d: %s, ports: %d, modules: %d\n",
+ printf("si%d: card: %s, ports: %d, modules: %d\n",
unit,
sc->sc_typename,
sc->sc_nport,
OpenPOWER on IntegriCloud