aboutsummaryrefslogtreecommitdiff
path: root/sys/pci/if_rlreg.h
diff options
context:
space:
mode:
authorThomas Moestl <tmm@FreeBSD.org>2003-09-04 15:39:44 +0000
committerThomas Moestl <tmm@FreeBSD.org>2003-09-04 15:39:44 +0000
commiteec804bbb83d3f54b253b38456d9e29c2e0eb6c4 (patch)
tree6b72ea6b2f2650e96a0b4ee6f7801cef95f1f7f8 /sys/pci/if_rlreg.h
parent2cda2e47da35434fdcefc1b1b3806bce27793b5a (diff)
downloadsrc-eec804bbb83d3f54b253b38456d9e29c2e0eb6c4.tar.gz
src-eec804bbb83d3f54b253b38456d9e29c2e0eb6c4.zip
Use stream bus space accesses to program the ID (station address)
registers; otherwise, the byte order of the address is changed on big-endian machines.
Notes
Notes: svn path=/head/; revision=119738
Diffstat (limited to 'sys/pci/if_rlreg.h')
-rw-r--r--sys/pci/if_rlreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/pci/if_rlreg.h b/sys/pci/if_rlreg.h
index 0f43fe84834f..fcc4f4fc54cc 100644
--- a/sys/pci/if_rlreg.h
+++ b/sys/pci/if_rlreg.h
@@ -667,6 +667,8 @@ struct rl_softc {
/*
* register space access macros
*/
+#define CSR_WRITE_STREAM_4(sc, reg, val) \
+ bus_space_write_stream_4(sc->rl_btag, sc->rl_bhandle, reg, val)
#define CSR_WRITE_4(sc, reg, val) \
bus_space_write_4(sc->rl_btag, sc->rl_bhandle, reg, val)
#define CSR_WRITE_2(sc, reg, val) \