xref: /DragonOS/kernel/src/driver/acpi/bus.rs (revision a03c4f9dee5705207325c56629c0ccd219168f10)
1 use alloc::sync::Arc;
2 
3 use crate::{
4     driver::base::device::{driver::Driver, Device},
5     syscall::SystemError,
6 };
7 
8 use super::AcpiManager;
9 
10 impl AcpiManager {
11     /// 通过acpi来匹配驱动
12     ///
13     /// 参考 https://opengrok.ringotek.cn/xref/linux-6.1.9/drivers/acpi/bus.c#949
14     pub fn driver_match_device(
15         &self,
16         _driver: &Arc<dyn Driver>,
17         _device: &Arc<dyn Device>,
18     ) -> Result<bool, SystemError> {
19         // todo:
20 
21         return Ok(false);
22     }
23 }
24