summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1999-12-05 19:40:18 +0000
committerthorpej <thorpej@NetBSD.org>1999-12-05 19:40:18 +0000
commit9eea13a67459eba19a46819e415ee96b2a1f2aa2 (patch)
treef7799a7e374cd2b807bce9d2dabcf3f3307d5500 /sys/dev/pci
parent8c1cbdbed577c29fc5ca80d98835e47178bfb52d (diff)
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.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/ncr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c
index b93d86358fa..997a3dae5b7 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
*/