Skip to content

增加serio总线和相关trait #488

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

Merged

Conversation

2447742618
Copy link
Contributor

No description provided.


use super::{serio_bus, serio_device::SerioDevice};

/// @brief: 实现该trait的设备驱动实例应挂载在serio总线上,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/// 参考: https://code.dragonos.org.cn/xref/linux-6.1.9/include/linux/serio.h#67
pub trait SerioDriver: Driver {
fn write_wakeup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>;
fn interrupt(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

每个接口的含义要标明一下


/// 参考: https://code.dragonos.org.cn/xref/linux-6.1.9/include/linux/serio.h#20
pub trait SerioDevice: Device {
/// @brief: Serio设备写入数据
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fslongjin fslongjin merged commit d8e29bf into DragonOS-Community:master Jan 17, 2024
yuyi2439 added a commit to yuyi2439/DragonOS that referenced this pull request Jan 21, 2024
commit 43ef2a0
Author: LoGin <[email protected]>
Date:   Sun Jan 21 18:45:07 2024 +0800

    添加riscv64的github workflow (DragonOS-Community#499)

    * 添加riscv64的github workflow

commit 7a29d4f
Author: LoGin <[email protected]>
Date:   Sun Jan 21 15:38:12 2024 +0800

    riscv64: 映射uefi systemtable,并完善了riscv64页表填写的部分内容 (DragonOS-Community#498)

    * 从fdt的chosen段获取几个需要的字段

    * merge patch-early-ioremap

    * feature: 增加early io remap的fixmap功能

    允许在内存管理初始化之前,使用fixmap功能,映射一些物理内存,并记录.

    * riscv64: 映射uefi systemtable,并完善了riscv64页表填写的部分内容

    * 更新仓库网址

commit 3e3c631
Author: Chiichen <[email protected]>
Date:   Sun Jan 21 01:38:45 2024 +0800

    fix: 修复了ps2和tty初始化顺序的错误 (DragonOS-Community#497)

    * 修复了ps2和tty初始化顺序的错误

commit 74ffde6
Author: LoGin <[email protected]>
Date:   Sun Jan 21 01:21:55 2024 +0800

    feature: 增加early io remap的fixmap功能 (DragonOS-Community#495)

    允许在内存管理初始化之前,使用fixmap功能,映射一些物理内存,并记录.

commit 1f58c8f
Author: LoGin <[email protected]>
Date:   Thu Jan 18 22:39:58 2024 +0800

    Update mini-backtrace版本到e0b1d90940 (DragonOS-Community#494)

    内容:

    [https://github.com/DragonOS-Community/mini-backtrace/pull/1](https://github.com/DragonOS-Community/mini-backtrace/pull/1)

    Co-authored-by: Yao Zhao <[email protected]>

commit c75ef4e
Author: LoGin <[email protected]>
Date:   Thu Jan 18 00:09:36 2024 +0800

    添加early ioremap支持 (DragonOS-Community#492)

    * 使用early io remap来映射早期的vesa缓冲区

commit d8e29bf
Author: R0ronoa <[email protected]>
Date:   Wed Jan 17 23:57:49 2024 +0800

    增加serio总线和相关trait (DragonOS-Community#488)

    * 新增serio总线和相关trait

    * 补充SerioDeviceManager和SerioDriverManager
chiichen added a commit to chiichen/DragonOS that referenced this pull request Jan 22, 2024
commit 43ef2a0
Author: LoGin <[email protected]>
Date:   Sun Jan 21 18:45:07 2024 +0800

    添加riscv64的github workflow (DragonOS-Community#499)

    * 添加riscv64的github workflow

commit 7a29d4f
Author: LoGin <[email protected]>
Date:   Sun Jan 21 15:38:12 2024 +0800

    riscv64: 映射uefi systemtable,并完善了riscv64页表填写的部分内容 (DragonOS-Community#498)

    * 从fdt的chosen段获取几个需要的字段

    * merge patch-early-ioremap

    * feature: 增加early io remap的fixmap功能

    允许在内存管理初始化之前,使用fixmap功能,映射一些物理内存,并记录.

    * riscv64: 映射uefi systemtable,并完善了riscv64页表填写的部分内容

    * 更新仓库网址

commit 3e3c631
Author: Chiichen <[email protected]>
Date:   Sun Jan 21 01:38:45 2024 +0800

    fix: 修复了ps2和tty初始化顺序的错误 (DragonOS-Community#497)

    * 修复了ps2和tty初始化顺序的错误

commit 74ffde6
Author: LoGin <[email protected]>
Date:   Sun Jan 21 01:21:55 2024 +0800

    feature: 增加early io remap的fixmap功能 (DragonOS-Community#495)

    允许在内存管理初始化之前,使用fixmap功能,映射一些物理内存,并记录.

commit 1f58c8f
Author: LoGin <[email protected]>
Date:   Thu Jan 18 22:39:58 2024 +0800

    Update mini-backtrace版本到e0b1d90940 (DragonOS-Community#494)

    内容:

    [https://github.com/DragonOS-Community/mini-backtrace/pull/1](https://github.com/DragonOS-Community/mini-backtrace/pull/1)

    Co-authored-by: Yao Zhao <[email protected]>

commit c75ef4e
Author: LoGin <[email protected]>
Date:   Thu Jan 18 00:09:36 2024 +0800

    添加early ioremap支持 (DragonOS-Community#492)

    * 使用early io remap来映射早期的vesa缓冲区

commit d8e29bf
Author: R0ronoa <[email protected]>
Date:   Wed Jan 17 23:57:49 2024 +0800

    增加serio总线和相关trait (DragonOS-Community#488)

    * 新增serio总线和相关trait

    * 补充SerioDeviceManager和SerioDriverManager
@2447742618 2447742618 deleted the patch-serio-device-and-driver branch January 24, 2024 14:41
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.

2 participants