Kluge the *tty() routines until this port is converted to config.new.
This commit is contained in:
parent
53d73c77a5
commit
f1e8ea1dcc
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dca.c,v 1.15 1995/04/10 01:01:40 mycroft Exp $ */
|
||||
/* $NetBSD: dca.c,v 1.16 1995/04/19 19:15:47 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -206,14 +206,11 @@ dcaprobe(hd)
|
|||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
#ifdef __STDC__
|
||||
dcaopen(dev_t dev, int flag, int mode, struct proc *p)
|
||||
#else
|
||||
int
|
||||
dcaopen(dev, flag, mode, p)
|
||||
dev_t dev;
|
||||
int flag, mode;
|
||||
struct proc *p;
|
||||
#endif
|
||||
{
|
||||
register struct tty *tp;
|
||||
register int unit;
|
||||
|
@ -270,6 +267,7 @@ dcaopen(dev, flag, mode, p)
|
|||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
dcaclose(dev, flag, mode, p)
|
||||
dev_t dev;
|
||||
int flag, mode;
|
||||
|
@ -304,6 +302,7 @@ dcaclose(dev, flag, mode, p)
|
|||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
dcaread(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
|
@ -324,6 +323,7 @@ dcaread(dev, uio, flag)
|
|||
return (error);
|
||||
}
|
||||
|
||||
int
|
||||
dcawrite(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
|
@ -333,7 +333,16 @@ dcawrite(dev, uio, flag)
|
|||
|
||||
return ((*linesw[tp->t_line].l_write)(tp, uio, flag));
|
||||
}
|
||||
|
||||
struct tty *
|
||||
dcatty(dev)
|
||||
dev_t dev;
|
||||
{
|
||||
|
||||
return (dca_tty[UNIT(dev)]);
|
||||
}
|
||||
|
||||
int
|
||||
dcaintr(unit)
|
||||
register int unit;
|
||||
{
|
||||
|
@ -488,6 +497,7 @@ dcamint(unit, dca)
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
dcaioctl(dev, cmd, data, flag, p)
|
||||
dev_t dev;
|
||||
int cmd;
|
||||
|
@ -549,6 +559,7 @@ dcaioctl(dev, cmd, data, flag, p)
|
|||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
dcaparam(tp, t)
|
||||
register struct tty *tp;
|
||||
register struct termios *t;
|
||||
|
@ -645,6 +656,7 @@ out:
|
|||
* Stop output on a line.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
dcastop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
@ -811,6 +823,7 @@ dcainit(unit, rate)
|
|||
splx(s);
|
||||
}
|
||||
|
||||
int
|
||||
dcacngetc(dev)
|
||||
dev_t dev;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dcm.c,v 1.16 1995/04/10 01:01:42 mycroft Exp $ */
|
||||
/* $NetBSD: dcm.c,v 1.17 1995/04/19 19:15:49 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -335,14 +335,11 @@ dcmprobe(hd)
|
|||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
#ifdef __STDC__
|
||||
dcmopen(dev_t dev, int flag, int mode, struct proc *p)
|
||||
#else
|
||||
int
|
||||
dcmopen(dev, flag, mode, p)
|
||||
dev_t dev;
|
||||
int flag, mode;
|
||||
struct proc *p;
|
||||
#endif
|
||||
{
|
||||
register struct tty *tp;
|
||||
register int unit, brd;
|
||||
|
@ -406,6 +403,7 @@ dcmopen(dev, flag, mode, p)
|
|||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
dcmclose(dev, flag, mode, p)
|
||||
dev_t dev;
|
||||
int flag, mode;
|
||||
|
@ -433,6 +431,7 @@ dcmclose(dev, flag, mode, p)
|
|||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
dcmread(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
|
@ -443,6 +442,7 @@ dcmread(dev, uio, flag)
|
|||
return ((*linesw[tp->t_line].l_read)(tp, uio, flag));
|
||||
}
|
||||
|
||||
int
|
||||
dcmwrite(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
|
@ -452,7 +452,16 @@ dcmwrite(dev, uio, flag)
|
|||
|
||||
return ((*linesw[tp->t_line].l_write)(tp, uio, flag));
|
||||
}
|
||||
|
||||
struct tty *
|
||||
dcmtty(dev)
|
||||
dev_t dev;
|
||||
{
|
||||
|
||||
return (dcm_tty[UNIT(dev)]);
|
||||
}
|
||||
|
||||
int
|
||||
dcmintr(brd)
|
||||
register int brd;
|
||||
{
|
||||
|
@ -720,6 +729,7 @@ dcmmint(unit, mcnd, dcm)
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
dcmioctl(dev, cmd, data, flag, p)
|
||||
dev_t dev;
|
||||
int cmd;
|
||||
|
@ -800,6 +810,7 @@ dcmioctl(dev, cmd, data, flag, p)
|
|||
return (0);
|
||||
}
|
||||
|
||||
int
|
||||
dcmparam(tp, t)
|
||||
register struct tty *tp;
|
||||
register struct termios *t;
|
||||
|
@ -997,6 +1008,7 @@ out:
|
|||
/*
|
||||
* Stop output on a line.
|
||||
*/
|
||||
int
|
||||
dcmstop(tp, flag)
|
||||
register struct tty *tp;
|
||||
int flag;
|
||||
|
@ -1242,6 +1254,7 @@ dcminit(dev, rate)
|
|||
splx(s);
|
||||
}
|
||||
|
||||
int
|
||||
dcmcngetc(dev)
|
||||
dev_t dev;
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ite.c,v 1.26 1995/04/10 01:01:50 mycroft Exp $ */
|
||||
/* $NetBSD: ite.c,v 1.27 1995/04/19 19:15:51 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988 University of Utah.
|
||||
|
@ -51,7 +51,6 @@
|
|||
#if NITE > 0
|
||||
|
||||
#include "grf.h"
|
||||
|
||||
#undef NITE
|
||||
#define NITE NGRF
|
||||
|
||||
|
@ -211,14 +210,11 @@ iteoff(dev, flag)
|
|||
}
|
||||
|
||||
/* ARGSUSED */
|
||||
#ifdef __STDC__
|
||||
iteopen(dev_t dev, int mode, int devtype, struct proc *p)
|
||||
#else
|
||||
int
|
||||
iteopen(dev, mode, devtype, p)
|
||||
dev_t dev;
|
||||
int mode, devtype;
|
||||
struct proc *p;
|
||||
#endif
|
||||
{
|
||||
int unit = UNIT(dev);
|
||||
register struct tty *tp;
|
||||
|
@ -262,6 +258,7 @@ iteopen(dev, mode, devtype, p)
|
|||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
iteclose(dev, flag, mode, p)
|
||||
dev_t dev;
|
||||
int flag, mode;
|
||||
|
@ -279,6 +276,7 @@ iteclose(dev, flag, mode, p)
|
|||
return(0);
|
||||
}
|
||||
|
||||
int
|
||||
iteread(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
|
@ -289,6 +287,7 @@ iteread(dev, uio, flag)
|
|||
return ((*linesw[tp->t_line].l_read)(tp, uio, flag));
|
||||
}
|
||||
|
||||
int
|
||||
itewrite(dev, uio, flag)
|
||||
dev_t dev;
|
||||
struct uio *uio;
|
||||
|
@ -299,6 +298,15 @@ itewrite(dev, uio, flag)
|
|||
return ((*linesw[tp->t_line].l_write)(tp, uio, flag));
|
||||
}
|
||||
|
||||
struct tty *
|
||||
itetty(dev)
|
||||
dev_t dev;
|
||||
{
|
||||
|
||||
return (ite_tty[UNIT(dev)]);
|
||||
}
|
||||
|
||||
int
|
||||
iteioctl(dev, cmd, addr, flag, p)
|
||||
dev_t dev;
|
||||
int cmd;
|
||||
|
@ -908,6 +916,7 @@ itecninit(cp)
|
|||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
int
|
||||
itecngetc(dev)
|
||||
dev_t dev;
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue