Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dec Initalize sc_dz[*].dz_line for the benefit of th...
details: https://anonhg.NetBSD.org/src/rev/f615204db7e7
branches: trunk
changeset: 536555:f615204db7e7
user: ad <ad%NetBSD.org@localhost>
date: Wed Sep 18 16:51:16 2002 +0000
description:
Initalize sc_dz[*].dz_line for the benefit of the bus front-end.
diffstat:
sys/dev/dec/dz.c | 8 +++++---
sys/dev/dec/dzvar.h | 4 ++--
2 files changed, 7 insertions(+), 5 deletions(-)
diffs (48 lines):
diff -r f437c661d0ca -r f615204db7e7 sys/dev/dec/dz.c
--- a/sys/dev/dec/dz.c Wed Sep 18 16:45:01 2002 +0000
+++ b/sys/dev/dec/dz.c Wed Sep 18 16:51:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dz.c,v 1.3 2002/09/06 13:18:43 gehenna Exp $ */
+/* $NetBSD: dz.c,v 1.4 2002/09/18 16:51:16 ad Exp $ */
/*
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.3 2002/09/06 13:18:43 gehenna Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.4 2002/09/18 16:51:16 ad Exp $");
#include "opt_ddb.h"
@@ -152,8 +152,10 @@
/* Initialize our softc structure. Should be done in open? */
- for (n = 0; n < sc->sc_type; n++)
+ for (n = 0; n < sc->sc_type; n++) {
+ sc->sc_dz[n].dz_line = n;
sc->sc_dz[n].dz_tty = ttymalloc();
+ }
evcnt_attach_dynamic(&sc->sc_rintrcnt, EVCNT_TYPE_INTR, parent_evcnt,
sc->sc_dev.dv_xname, "rintr");
diff -r f437c661d0ca -r f615204db7e7 sys/dev/dec/dzvar.h
--- a/sys/dev/dec/dzvar.h Wed Sep 18 16:45:01 2002 +0000
+++ b/sys/dev/dec/dzvar.h Wed Sep 18 16:51:16 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dzvar.h,v 1.1 2002/02/25 14:58:08 ad Exp $ */
+/* $NetBSD: dzvar.h,v 1.2 2002/09/18 16:51:16 ad Exp $ */
/*
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
* Copyright (c) 1992, 1993
@@ -61,7 +61,7 @@
u_char sc_dsr; /* DSR set bits if no mdm ctrl */
struct dz_linestate {
struct dz_softc *dz_sc; /* backpointer to softc */
- int dz_line; /* sub-driver unit number */
+ int dz_line; /* channel number */
void *dz_private; /* sub-driver data pointer */
int (*dz_catch) __P((void *, int)); /* Fast catch recv */
struct tty * dz_tty; /* what we work on */
Home |
Main Index |
Thread Index |
Old Index