libdrm_amdgpu_sys 0.8.13

libdrm_amdgpu bindings for Rust, and some methods ported from Mesa3D.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// PCI link status
pub enum STATUS {
    Current,
    Max,
}

impl STATUS {
    pub const fn to_sysfs_file_name(&self) -> [&str; 2] {
        match self {
            Self::Current => ["current_link_speed", "current_link_width"],
            Self::Max => ["max_link_speed", "max_link_width"],
        }
    }
}