/* * Copyright (c) 2022, able * * SPDX-License-Identifier: MPL-2.0 */ use super::vendors::Vendor::{self, *}; #[derive(PartialEq, Clone, Eq, Debug)] pub struct DeviceID { pub vendor: Vendor, pub id: u16, } impl DeviceID { pub const fn new(vendor: Vendor, id: u16) -> Self { Self { vendor, id } } } // FIXME: Unknown class pub const S3INC_TRIO64V2: DeviceID = DeviceID::new(S3Inc, 0x8900); // MassStorage_IDE (0x0101) pub const INTEL_PIIX3_IDE: DeviceID = DeviceID::new(Intel, 0x7010); pub const INTEL_PIIX4_IDE: DeviceID = DeviceID::new(Intel, 0x7111); // Display_VGA (0x0300) pub const VMWARE_SVGA2: DeviceID = DeviceID::new(VMware, 0x0405);