Module Name: src Committed By: kiyohara Date: Sat Jun 22 13:36:17 UTC 2013
Modified Files: src/sys/arch/epoc32/dev: etna.c Log Message: Series 5 avoids access into I/O space. I don't know this reason... To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/epoc32/dev/etna.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/epoc32/dev/etna.c diff -u src/sys/arch/epoc32/dev/etna.c:1.1 src/sys/arch/epoc32/dev/etna.c:1.2 --- src/sys/arch/epoc32/dev/etna.c:1.1 Sun Apr 28 12:11:25 2013 +++ src/sys/arch/epoc32/dev/etna.c Sat Jun 22 13:36:16 2013 @@ -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 @@ etna_io_alloc(pcmcia_chipset_handle_t pc 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;