Struct simics_api_sys::pci_bus_interface
source · #[repr(C)]pub struct pci_bus_interface {Show 18 fields
pub memory_access: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mem_op: *mut generic_transaction_t) -> exception_type_t>,
pub raise_interrupt: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, pin: c_int)>,
pub lower_interrupt: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, pin: c_int)>,
pub interrupt_acknowledge: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>,
pub add_map: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, space: addr_space_t, target: *mut conf_object_t, info: map_info_t) -> c_int>,
pub remove_map: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, space: addr_space_t, function: c_int) -> c_int>,
pub set_bus_number: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bus_id: c_int)>,
pub set_sub_bus_number: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bus_id: c_int)>,
pub add_default: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, space: addr_space_t, target: *mut conf_object_t, info: map_info_t)>,
pub remove_default: Option<unsafe extern "C" fn(obj: *mut conf_object_t, space: addr_space_t)>,
pub bus_reset: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub special_cycle: Option<unsafe extern "C" fn(obj: *mut conf_object_t, value: uint32)>,
pub system_error: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>,
pub get_bus_address: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t) -> c_int>,
pub set_device_status: Option<unsafe extern "C" fn(obj: *mut conf_object_t, device: c_int, function: c_int, enabled: c_int)>,
pub configuration_space: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> *mut conf_object_t>,
pub io_space: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> *mut conf_object_t>,
pub memory_space: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> *mut conf_object_t>,
}
Fields§
§memory_access: Option<unsafe extern "C" fn(obj: *mut conf_object_t, mem_op: *mut generic_transaction_t) -> exception_type_t>
Deprecated; memory_access
raise_interrupt: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, pin: c_int)>
§lower_interrupt: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, pin: c_int)>
§interrupt_acknowledge: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> c_int>
Deprecated; interrupt_acknowledge
add_map: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, space: addr_space_t, target: *mut conf_object_t, info: map_info_t) -> c_int>
§remove_map: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, space: addr_space_t, function: c_int) -> c_int>
§set_bus_number: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bus_id: c_int)>
§set_sub_bus_number: Option<unsafe extern "C" fn(obj: *mut conf_object_t, bus_id: c_int)>
§add_default: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t, space: addr_space_t, target: *mut conf_object_t, info: map_info_t)>
Deprecated; add_default, remove_default
remove_default: Option<unsafe extern "C" fn(obj: *mut conf_object_t, space: addr_space_t)>
§bus_reset: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§special_cycle: Option<unsafe extern "C" fn(obj: *mut conf_object_t, value: uint32)>
Deprecated; special_cycle
system_error: Option<unsafe extern "C" fn(obj: *mut conf_object_t)>
§get_bus_address: Option<unsafe extern "C" fn(obj: *mut conf_object_t, dev: *mut conf_object_t) -> c_int>
§set_device_status: Option<unsafe extern "C" fn(obj: *mut conf_object_t, device: c_int, function: c_int, enabled: c_int)>
§configuration_space: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> *mut conf_object_t>
Memory spaces
io_space: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> *mut conf_object_t>
§memory_space: Option<unsafe extern "C" fn(obj: *mut conf_object_t) -> *mut conf_object_t>
Trait Implementations§
source§impl Clone for pci_bus_interface
impl Clone for pci_bus_interface
source§fn clone(&self) -> pci_bus_interface
fn clone(&self) -> pci_bus_interface
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 pci_bus_interface
impl Debug for pci_bus_interface
source§impl Default for pci_bus_interface
impl Default for pci_bus_interface
source§fn default() -> pci_bus_interface
fn default() -> pci_bus_interface
Returns the “default value” for a type. Read more
source§impl Hash for pci_bus_interface
impl Hash for pci_bus_interface
source§impl Ord for pci_bus_interface
impl Ord for pci_bus_interface
source§fn cmp(&self, other: &pci_bus_interface) -> Ordering
fn cmp(&self, other: &pci_bus_interface) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for pci_bus_interface
impl PartialEq for pci_bus_interface
source§impl PartialOrd for pci_bus_interface
impl PartialOrd for pci_bus_interface
impl Copy for pci_bus_interface
impl Eq for pci_bus_interface
impl StructuralPartialEq for pci_bus_interface
Auto Trait Implementations§
impl Freeze for pci_bus_interface
impl RefUnwindSafe for pci_bus_interface
impl Send for pci_bus_interface
impl Sync for pci_bus_interface
impl Unpin for pci_bus_interface
impl UnwindSafe for pci_bus_interface
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)