Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Handle platforms that don't provide stream methods.



details:   https://anonhg.NetBSD.org/src/rev/3d2d3e46bde7
branches:  trunk
changeset: 526396:3d2d3e46bde7
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri May 03 03:30:48 2002 +0000

description:
Handle platforms that don't provide stream methods.
>From Hiroyuki Bessho, PR 16617.

diffstat:

 sys/dev/ic/smc91cxx.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 3b6a802decec -r 3d2d3e46bde7 sys/dev/ic/smc91cxx.c
--- a/sys/dev/ic/smc91cxx.c     Fri May 03 03:28:48 2002 +0000
+++ b/sys/dev/ic/smc91cxx.c     Fri May 03 03:30:48 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smc91cxx.c,v 1.39 2002/03/27 07:50:54 chs Exp $        */
+/*     $NetBSD: smc91cxx.c,v 1.40 2002/05/03 03:30:48 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.39 2002/03/27 07:50:54 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smc91cxx.c,v 1.40 2002/05/03 03:30:48 thorpej Exp $");
 
 #include "opt_inet.h"
 #include "opt_ccitt.h"
@@ -142,6 +142,11 @@
 #include <dev/ic/smc91cxxreg.h>
 #include <dev/ic/smc91cxxvar.h>
 
+#ifndef __BUS_SPACE_HAS_STREAM_METHODS
+#define bus_space_write_multi_stream_2 bus_space_write_multi_2
+#define bus_space_read_multi_stream_2  bus_space_read_multi_2
+#endif /* __BUS_SPACE_HAS_STREAM_METHODS */
+
 /* XXX Hardware padding doesn't work yet(?) */
 #define        SMC91CXX_SW_PAD
 



Home | Main Index | Thread Index | Old Index