Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcsh/dev/hd64461 In hd64461pcmcia_chip_io_map set ...
details: https://anonhg.NetBSD.org/src/rev/ccf501f978e5
branches: trunk
changeset: 553931:ccf501f978e5
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Oct 23 02:34:07 2003 +0000
description:
In hd64461pcmcia_chip_io_map set *windowp to 0.
This driver ignores i/o window handle, but most 'at pcmcia'
attachments init their sc_io_window to -1 and then check at detach
time if it was changed from the "bad" value. Keep them happy, so that
they can correctly clean up when card is detached.
diffstat:
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 658f9f5c2654 -r ccf501f978e5 sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c
--- a/sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c Thu Oct 23 02:32:18 2003 +0000
+++ b/sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c Thu Oct 23 02:34:07 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hd64461pcmcia.c,v 1.22 2003/07/15 02:29:37 lukem Exp $ */
+/* $NetBSD: hd64461pcmcia.c,v 1.23 2003/10/23 02:34:07 uwe Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hd64461pcmcia.c,v 1.22 2003/07/15 02:29:37 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hd64461pcmcia.c,v 1.23 2003/10/23 02:34:07 uwe Exp $");
#include "debug_hpcsh.h"
@@ -711,6 +711,9 @@
hd64461_set_bus_width(CHANNEL_0, width);
+ /* fake. drivers init that to -1 and check if it was changed. */
+ *windowp = 0;
+
DPRINTF("%#lx:%#lx+%#lx %s\n", pcihp->ioh, offset, size,
width_names[width]);
Home |
Main Index |
Thread Index |
Old Index