Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/dreamcast/dev/maple sc_port_units was set incorrect...



details:   https://anonhg.NetBSD.org/src/rev/a26bca5719c2
branches:  trunk
changeset: 507202:a26bca5719c2
user:      marcus <marcus%NetBSD.org@localhost>
date:      Fri Mar 16 19:57:49 2001 +0000

description:
sc_port_units was set incorrectly at probe time.

diffstat:

 sys/arch/dreamcast/dev/maple/maple.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0998fba578d6 -r a26bca5719c2 sys/arch/dreamcast/dev/maple/maple.c
--- a/sys/arch/dreamcast/dev/maple/maple.c      Fri Mar 16 19:32:35 2001 +0000
+++ b/sys/arch/dreamcast/dev/maple/maple.c      Fri Mar 16 19:57:49 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: maple.c,v 1.5 2001/02/03 23:25:51 marcus Exp $ */
+/*     $NetBSD: maple.c,v 1.6 2001/03/16 19:57:49 marcus Exp $ */
 
 /*-
  * Copyright (c) 2001 Marcus Comstedt
@@ -217,7 +217,7 @@
          for (p = 0; p < MAPLE_PORTS; p++)
            if ((sc->sc_rxbuf[p][0][0] & 0xff) == MAPLE_RESPONSE_DEVINFO)
 
-             sc->sc_port_units[p] = ((sc->sc_rxbuf[p][0][0]>>16)&0x1f)|1;
+             sc->sc_port_units[p] = ((sc->sc_rxbuf[p][0][0]>>15)&0x3e)|1;
 
            else
 



Home | Main Index | Thread Index | Old Index