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 pcf_io_map() was returning invalid bus sp...



details:   https://anonhg.NetBSD.org/src/rev/1b121266cc82
branches:  trunk
changeset: 569495:1b121266cc82
user:      jandberg <jandberg%NetBSD.org@localhost>
date:      Sun Aug 22 13:15:11 2004 +0000

description:
pcf_io_map() was returning invalid bus space handles.
Generate them with bus_space_map() like suggested by <aymeric>.

diffstat:

 sys/arch/amiga/dev/gayle_pcmcia.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r f559b4648712 -r 1b121266cc82 sys/arch/amiga/dev/gayle_pcmcia.c
--- a/sys/arch/amiga/dev/gayle_pcmcia.c Sun Aug 22 06:56:03 2004 +0000
+++ b/sys/arch/amiga/dev/gayle_pcmcia.c Sun Aug 22 13:15:11 2004 +0000
@@ -1,9 +1,9 @@
-/*     $NetBSD: gayle_pcmcia.c,v 1.15 2004/08/16 10:07:52 aymeric Exp $ */
+/*     $NetBSD: gayle_pcmcia.c,v 1.16 2004/08/22 13:15:11 jandberg Exp $ */
 
 /* public domain */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gayle_pcmcia.c,v 1.15 2004/08/16 10:07:52 aymeric Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gayle_pcmcia.c,v 1.16 2004/08/22 13:15:11 jandberg Exp $");
 
 /* PCMCIA front-end driver for A1200's and A600's. */
 
@@ -378,7 +378,7 @@
        struct pccard_slot *slot = (struct pccard_slot *) pch;
 
        pcihp->iot = &slot->sc->io_space;
-       pcihp->ioh = offset;
+       bus_space_map(pcihp->iot, offset, size, 0, &pcihp->ioh);
 
        *windowp = 0;           /* unused */
        return 0;



Home | Main Index | Thread Index | Old Index