pub struct DevicePath {
pub libdrm_amdgpu: Option<LibDrmAmdgpu>,
pub render: PathBuf,
pub card: PathBuf,
pub accel: PathBuf,
pub pci: BUS_INFO,
pub sysfs_path: PathBuf,
pub device_id: Option<u32>,
pub revision_id: Option<u32>,
pub device_name: String,
pub arc_proc_index: Arc<Mutex<Vec<ProcInfo>>>,
pub config_pm: bool,
pub device_type: DeviceType,
}Fields§
§libdrm_amdgpu: Option<LibDrmAmdgpu>§render: PathBuf§card: PathBuf§accel: PathBuf§pci: BUS_INFO§sysfs_path: PathBuf§device_id: Option<u32>§revision_id: Option<u32>§device_name: String§arc_proc_index: Arc<Mutex<Vec<ProcInfo>>>§config_pm: bool§device_type: DeviceTypeImplementations§
Source§impl DevicePath
impl DevicePath
pub fn get_xdna_fw_version(&self) -> Result<String>
Source§impl DevicePath
impl DevicePath
pub fn init(&self) -> Result<DeviceHandle, i32>
pub fn get_fd(&self) -> Result<RawFd>
pub fn get_device_path_list() -> Vec<Self>
pub fn fill_amdgpu_device_name(&mut self)
pub fn get_gfx_target_version_from_kfd(&self) -> Option<GfxTargetVersion>
pub fn check_if_device_is_active(&self) -> bool
pub fn is_amdgpu(&self) -> bool
pub fn is_xdna(&self) -> bool
Trait Implementations§
Source§impl Clone for DevicePath
impl Clone for DevicePath
Source§fn clone(&self) -> DevicePath
fn clone(&self) -> DevicePath
Returns a duplicate 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 DevicePath
impl Debug for DevicePath
Auto Trait Implementations§
impl Freeze for DevicePath
impl RefUnwindSafe for DevicePath
impl Send for DevicePath
impl Sync for DevicePath
impl Unpin for DevicePath
impl UnwindSafe for DevicePath
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