summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-04-15 08:41:45 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-04-15 08:41:45 +0000
commit89952329a7697fbc42992cef138402b69fe53b93 (patch)
treec3fcdb17d5daedaf7e071f562bd665cf4ff94f35 /sys/arch
parent3fd8d51932feb00c768dc58dda6b93557cc05187 (diff)
Remove orphaned CLCD_DO_POLLED_INPUT code.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvme88k/dev/cl.c54
1 files changed, 2 insertions, 52 deletions
diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c
index f3c827ea752..3093775d32a 100644
--- a/sys/arch/mvme88k/dev/cl.c
+++ b/sys/arch/mvme88k/dev/cl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cl.c,v 1.40 2004/02/11 20:41:07 miod Exp $ */
+/* $OpenBSD: cl.c,v 1.41 2004/04/15 08:41:44 miod Exp $ */
/*
* Copyright (c) 1995 Dale Rahn. All rights reserved.
@@ -66,8 +66,6 @@
#define CL_TXINTR 0x02
#define CL_RXINTR 0x02
-#define CLCD_DO_POLLED_INPUT
-
struct cl_cons {
void *cl_paddr;
struct clreg *volatile cl_vaddr;
@@ -177,9 +175,6 @@ u_char clgetc(struct clsoftc *sc, int *channel);
#if 0
void cloutput(struct tty *tp);
#endif
-#ifdef CLCD_DO_POLLED_INPUT
-void cl_chkinput(void);
-#endif
struct cfattach cl_ca = {
sizeof(struct clsoftc), clprobe, clattach
@@ -191,10 +186,6 @@ struct cfdriver cl_cd = {
#define CLCDBUF 80
-#ifdef CLCD_DO_POLLED_INPUT
-int dopoll = 1;
-#endif
-
#define CL_UNIT(x) (minor(x) >> 2)
#define CL_CHANNEL(x) (minor(x) & 3)
@@ -345,9 +336,7 @@ clattach(parent, self, aux)
sc->sc_ih_r.ih_arg = sc;
sc->sc_ih_e.ih_wantframe = 0;
sc->sc_ih_r.ih_ipl = ca->ca_ipl;
-#ifdef CLCD_DO_POLLED_INPUT
- dopoll = 0;
-#endif
+
intr_establish(PCC2_VECT + SRXEIRQ, &sc->sc_ih_e);
intr_establish(PCC2_VECT + SMOIRQ, &sc->sc_ih_m);
intr_establish(PCC2_VECT + STxIRQ, &sc->sc_ih_t);
@@ -1135,45 +1124,6 @@ clputc(sc, unit, c)
return;
}
-#ifdef CLCD_DO_POLLED_INPUT
-void
-cl_chkinput()
-{
- struct tty *tp;
- int unit;
- struct clsoftc *sc;
- int channel;
-
- if (dopoll == 0)
- return;
- for (unit = 0; unit < cl_cd.cd_ndevs; unit++) {
- if (unit >= cl_cd.cd_ndevs ||
- (sc = (struct clsoftc *) cl_cd.cd_devs[unit]) == NULL) {
- continue;
- }
- if (cl_instat(sc)) {
- while (cl_instat(sc)){
- int ch;
- u_char c;
- /*
- *(pinchar++) = clcngetc();
- */
- ch = clgetc(sc,&channel) & 0xff;
- c = ch;
-
- tp = sc->sc_cl[channel].tty;
- if (NULL != tp) {
- (*linesw[tp->t_line].l_rint)(c,tp);
- }
- }
- /*
- wakeup(tp);
- */
- }
- }
-}
-#endif
-
u_char
clgetc(sc, channel)
struct clsoftc *sc;