Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add more SCR_BO(). NCR53c875 now works on macppc.



details:   https://anonhg.NetBSD.org/src/rev/349cbdecaacb
branches:  trunk
changeset: 479716:349cbdecaacb
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Mon Dec 20 03:37:06 1999 +0000

description:
Add more SCR_BO(). NCR53c875 now works on macppc.

XXX All SCR_BO() macros should be replaced with htole32() or le32toh().

diffstat:

 sys/dev/pci/ncr.c |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (45 lines):

diff -r 46379bfab647 -r 349cbdecaacb sys/dev/pci/ncr.c
--- a/sys/dev/pci/ncr.c Mon Dec 20 03:25:57 1999 +0000
+++ b/sys/dev/pci/ncr.c Mon Dec 20 03:37:06 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ncr.c,v 1.91 1999/12/05 19:40:18 thorpej Exp $ */
+/*     $NetBSD: ncr.c,v 1.92 1999/12/20 03:37:06 tsutsui Exp $ */
 
 /**************************************************************************
 **
@@ -1524,7 +1524,7 @@
 
 #if 0
 static char ident[] =
-       "\n$NetBSD: ncr.c,v 1.91 1999/12/05 19:40:18 thorpej Exp $\n";
+       "\n$NetBSD: ncr.c,v 1.92 1999/12/20 03:37:06 tsutsui Exp $\n";
 #endif
 
 static const u_long    ncr_version = NCR_VERSION       * 11
@@ -6669,10 +6669,10 @@
                PRINT_ADDR(cp->xfer);
                printf ("newcmd[%ld] %x %x %x %x.\n",
                        (long)(newcmd - cp->patch),
-                       (unsigned)newcmd[0],
-                       (unsigned)newcmd[1],
-                       (unsigned)newcmd[2],
-                       (unsigned)newcmd[3]);
+                       (unsigned)SCR_BO(newcmd[0]),
+                       (unsigned)SCR_BO(newcmd[1]),
+                       (unsigned)SCR_BO(newcmd[2]),
+                       (unsigned)SCR_BO(newcmd[3]));
        }
        /*
        **      fake the return address (to the patch).
@@ -7660,9 +7660,9 @@
 
        for (segment = 0; segment < cp->xfer_dmamap->dm_nsegs; segment++) {
                phys->data[segment].addr =
-                   cp->xfer_dmamap->dm_segs[segment].ds_addr;
+                   SCR_BO(cp->xfer_dmamap->dm_segs[segment].ds_addr);
                phys->data[segment].size =
-                   cp->xfer_dmamap->dm_segs[segment].ds_len;
+                   SCR_BO(cp->xfer_dmamap->dm_segs[segment].ds_len);
        }
        return (segment);
 #else



Home | Main Index | Thread Index | Old Index