mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 00:46:31 +00:00
完善设备驱动模型&调试串口驱动 (#379)
* 完成了基本架构重构,正在进行兼容 * 重构了所有 Device Driver ,还没有接上具体设备 * 基本把 Uart 接上了,还没有测试 * 初步完成系统设备初始化 * 初步重构 BlockDevice ,使其兼容新的 Device 结构 * 修改文件系统内的部分函数调用以满足重构后的接口 * 测试完 Uart 设备的功能 * 移除了自动添加的文件 * 修复了 warning 和部分格式 * 解决warning,并且修正sysfs初始化的位置 * Patch fix * 删除了 sysinfo 的默认实现 * 删除了字符设备读写的 offset 参数 * 修复了 warning 和一些小逻辑错误 --------- Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
@ -10,7 +10,7 @@ use elf::{endian::AnyEndian, file::FileHeader, segment::ProgramHeader};
|
||||
use crate::{
|
||||
arch::MMArch,
|
||||
current_pcb,
|
||||
filesystem::vfs::io::SeekFrom,
|
||||
driver::base::block::SeekFrom,
|
||||
kerror,
|
||||
libs::align::page_align_up,
|
||||
mm::{
|
||||
|
@ -7,7 +7,7 @@ use core::{
|
||||
use alloc::{boxed::Box, collections::LinkedList, string::String, sync::Arc};
|
||||
|
||||
use crate::{
|
||||
driver::uart::uart::{c_uart_send_str, UartPort},
|
||||
driver::uart::uart_device::{c_uart_send_str, UartPort},
|
||||
include::bindings::bindings::{
|
||||
scm_buffer_info_t, video_frame_buffer_info, video_reinitialize, video_set_refresh_target,
|
||||
},
|
||||
|
@ -1,5 +1,5 @@
|
||||
use crate::{
|
||||
driver::uart::uart::{c_uart_send, c_uart_send_str, UartPort},
|
||||
driver::uart::uart_device::{c_uart_send, c_uart_send_str, UartPort},
|
||||
include::bindings::bindings::video_frame_buffer_info,
|
||||
kinfo,
|
||||
libs::{lib_ui::font::FONT_8x16, spinlock::SpinLock},
|
||||
|
@ -4,7 +4,7 @@ use core::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
driver::uart::uart::{c_uart_send, UartPort},
|
||||
driver::uart::uart_device::{c_uart_send, UartPort},
|
||||
include::bindings::bindings::video_frame_buffer_info,
|
||||
syscall::SystemError,
|
||||
};
|
||||
|
@ -4,7 +4,7 @@ use core::mem::size_of;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
|
||||
use crate::{filesystem::vfs::io::SeekFrom, syscall::SystemError};
|
||||
use crate::{driver::base::block::SeekFrom, syscall::SystemError};
|
||||
|
||||
/// @brief 本模块用于为数组提供游标的功能,以简化其操作。
|
||||
#[derive(Debug)]
|
||||
|
Reference in New Issue
Block a user