Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pcmcia wrap optimized copy routines in an ifdef



details:   https://anonhg.NetBSD.org/src/rev/59363cc950db
branches:  trunk
changeset: 481691:59363cc950db
user:      chopps <chopps%NetBSD.org@localhost>
date:      Thu Feb 03 21:27:35 2000 +0000

description:
wrap optimized copy routines in an ifdef

diffstat:

 sys/dev/pcmcia/if_ray.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r 31e83d68ea38 -r 59363cc950db sys/dev/pcmcia/if_ray.c
--- a/sys/dev/pcmcia/if_ray.c   Thu Feb 03 21:04:30 2000 +0000
+++ b/sys/dev/pcmcia/if_ray.c   Thu Feb 03 21:27:35 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ray.c,v 1.9 2000/02/02 18:39:44 chopps Exp $        */
+/*     $NetBSD: if_ray.c,v 1.10 2000/02/03 21:27:35 chopps Exp $       */
 /* 
  * Copyright (c) 2000 Christian E. Hopps
  * All rights reserved.
@@ -2900,6 +2900,7 @@
        void *vp;
        size_t c;
 {
+#ifdef RAY_USE_OPTIMIZED_COPY
        u_int n2, n4, tmp;
        u_int8_t *p;
 
@@ -2942,6 +2943,9 @@
                bus_space_read_region_1(sc->sc_memt, sc->sc_memh, off, p, c);
                break;
        }
+#else
+       bus_space_read_region_1(sc->sc_memt, sc->sc_memh, off, vp, c);
+#endif
 }
 
 /*
@@ -2956,6 +2960,7 @@
        void *vp;
        size_t c;
 {
+#ifdef RAY_USE_OPTIMIZED_COPY
        size_t n2, n4, tmp;
        u_int8_t *p;
 
@@ -2997,6 +3002,9 @@
                bus_space_write_region_1(sc->sc_memt, sc->sc_memh, off, p, c);
                break;
        }
+#else
+       bus_space_write_region_1(sc->sc_memt, sc->sc_memh, off, vp, c);
+#endif
 }
 
 #ifdef RAY_DEBUG



Home | Main Index | Thread Index | Old Index