sbi_rt/
lib.rs

1//! Simple RISC-V SBI runtime primitives.
2#![no_std]
3#[cfg_attr(not(feature = "legacy"), deny(missing_docs))]
4// §3
5mod binary;
6// §4
7mod base;
8// §5
9#[cfg(feature = "legacy")]
10pub mod legacy;
11// §6
12mod time;
13// §7
14mod spi;
15// §8
16mod rfnc;
17// §9
18mod hsm;
19// §10
20mod srst;
21// §11
22mod pmu;
23// §12
24mod dbcn;
25// §13
26mod susp;
27// §14
28mod cppc;
29// §15
30mod nacl;
31// §16
32mod sta;
33
34pub use sbi_spec::{
35    base::Version,
36    binary::{HartMask, Physical, SbiRet, SharedPtr},
37};
38
39// module `binary` includes crate-local `sbi_call_*` functions and is thus not re-exported
40// into the library root.
41
42pub use base::*;
43pub use cppc::*;
44pub use dbcn::*;
45pub use hsm::*;
46pub use nacl::*;
47pub use pmu::*;
48pub use rfnc::*;
49pub use spi::*;
50pub use srst::*;
51pub use sta::*;
52pub use susp::*;
53pub use time::*;