diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-08-14 15:44:09 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-08-14 15:44:09 +0000 |
commit | 0ad71f07e95298365a2b23f2defc2c14e01ddc19 (patch) | |
tree | f782edd95b270d9dbe586d80466a9876ba646155 /sys | |
parent | 8afea7be90f5ded0bd9adf76f2f4b25ea131ccdd (diff) |
remove magic swapping constants in favor of the #defines I added a few
minutes ago (could have sworn I hit ^X^S).
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/safe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/safe.c b/sys/dev/pci/safe.c index 3a566d2beb1..9f902e3e0a0 100644 --- a/sys/dev/pci/safe.c +++ b/sys/dev/pci/safe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: safe.c,v 1.4 2003/08/14 15:26:03 jason Exp $ */ +/* $OpenBSD: safe.c,v 1.5 2003/08/14 15:44:08 jason Exp $ */ /*- * Copyright (c) 2003 Sam Leffler, Errno Consulting @@ -1027,9 +1027,9 @@ safe_init_board(struct safe_softc *sc) WRITE_REG(sc, SAFE_PE_DMACFG, v); #if BYTE_ORDER == LITTLE_ENDIAN - WRITE_REG(sc, SAFE_ENDIAN, 0x00e400e4); + WRITE_REG(sc, SAFE_ENDIAN, SAFE_ENDIAN_TGT_PASS|SAFE_ENDIAN_DMA_PASS); #elif BYTE_ORDER == BIG_ENDIAN - WRITE_REG(sc, SAFE_ENDIAN, 0x00e4001b); + WRITE_REG(sc, SAFE_ENDIAN, SAFE_ENDIAN_TGT_PASS|SAFE_ENDIAN_DMA_SWAB); #endif if (sc->sc_chiprev == SAFE_REV(1,0)) { |