summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2020-03-08 02:42:00 +0000
committerthorpej <thorpej@NetBSD.org>2020-03-08 02:42:00 +0000
commita2c3c26bf080f9f0c3fde8b34a480decaeb1f2d2 (patch)
tree9e923dea96ff558a8d4725e386e9a18cff0180bb /sys/dev
parent39563cf7493ff9949e5d5e49da6a0a52a2a6c6e3 (diff)
Add BUS_ADDR_{LO,HI}32() macros to correctly extract the lower and
upper halves of 64-bit DMA addresses for 32-bit and 64-bit bus_addr_t. This is a common pattern in modern drivers, so it's a good idea to provide a common correct definition. This particular implementation suggested by riastradh@.
Diffstat (limited to 'sys/dev')
0 files changed, 0 insertions, 0 deletions