xref: /DragonOS/kernel/src/driver/base/init.rs (revision 06d5e247267cb65b84a80f219853ccd0f384b16e)
1 use crate::syscall::SystemError;
2 
3 use super::{
4     class::classes_init,
5     device::{bus::buses_init, init::devices_init},
6     firmware::firmware_init,
7     hypervisor::hypervisor_init,
8     platform::platform_bus_init,
9 };
10 
11 pub(super) fn driver_init() -> Result<(), SystemError> {
12     devices_init()?;
13     buses_init()?;
14     classes_init()?;
15     firmware_init()?;
16     hypervisor_init()?;
17     platform_bus_init()?;
18     return Ok(());
19 }
20