Struct simics::api::interface::interfaces::PcieMapInterface
source · pub struct PcieMapInterface {
obj: *mut ConfObject,
interface: *mut pcie_map_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut pcie_map_interface
Implementations§
source§impl PcieMapInterface
impl PcieMapInterface
sourcepub fn add_map(
&mut self,
map_obj: *mut conf_object_t,
nfo: map_info_t,
type_: pcie_type_t,
) -> Result<()>
pub fn add_map( &mut self, map_obj: *mut conf_object_t, nfo: map_info_t, type_: pcie_type_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn del_map(
&mut self,
map_obj: *mut conf_object_t,
base: physical_address_t,
type_: pcie_type_t,
) -> Result<()>
pub fn del_map( &mut self, map_obj: *mut conf_object_t, base: physical_address_t, type_: pcie_type_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn add_function(
&mut self,
map_obj: *mut conf_object_t,
function_id: uint16,
) -> Result<()>
pub fn add_function( &mut self, map_obj: *mut conf_object_t, function_id: uint16, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn del_function(
&mut self,
map_obj: *mut conf_object_t,
function_id: uint16,
) -> Result<()>
pub fn del_function( &mut self, map_obj: *mut conf_object_t, function_id: uint16, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn enable_function(&mut self, function_id: uint16) -> Result<()>
pub fn enable_function(&mut self, function_id: uint16) -> Result<()>
Automatically generated method for the interface
sourcepub fn disable_function(&mut self, function_id: uint16) -> Result<()>
pub fn disable_function(&mut self, function_id: uint16) -> Result<()>
Automatically generated method for the interface
sourcepub fn get_device_id(&mut self, dev_obj: *mut conf_object_t) -> Result<uint16>
pub fn get_device_id(&mut self, dev_obj: *mut conf_object_t) -> Result<uint16>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for PcieMapInterface
impl Interface for PcieMapInterface
source§type InternalInterface = pcie_map_interface
type InternalInterface = pcie_map_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for PcieMapInterface
impl RefUnwindSafe for PcieMapInterface
impl !Send for PcieMapInterface
impl !Sync for PcieMapInterface
impl Unpin for PcieMapInterface
impl UnwindSafe for PcieMapInterface
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