4
0

base.rs 478 B

1234567891011121314
  1. #[inline]
  2. pub fn probe_extension(extension: usize) -> bool {
  3. use sbi_spec::*;
  4. match extension {
  5. base::EID_BASE => true,
  6. time::EID_TIME => crate::timer::probe_timer(),
  7. spi::EID_SPI => crate::ipi::probe_ipi(),
  8. rfnc::EID_RFNC => crate::rfence::probe_rfence(),
  9. srst::EID_SRST => crate::reset::probe_reset(),
  10. hsm::EID_HSM => crate::hsm::probe_hsm(),
  11. pmu::EID_PMU => crate::pmu::probe_pmu(),
  12. _ => false,
  13. }
  14. }