Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Initialize hardware for mouse mode at ope...



details:   https://anonhg.NetBSD.org/src/rev/62654bca133f
branches:  trunk
changeset: 486317:62654bca133f
user:      is <is%NetBSD.org@localhost>
date:      Thu May 18 19:58:30 2000 +0000

description:
Initialize hardware for mouse mode at open time.
This fixes MB2 and MB3 on the 2nd mouse port (the first is initialized by
the Amiga ROM at boot time).

diffstat:

 sys/arch/amiga/dev/ms.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 3b6b67b63f8f -r 62654bca133f sys/arch/amiga/dev/ms.c
--- a/sys/arch/amiga/dev/ms.c   Thu May 18 19:45:46 2000 +0000
+++ b/sys/arch/amiga/dev/ms.c   Thu May 18 19:58:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ms.c,v 1.17 2000/05/18 15:39:23 kleink Exp $   */
+/*     $NetBSD: ms.c,v 1.18 2000/05/18 19:58:30 is Exp $       */
 
 /*
  * based on:
@@ -376,6 +376,9 @@
        if (ms->ms_events.ev_io)
                return(EBUSY);
 
+       /* initialize potgo bits for mouse mode */
+       custom.potgo = custom.potgor | (0xf00 << (port * 4));
+
        ms->ms_events.ev_io = p;
        ev_init(&ms->ms_events);        /* may cause sleep */
        ms_enable(ms);



Home | Main Index | Thread Index | Old Index