diff options
| author | thorpej <thorpej@NetBSD.org> | 1999-12-05 18:40:46 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 1999-12-05 18:40:46 +0000 |
| commit | d06db4b7dab78bfade6f97f53b976cd4bd6fce8b (patch) | |
| tree | 51c10d1804daacb4cfbef100efd97462378b039d /sys/dev/pci | |
| parent | d37aed91fb336324ecef28e47acd340f32ce36e8 (diff) | |
I have the feeling that OpenBSD has never tried the 53c825a, 53c875, 53c875j,
53c885, 53c895, or 53c896 on big-endian systems.
Diffstat (limited to 'sys/dev/pci')
| -rw-r--r-- | sys/dev/pci/ncr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c index cfe22367ab2..97efecb14d9 100644 --- a/sys/dev/pci/ncr.c +++ b/sys/dev/pci/ncr.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr.c,v 1.88 1999/12/05 18:25:18 thorpej Exp $ */ +/* $NetBSD: ncr.c,v 1.89 1999/12/05 18:40:46 thorpej Exp $ */ /************************************************************************** ** @@ -337,15 +337,15 @@ bus_space_write_4 (np->sc_st, np->sc_sh, (o), (val)) #define READSCRIPT_OFF(base, off) \ - SCR_BO(base ? *((INT32 *)((char *)base + (off))) : \ - bus_space_read_4 (np->ram_tag, np->ram_handle, off)) + (base ? SCR_BO(*((INT32 *)((char *)base + (off)))) : \ + bus_space_read_4 (np->ram_tag, np->ram_handle, off)) #define WRITESCRIPT_OFF(base, off, val) \ do { \ if (base) \ *((INT32 *)((char *)base + (off))) = (SCR_BO(val)); \ else \ - bus_space_write_4 (np->ram_tag, np->ram_handle, off, SCR_BO(val)); \ + bus_space_write_4 (np->ram_tag, np->ram_handle, off, (val)); \ } while (0) #define READSCRIPT(r) \ @@ -1518,7 +1518,7 @@ static int read_tekram_eeprom #if 0 static char ident[] = - "\n$NetBSD: ncr.c,v 1.88 1999/12/05 18:25:18 thorpej Exp $\n"; + "\n$NetBSD: ncr.c,v 1.89 1999/12/05 18:40:46 thorpej Exp $\n"; #endif static const u_long ncr_version = NCR_VERSION * 11 |
