2022-08-06 11:48:40 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, able <abl3theabove@gmail.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
use super::vendors::Vendor::{self, *};
|
2022-08-08 11:09:01 +00:00
|
|
|
|
2022-08-06 11:48:40 +00:00
|
|
|
#[derive(PartialEq, Clone, Eq, Debug)]
|
|
|
|
pub struct DeviceID {
|
|
|
|
pub vendor: Vendor,
|
|
|
|
pub id: u16,
|
|
|
|
}
|
2022-08-08 11:09:01 +00:00
|
|
|
|
2022-08-06 11:48:40 +00:00
|
|
|
impl DeviceID {
|
|
|
|
pub const fn new(vendor: Vendor, id: u16) -> Self {
|
|
|
|
Self { vendor, id }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-08-08 11:09:01 +00:00
|
|
|
// FIXME: Unknown class
|
2022-08-07 03:12:48 +00:00
|
|
|
pub const S3INC_TRIO64V2: DeviceID = DeviceID::new(S3Inc, 0x8900);
|
2022-08-08 11:09:01 +00:00
|
|
|
|
|
|
|
// MassStorage_IDE (0x0101)
|
2022-08-08 18:39:02 +00:00
|
|
|
pub const INTEL_PIIX3_IDE: DeviceID = DeviceID::new(Intel, 0x7010);
|
2022-08-08 11:09:01 +00:00
|
|
|
pub const INTEL_PIIX4_IDE: DeviceID = DeviceID::new(Intel, 0x7111);
|
|
|
|
|
|
|
|
// Display_VGA (0x0300)
|
|
|
|
pub const VMWARE_SVGA2: DeviceID = DeviceID::new(VMware, 0x0405);
|