From f3cab653e7a7438c98fd9d89bea282b3bf178ef9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 26 Oct 1995 01:04:47 +0000 Subject: update from netbsd tree --- sys/arch/amiga/dev/ser.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sys/arch/amiga/dev/ser.c') diff --git a/sys/arch/amiga/dev/ser.c b/sys/arch/amiga/dev/ser.c index 20b0888a4d4..e9bcac294cd 100644 --- a/sys/arch/amiga/dev/ser.c +++ b/sys/arch/amiga/dev/ser.c @@ -1,4 +1,4 @@ -/* $NetBSD: ser.c,v 1.27 1995/04/23 18:24:40 chopps Exp $ */ +/* $NetBSD: ser.c,v 1.27.2.1 1995/10/20 11:01:14 chopps Exp $ */ /* * Copyright (c) 1982, 1986, 1990 The Regents of the University of California. @@ -67,9 +67,14 @@ void serattach __P((struct device *, struct device *, void *)); int sermatch __P((struct device *, struct cfdata *, void *)); +struct ser_softc { + struct device dev; + struct tty *ser_tty; +}; + struct cfdriver sercd = { NULL, "ser", (cfmatch_t)sermatch, serattach, DV_TTY, - sizeof(struct device), NULL, 0 }; + sizeof(struct ser_softc), NULL, 0 }; #ifndef SEROBUF_SIZE #define SEROBUF_SIZE 32 @@ -248,7 +253,8 @@ seropen(dev, flag, mode, p) if (ser_tty[unit]) tp = ser_tty[unit]; else - tp = ser_tty[unit] = ttymalloc(); + tp = ((struct ser_softc *)sercd.cd_devs[unit])->ser_tty = + ser_tty[unit] = ttymalloc(); tp->t_oproc = (void (*) (struct tty *)) serstart; tp->t_param = serparam; -- cgit v1.2.3