cppc.rs 878 B

123456789101112131415161718192021222324252627282930
  1. //! Chapter 14. CPPC Extension (EID #0x43505043 "CPPC").
  2. /// Extension ID for CPPC Extension.
  3. #[doc(alias = "SBI_EXT_CPPC")]
  4. pub const EID_CPPC: usize = crate::eid_from_str("CPPC") as _;
  5. pub use fid::*;
  6. /// Declared in §14.
  7. mod fid {
  8. /// Function ID to probe a CPPC register.
  9. ///
  10. /// Declared in §14.1.
  11. #[doc(alias = "SBI_EXT_CPPC_PROBE")]
  12. pub const PROBE: usize = 0;
  13. /// Function ID to read CPPC register bits.
  14. ///
  15. /// Declared in §14.2.
  16. #[doc(alias = "SBI_EXT_CPPC_READ")]
  17. pub const READ: usize = 1;
  18. /// Function ID to read high bits of a CPPC register.
  19. ///
  20. /// Declared in §14.3.
  21. #[doc(alias = "SBI_EXT_CPPC_READ_HI")]
  22. pub const READ_HI: usize = 2;
  23. /// Function ID to write to a CPPC register.
  24. ///
  25. /// Declared in §14.4.
  26. #[doc(alias = "SBI_EXT_CPPC_WRITE")]
  27. pub const WRITE: usize = 3;
  28. }