From 2f3ba68db9b10f2d1d5861fb9422b7383eb63eae Mon Sep 17 00:00:00 2001 From: tsutsui Date: Mon, 20 Dec 1999 03:37:06 +0000 Subject: [PATCH] Add more SCR_BO(). NCR53c875 now works on macppc. XXX All SCR_BO() macros should be replaced with htole32() or le32toh(). --- sys/dev/pci/ncr.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c index 997a3dae5b7c..9b4d0c102051 100644 --- a/sys/dev/pci/ncr.c +++ b/sys/dev/pci/ncr.c @@ -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 @@ static int read_tekram_eeprom #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 @@ static void ncr_int_ma (ncb_p np, u_char dstat) 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 @@ static int ncr_scatter 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