diff options
| author | Nicolas Saenz Julienne <[email protected]> | 2021-01-12 13:55:28 +0100 |
|---|---|---|
| committer | Matthias Brugger <[email protected]> | 2021-02-18 11:56:26 +0100 |
| commit | 1a474559d90a4b4f7acd95050fe759fe52395867 (patch) | |
| tree | 9af29e23ffb041f64c9ea866ec39c25f08a58688 /include/command.h | |
| parent | 30b20e6b3f041d2a383d5a59303af21108afc1d7 (diff) | |
xhci: translate virtual addresses into the bus's address space
So far we've been content with passing physical addresses when
configuring memory addresses into XHCI controllers, but not all
platforms have buses with transparent mappings. Specifically the
Raspberry Pi 4 might introduce an offset to memory accesses incoming
from its PCIe port.
Introduce xhci_virt_to_bus() and xhci_bus_to_virt() to cater with these
limitations, and make sure we don't break non DM users.
Signed-off-by: Nicolas Saenz Julienne <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Tested-by: Peter Robinson <[email protected]>
[mb: fix compilation for 32 bit]
Signed-off-by: Matthias Brugger <[email protected]>
fix from nicolas
Diffstat (limited to 'include/command.h')
0 files changed, 0 insertions, 0 deletions
