ableos/ableos/src/devices/pci/support.rs

23 lines
456 B
Rust
Raw Normal View History

2022-08-06 11:48:40 +00:00
/*
* Copyright (c) 2022, able <abl3theabove@gmail.com>
*
* SPDX-License-Identifier: MPL-2.0
*/
use super::devices::*;
pub fn check_pci_support(device_id: DeviceID) -> bool {
match device_id {
2022-08-08 11:09:01 +00:00
// FIXME: Unknown class
2022-08-07 03:12:48 +00:00
S3INC_TRIO64V2 => true,
2022-08-08 11:09:01 +00:00
// MassStorage_IDE (0x0101)
INTEL_PIIX3_IDE => true,
2022-08-08 11:09:01 +00:00
INTEL_PIIX4_IDE => true,
// Display_VGA (0x0300)
VMWARE_SVGA2 => true,
2022-08-06 11:48:40 +00:00
_ => false,
}
}