summaryrefslogtreecommitdiff
path: root/bin/pax/pat_rep.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-12-10 12:03:25 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-12-10 12:03:25 +0000
commit3760b8188538bdd7d2b0a5cfc55e581ec75a4e1b (patch)
tree543892a9d89f76ce1188bc33d4364132928fcf83 /bin/pax/pat_rep.h
parent26b49252bc211525260917c42643d9248d585eab (diff)
another go at cleaning up bus_dma usage.
when you're using the bus dma api like we are, there are two bus_dma_segment_t's involved, one for the pa stuff and one for the dva stuff. we set this up ok in ami_allocmem, but then we forget half of it when we return from that function. even worse, we assume theyre the same thing in ami_freemem. this diff fixes that by wrapping all the dma bits into a struct (called struct ami_mem) and providing a few macros for accessing the useful parts of it. we just pass this struct around now instead of having to handle all the busdma bits in every function. ok marco@ jason@ krw@
Diffstat (limited to 'bin/pax/pat_rep.h')
0 files changed, 0 insertions, 0 deletions