Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/iomd g/c kbdpoll(), it was replaced with nopoll()



details:   https://anonhg.NetBSD.org/src/rev/04d35638923a
branches:  trunk
changeset: 538566:04d35638923a
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Oct 22 20:20:35 2002 +0000

description:
g/c kbdpoll(), it was replaced with nopoll()

diffstat:

 sys/arch/arm/iomd/kbd.c |  30 +-----------------------------
 1 files changed, 1 insertions(+), 29 deletions(-)

diffs (51 lines):

diff -r fb56a25fe67e -r 04d35638923a sys/arch/arm/iomd/kbd.c
--- a/sys/arch/arm/iomd/kbd.c   Tue Oct 22 20:15:25 2002 +0000
+++ b/sys/arch/arm/iomd/kbd.c   Tue Oct 22 20:20:35 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kbd.c,v 1.3 2002/10/05 17:16:35 chs Exp $      */
+/*     $NetBSD: kbd.c,v 1.4 2002/10/22 20:20:35 jdolecek Exp $ */
 
 /*
  * Copyright (c) 1994-1997 Mark Brinicombe.
@@ -151,7 +151,6 @@
 
 dev_type_open(kbdopen);
 dev_type_close(kbdclose);
-dev_type_poll(kbdpoll);
 dev_type_read(kbdread);
 dev_type_ioctl(kbdioctl);
 
@@ -328,33 +327,6 @@
 
 
 int
-kbdpoll(dev, events, p)
-       dev_t dev;
-       int events;
-       struct proc *p;
-{
-       struct kbd_softc *sc = kbd_cd.cd_devs[KBDUNIT(dev)];
-       int revents = 0;
-       int s = spltty();
-
-       if (KBDFLAG(dev) == KBDFLAG_CONUNIT) {
-               splx(s);
-               return(ENXIO);
-       }
-
-       if (events & (POLLIN | POLLRDNORM)) {
-               if (sc->sc_q.c_cc > 0)
-                       revents |= events & (POLLIN | POLLRDNORM);
-               else
-                       selrecord(p, &sc->sc_rsel);
-       }
-
-       splx(s);
-       return (revents);
-}
-
-
-int
 kbdioctl(dev, cmd, data, flag, p)
        dev_t dev;
        u_long cmd;



Home | Main Index | Thread Index | Old Index