Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/epoc32/dev Series 5 avoids access into I/O space. ...



details:   https://anonhg.NetBSD.org/src/rev/9078199e0ddb
branches:  trunk
changeset: 787538:9078199e0ddb
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sat Jun 22 13:36:16 2013 +0000

description:
Series 5 avoids access into I/O space.  I don't know this reason...

diffstat:

 sys/arch/epoc32/dev/etna.c |  11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 42b553944a49 -r 9078199e0ddb sys/arch/epoc32/dev/etna.c
--- a/sys/arch/epoc32/dev/etna.c        Sat Jun 22 13:32:54 2013 +0000
+++ b/sys/arch/epoc32/dev/etna.c        Sat Jun 22 13:36:16 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: etna.c,v 1.1 2013/04/28 12:11:25 kiyohara Exp $        */
+/*     $NetBSD: etna.c,v 1.2 2013/06/22 13:36:16 kiyohara Exp $        */
 /*
  * Copyright (c) 2012 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: etna.c,v 1.1 2013/04/28 12:11:25 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: etna.c,v 1.2 2013/06/22 13:36:16 kiyohara Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -341,6 +341,13 @@
              bus_size_t align, struct pcmcia_io_handle *pcihp)
 {
        struct etna_softc *sc = (struct etna_softc *)pch;
+       extern char epoc32_model[];
+
+       /*
+        * XXXXX: Series 5 can't allocate I/O map???
+        */
+       if (strcmp(epoc32_model, "SERIES5 R1") == 0)
+               return -1;
 
        memset(pcihp, 0, sizeof(*pcihp));
        pcihp->iot = sc->sc_iot;



Home | Main Index | Thread Index | Old Index