various small netbsd-ifications
This commit is contained in:
parent
d22f586c29
commit
6b8ee3c10f
@ -100,7 +100,6 @@ void dcstart __P((struct tty *));
|
||||
void dcxint __P((struct tty *));
|
||||
void dcPutc __P((dev_t, int));
|
||||
void dcscan __P((void *));
|
||||
extern void ttrstrt __P((void *));
|
||||
int dcGetc __P((dev_t));
|
||||
int dcparam __P((struct tty *, struct termios *));
|
||||
extern void KBDReset __P((dev_t, void (*)()));
|
||||
@ -335,12 +334,11 @@ dcwrite(dev, uio, flag)
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
dcioctl(dev, cmd, data, flag, p)
|
||||
dcioctl(dev, cmd, data, flag)
|
||||
dev_t dev;
|
||||
int cmd;
|
||||
caddr_t data;
|
||||
int flag;
|
||||
struct proc *p;
|
||||
{
|
||||
register struct tty *tp;
|
||||
register int unit = minor(dev);
|
||||
@ -348,7 +346,7 @@ dcioctl(dev, cmd, data, flag, p)
|
||||
int error;
|
||||
|
||||
tp = &dc_tty[unit];
|
||||
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
|
||||
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag);
|
||||
if (error >= 0)
|
||||
return (error);
|
||||
error = ttioctl(tp, cmd, data, flag);
|
||||
@ -587,7 +585,7 @@ dcxint(tp)
|
||||
if (tp->t_state & TS_FLUSH)
|
||||
tp->t_state &= ~TS_FLUSH;
|
||||
else {
|
||||
ndflush(&tp->t_outq, dp->p_mem-tp->t_outq.c_cf);
|
||||
ndflush(&tp->t_outq, (u_char *)(dp->p_mem) - tp->t_outq.c_cf);
|
||||
dp->p_end = dp->p_mem = tp->t_outq.c_cf;
|
||||
}
|
||||
if (tp->t_line)
|
||||
|
@ -120,7 +120,6 @@ SOFTWARE.
|
||||
|
||||
extern int pmax_boardtype;
|
||||
|
||||
extern int ttrstrt __P((void *));
|
||||
void dtop_keyboard_repeat __P((void *));
|
||||
int dtop_null_device_handler __P((dtop_device_t, dtop_message_t, int, int));
|
||||
int dtop_locator_handler __P((dtop_device_t, dtop_message_t, int, int));
|
||||
@ -304,19 +303,18 @@ dtopwrite(dev, uio, flag)
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
dtopioctl(dev, cmd, data, flag, p)
|
||||
dtopioctl(dev, cmd, data, flag)
|
||||
dev_t dev;
|
||||
int cmd;
|
||||
caddr_t data;
|
||||
int flag;
|
||||
struct proc *p;
|
||||
{
|
||||
register struct tty *tp;
|
||||
register int unit = minor(dev);
|
||||
int error;
|
||||
|
||||
tp = &dtop_tty[unit];
|
||||
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
|
||||
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag);
|
||||
if (error >= 0)
|
||||
return (error);
|
||||
error = ttioctl(tp, cmd, data, flag);
|
||||
|
@ -67,7 +67,6 @@
|
||||
#include <sys/tty.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/kernel.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/errno.h>
|
||||
#include <sys/proc.h>
|
||||
|
@ -97,7 +97,6 @@
|
||||
|
||||
extern int pmax_boardtype;
|
||||
extern struct consdev cn_tab;
|
||||
extern void ttrstrt __P((void *));
|
||||
extern void KBDReset __P((dev_t, void (*)()));
|
||||
extern void MouseInit __P((dev_t, void (*)(), int (*)()));
|
||||
|
||||
@ -420,19 +419,18 @@ sccwrite(dev, uio, flag)
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
sccioctl(dev, cmd, data, flag, p)
|
||||
sccioctl(dev, cmd, data, flag)
|
||||
dev_t dev;
|
||||
int cmd;
|
||||
caddr_t data;
|
||||
int flag;
|
||||
struct proc *p;
|
||||
{
|
||||
register struct scc_softc *sc;
|
||||
register struct tty *tp;
|
||||
int error, line;
|
||||
|
||||
tp = &scc_tty[minor(dev)];
|
||||
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag, p);
|
||||
error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flag);
|
||||
if (error >= 0)
|
||||
return (error);
|
||||
error = ttioctl(tp, cmd, data, flag);
|
||||
@ -646,7 +644,8 @@ sccintr(unit)
|
||||
if (tp->t_state & TS_FLUSH)
|
||||
tp->t_state &= ~TS_FLUSH;
|
||||
else {
|
||||
ndflush(&tp->t_outq, dp->p_mem-tp->t_outq.c_cf);
|
||||
ndflush(&tp->t_outq,
|
||||
(u_char *)(dp->p_mem) - tp->t_outq.c_cf);
|
||||
dp->p_end = dp->p_mem = tp->t_outq.c_cf;
|
||||
}
|
||||
if (tp->t_line)
|
||||
|
Loading…
Reference in New Issue
Block a user