1
0
Fork 0
forked from AbleOS/ableos
ableOS_v1Change/ableos/src/devices/id.rs

16 lines
199 B
Rust
Raw Normal View History

2022-02-28 06:48:56 -06:00
#[derive(Debug)]
pub enum Vendor {
Unknown = 0,
Ati = 1002,
2022-02-28 06:48:56 -06:00
}
pub fn match_vendor(id: u16) -> Vendor {
use Vendor::*;
2022-02-28 06:48:56 -06:00
match id {
1002 => Ati,
_ => Unknown,
2022-02-28 06:48:56 -06:00
}
}