Struct panda_sys::MemoryRegionOps
source · #[repr(C)]pub struct MemoryRegionOps {
pub read: Option<unsafe extern "C" fn(opaque: *mut c_void, addr: hwaddr, size: c_uint) -> u64>,
pub write: Option<unsafe extern "C" fn(opaque: *mut c_void, addr: hwaddr, data: u64, size: c_uint)>,
pub read_with_attrs: Option<unsafe extern "C" fn(opaque: *mut c_void, addr: hwaddr, data: *mut u64, size: c_uint, attrs: MemTxAttrs) -> MemTxResult>,
pub write_with_attrs: Option<unsafe extern "C" fn(opaque: *mut c_void, addr: hwaddr, data: u64, size: c_uint, attrs: MemTxAttrs) -> MemTxResult>,
pub endianness: device_endian,
pub valid: MemoryRegionOps__bindgen_ty_1,
pub impl_: MemoryRegionOps__bindgen_ty_2,
pub old_mmio: MemoryRegionMmio,
}
Fields§
§read: Option<unsafe extern "C" fn(opaque: *mut c_void, addr: hwaddr, size: c_uint) -> u64>
§write: Option<unsafe extern "C" fn(opaque: *mut c_void, addr: hwaddr, data: u64, size: c_uint)>
§read_with_attrs: Option<unsafe extern "C" fn(opaque: *mut c_void, addr: hwaddr, data: *mut u64, size: c_uint, attrs: MemTxAttrs) -> MemTxResult>
§write_with_attrs: Option<unsafe extern "C" fn(opaque: *mut c_void, addr: hwaddr, data: u64, size: c_uint, attrs: MemTxAttrs) -> MemTxResult>
§endianness: device_endian
§valid: MemoryRegionOps__bindgen_ty_1
§impl_: MemoryRegionOps__bindgen_ty_2
§old_mmio: MemoryRegionMmio
Trait Implementations§
source§impl Clone for MemoryRegionOps
impl Clone for MemoryRegionOps
source§fn clone(&self) -> MemoryRegionOps
fn clone(&self) -> MemoryRegionOps
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MemoryRegionOps
impl Debug for MemoryRegionOps
impl Copy for MemoryRegionOps
Auto Trait Implementations§
impl RefUnwindSafe for MemoryRegionOps
impl Send for MemoryRegionOps
impl Sync for MemoryRegionOps
impl Unpin for MemoryRegionOps
impl UnwindSafe for MemoryRegionOps
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