diff options
Diffstat (limited to 'overlay/rc6.h')
-rw-r--r-- | overlay/rc6.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/overlay/rc6.h b/overlay/rc6.h new file mode 100644 index 00000000..3a166b69 --- /dev/null +++ b/overlay/rc6.h @@ -0,0 +1,21 @@ +#include <stdint.h> + +struct rc6 { + struct rc6_stat { + uint64_t rc6_residency; + uint64_t rc6p_residency; + uint64_t rc6pp_residency; + uint64_t timestamp; + } stat[2]; + + int count; + int error; + + uint8_t rc6; + uint8_t rc6p; + uint8_t rc6pp; + uint8_t rc6_combined; +}; + +int rc6_init(struct rc6 *rc6); +int rc6_update(struct rc6 *rc6); |