添加帧缓冲区抽象并实现vesafb的驱动 (#483)

- 添加bootparams对象
- 修正由于bus的driver、device强弱引用关系 不正确从而导致对象被释放的bug
- 添加vesafb的驱动
- 实现framebuffer抽象层
- 为通用帧缓冲区抽象实现sysfs的属性
- 修改设备号DeviceNumber的定义
- 仿照linux,添加initcall,并在第一个内核线程中,调用他们。
This commit is contained in:
LoGin
2024-01-01 11:46:51 +08:00
committed by GitHub
parent e3eb08d4d7
commit c566df451c
45 changed files with 2179 additions and 391 deletions

View File

@ -2,3 +2,4 @@ pub mod apic;
mod c_adapter;
pub mod hpet;
pub mod tsc;
pub mod video;

View File

@ -0,0 +1,9 @@
use system_error::SystemError;
use crate::driver::video::fbdev::vesafb::vesafb_early_init;
/// 在内存管理初始化之前,初始化视频驱动(架构相关)
pub fn arch_video_early_init() -> Result<(), SystemError> {
vesafb_early_init()?;
return Ok(());
}