sse.rs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //! Chapter 17. Supervisor Software Events Extension (EID #0x535345 "SSE").
  2. /// Extension ID for Supervisor Software Events Extension.
  3. pub const EID_SSE: usize = crate::eid_from_str("SSE") as _;
  4. pub use fid::*;
  5. /// Declared in Table 90 at §17.17.
  6. mod fid {
  7. /// Function ID to read software event attributes.
  8. ///
  9. /// Declared in §17.7
  10. pub const READ_ATTRS: usize = 0;
  11. /// Function ID to write software event attributes.
  12. ///
  13. /// Declared in §17.8
  14. pub const WRITE_ATTRS: usize = 1;
  15. /// Function ID to register a software event.
  16. ///
  17. /// Declared in §17.9.
  18. pub const REGISTER: usize = 2;
  19. /// Function ID to unregister a software event.
  20. ///
  21. /// Declared in §17.10.
  22. pub const UNREGISTER: usize = 3;
  23. /// Function ID to enable a software event.
  24. ///
  25. /// Declared in §17.11.
  26. pub const ENABLE: usize = 4;
  27. /// Function ID to disable a software event.
  28. ///
  29. /// Declared in §17.12.
  30. pub const DISABLE: usize = 5;
  31. /// Function ID to complete software event handling.
  32. ///
  33. /// Declared in §17.13.
  34. pub const COMPLETE: usize = 6;
  35. /// Function ID to inject a software event.
  36. ///
  37. /// Declared in §17.14.
  38. pub const INJECT: usize = 7;
  39. /// Function ID to unmask software events on the calling hart.
  40. ///
  41. /// Declared in §17.15.
  42. pub const HART_UNMASK: usize = 8;
  43. /// Function ID to mask software events on the calling hart.
  44. ///
  45. /// Declared in §17.16.
  46. pub const HART_MASK: usize = 9;
  47. }