From 9eea13a67459eba19a46819e415ee96b2a1f2aa2 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 5 Dec 1999 19:40:18 +0000 Subject: [PATCH] Mark exactly 3 uses of the SCR_BO() macro as being bogus; these 3 uses already involve byte swapping on big-endian systems due to bus_space_*(). However, the use is self-consistent, and the value is not interpreted by the chip, so it probably does not matter. Leave them in for now; we can always look at their removal later. --- sys/dev/pci/ncr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c index b93d86358fa3..997a3dae5b7c 100644 --- a/sys/dev/pci/ncr.c +++ b/sys/dev/pci/ncr.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr.c,v 1.90 1999/12/05 19:33:13 thorpej Exp $ */ +/* $NetBSD: ncr.c,v 1.91 1999/12/05 19:40:18 thorpej Exp $ */ /************************************************************************** ** @@ -1524,7 +1524,7 @@ static int read_tekram_eeprom #if 0 static char ident[] = - "\n$NetBSD: ncr.c,v 1.90 1999/12/05 19:33:13 thorpej Exp $\n"; + "\n$NetBSD: ncr.c,v 1.91 1999/12/05 19:40:18 thorpej Exp $\n"; #endif static const u_long ncr_version = NCR_VERSION * 11 @@ -7827,7 +7827,7 @@ static int ncr_snooptest (struct ncb* np) ** Set memory and register. */ ncr_cache = host_wr; - OUTL (nc_temp, SCR_BO(ncr_wr)); + OUTL (nc_temp, SCR_BO(ncr_wr)); /* XXX XXX XXX BOGUS SCR_BO */ /* ** Start script (exchange values) */ @@ -7846,8 +7846,8 @@ static int ncr_snooptest (struct ncb* np) ** Read memory and register. */ host_rd = ncr_cache; - ncr_rd = SCR_BO(INL (nc_scratcha)); - ncr_bk = SCR_BO(INL (nc_temp)); + ncr_rd = SCR_BO(INL (nc_scratcha)); /* XXX XXX XXX BOGUS SCR_BO */ + ncr_bk = SCR_BO(INL (nc_temp)); /* XXX XXX XXX BOGUS SCR_BO */ /* ** Reset ncr chip */