We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42fd96 commit a456481Copy full SHA for a456481
any-uart/Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "any-uart"
3
-version = "0.2.2"
+version = "0.2.3"
4
edition = "2024"
5
authors = ["周睿 <[email protected]>"]
6
description = "Init early console from device tree, mostly for Arm"
any-uart/src/lib.rs
@@ -47,6 +47,10 @@ impl Uart {
47
}
48
49
50
+ pub fn mmio_base_add(&mut self, offset: usize) {
51
+ self.data.base += offset;
52
+ }
53
+
54
pub fn new_by_fdt_node(node: &Node<'_>, f: FnPhysToVirt) -> Option<Self> {
55
let reg = node.reg()?.next()?;
56
0 commit comments