SimpleKernel 1.17.0
Loading...
Searching...
No Matches
device_node.hpp File Reference
#include <concepts>
#include <cstddef>
#include <cstdint>
#include "expected.hpp"
Include dependency graph for device_node.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DeviceNode
 单个设备的硬件资源描述。 More...
 

Namespaces

namespace  vfs
 

Concepts

concept  Bus
 总线 concept — 每种总线负责枚举自己管辖范围内的设备
 

Enumerations

enum class  BusType : uint8_t { kPlatform , kPci , kAcpi }
 总线类型标识 — 为将来扩展 PCI/ACPI 总线预留的扩展点 More...
 
enum class  DeviceType : uint8_t { kChar , kBlock , kNet , kPlatform }
 设备分类 More...
 

Enumeration Type Documentation

◆ BusType

enum class BusType : uint8_t
strong

总线类型标识 — 为将来扩展 PCI/ACPI 总线预留的扩展点

Enumerator
kPlatform 
kPci 
kAcpi 

Definition at line 14 of file device_node.hpp.

14: uint8_t { kPlatform, kPci, kAcpi };

◆ DeviceType

enum class DeviceType : uint8_t
strong

设备分类

Enumerator
kChar 

字符设备(串口等)

kBlock 

块设备(磁盘等)

kNet 

网络设备

kPlatform 

平台设备(中断控制器、定时器等)

Definition at line 17 of file device_node.hpp.

17 : uint8_t {
19 kChar,
21 kBlock,
23 kNet,
26};
@ kNet
网络设备
@ kBlock
块设备(磁盘等)
@ kChar
字符设备(串口等)