Struct arceos_api::mem::DMAInfo
source · pub struct DMAInfo {
pub cpu_addr: NonNull<u8>,
pub bus_addr: BusAddr,
}
Available on crate feature
dma
only.Expand description
Represents information related to a DMA operation.
Fields§
§cpu_addr: NonNull<u8>
The cpu_addr
field represents the address at which the CPU accesses this memory region.
This address is a virtual memory address used by the CPU to access memory.
bus_addr: BusAddr
The bus_addr
field represents the physical address of this memory region on the bus.
The DMA controller uses this address to directly access memory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DMAInfo
impl RefUnwindSafe for DMAInfo
impl !Send for DMAInfo
impl !Sync for DMAInfo
impl Unpin for DMAInfo
impl UnwindSafe for DMAInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more