Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加FrameBuffer的接口抽象&完善设备驱动模型的class相关代码 #472

Conversation

fslongjin
Copy link
Member

@fslongjin fslongjin commented Dec 19, 2023

摘要

此提交旨在添加FrameBuffer的接口抽象,完善设备驱动模型,并在class下注册设备。主要内容包括:

  • 完善设备驱动模型中class的处理,使得能够在class下分类注册设备,同时添加了/sys/devices/virtual/sys/class/graphics文件夹,创建了一个graphics class,在里面增加了fbcon设备.
  • 目前注册了fbcon设备,但是由于虚拟终端还没写,因此fbcon的到终端以及帧缓冲区的映射还没加上去.
  • 添加FrameBuffer的接口抽象,参考了Linux 6.1.9的实现。

TODO

  • 下一个PR我将会添加vesafb的代码,并把vesafb注册到fbcon相关的管理机制内,并添加MMIO相关代码,使得用户程序能直接读取\写入帧缓冲(为接下来实现图形服务器做准备)
  • 需要增加虚拟终端的抽象层,并把vt和fbcon对接上
  • 把现有的textui的跟字体渲染有关的代码移动到fbcon或者vt内(还没想好)
  • 完善tty的代码,使得它能够与虚拟终端对接,并支持一系列的ioctl功能
  • 接入ssh到虚拟终端

欢迎大家一起来做上面这些需求!!!!

@fslongjin fslongjin requested a review from Chiichen December 19, 2023 11:43
目前注册了fbcon设备,但是由于虚拟终端还没写,因此fbcon的到终端以及帧缓冲区的映射还没加上去.
@fslongjin fslongjin force-pushed the patch-add-new-framebuffer-abstract branch from a5b6f9d to f84ec14 Compare December 19, 2023 11:43
@fslongjin fslongjin requested a review from YJwu2023 December 19, 2023 13:01
@fslongjin fslongjin merged commit 08a2ee4 into DragonOS-Community:master Dec 20, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant