dbtr.rs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //! Chapter 19. Debug Triggers Extension (EID #0x44425452 "DBTR")
  2. /// Extension ID for Debug Triggers Extension.
  3. pub const EID_DBTR: usize = crate::eid_from_str("DBTR") as _;
  4. pub use fid::*;
  5. /// Declared in §19.9.
  6. mod fid {
  7. /// Function ID to get the number of debug triggers on the calling hart.
  8. ///
  9. /// Declared in §19.1.
  10. pub const NUM_TRIGGERS: usize = 0;
  11. /// Function ID to set and enable the shared memory for debug trigger configuration on the calling hart.
  12. ///
  13. /// Declared in §19.2.
  14. pub const SET_SHMEM: usize = 1;
  15. /// Function ID to read the debug trigger state and configuration into shared memory.
  16. ///
  17. /// Declared in §19.3.
  18. pub const READ_TRIGGERS: usize = 2;
  19. /// Function ID to install debug triggers based on an array of trigger configurations.
  20. ///
  21. /// Declared in §19.4.
  22. pub const INSTALL_TRIGGERS: usize = 3;
  23. /// Function ID to update already installed debug triggers based on a trigger configuration array.
  24. ///
  25. /// Declared in 19.5.
  26. pub const UPDATE_TRIGGERS: usize = 4;
  27. /// Function ID to uninstall a set of debug triggers.
  28. ///
  29. /// Declared in 19.6.
  30. pub const UNINSTALL_TRIGGERS: usize = 5;
  31. /// Function ID to enable a set of debug triggers.
  32. ///
  33. /// Declared in 19.7.
  34. pub const ENABLE_TRIGGERS: usize = 6;
  35. /// Function ID to disable a set of debug triggers.
  36. ///
  37. /// Declared in 19.8.
  38. pub const DISABLE_TRIGGERS: usize = 7;
  39. }