Changeset cfe4852 in mainline
- Timestamp:
-
2017-11-14T22:54:32Z
(7 years ago)
- Author:
- Aearsis <Hlavaty.Ondrej@…>
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b80c1ab
- Parents:
- a1f83a3
- Message:
-
usbhost: introduce dma_buffer
Dma buffers shall simplify management of bounce buffers, eliminating the
errors of using malloc/malloc32, avoiding addr_to_phys.
The alloc function can be passed a policy to influence alignment and
flags. This will be used in future by xhci to allow bounce buffers
outside the lower 32b of addressable space, if the hardware supports it.
Also, the buffers are written with particular extension in mind: memory
pools. In previous HCs, there are a lot of situations where
significantly smaller buffer then PAGE_SIZE is needed, yet a page needs
to be allocated. We could solve this issue by building an allocator on
top of dma-available memory.
- Location:
- uspace/lib/usbhost
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
-
ra1f83a3
|
rcfe4852
|
|
40 | 40 | src/usb2_bus.c \ |
41 | 41 | src/bandwidth.c \ |
| 42 | src/dma_buffer.c \ |
42 | 43 | src/usb_transfer_batch.c |
43 | 44 | |