Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/dev Probe not only Nereid Ctrl port but also S...



details:   https://anonhg.NetBSD.org/src/rev/2e18cb470c93
branches:  trunk
changeset: 756570:2e18cb470c93
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sat Jul 24 13:15:13 2010 +0000

description:
Probe not only Nereid Ctrl port but also SL811HS/T port.

diffstat:

 sys/arch/x68k/dev/slhci_intio.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 34943c03803c -r 2e18cb470c93 sys/arch/x68k/dev/slhci_intio.c
--- a/sys/arch/x68k/dev/slhci_intio.c   Sat Jul 24 09:35:36 2010 +0000
+++ b/sys/arch/x68k/dev/slhci_intio.c   Sat Jul 24 13:15:13 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: slhci_intio.c,v 1.13 2010/05/08 02:48:31 isaki Exp $   */
+/*     $NetBSD: slhci_intio.c,v 1.14 2010/07/24 13:15:13 isaki Exp $   */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: slhci_intio.c,v 1.13 2010/05/08 02:48:31 isaki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: slhci_intio.c,v 1.14 2010/07/24 13:15:13 isaki Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -87,6 +87,10 @@
               ia->ia_intr == SLHCI_INTIO_INTR2   ) )
                return 0;
 
+       /* Whether the SL811 port is accessible or not */
+       if (badaddr((void *)IIOV(ia->ia_addr)))
+               return 0;
+
        /* Whether the control port is accessible or not */
        nc_addr = ia->ia_addr + NEREID_ADDR_OFFSET;
        nc_size = 0x02;



Home | Main Index | Thread Index | Old Index