-/* $OpenBSD: kstat.h,v 1.3 2022/04/22 00:27:55 dlg Exp $ */
+/* $OpenBSD: kstat.h,v 1.4 2023/11/16 02:45:20 dlg Exp $ */
/*
* Copyright (c) 2020 David Gwynne <dlg@openbsd.org>
KSTAT_KV_T_COUNTER16,
KSTAT_KV_T_UINT16,
KSTAT_KV_T_INT16,
+ KSTAT_KV_T_FREQ, /* frequency (Hz) */
+ KSTAT_KV_T_VOLTS_DC, /* voltage (uV DC) */
+ KSTAT_KV_T_VOLTS_AC, /* voltage (uV AC) */
};
/* units only apply to integer types */
#define kstat_kv_s16(_kv) (_kv)->kv_v.v_s16
#define kstat_kv_len(_kv) (_kv)->kv_v.v_len
#define kstat_kv_temp(_kv) (_kv)->kv_v.v_u64
+#define kstat_kv_freq(_kv) (_kv)->kv_v.v_u64
+#define kstat_kv_volts(_kv) (_kv)->kv_v.v_u64
#ifdef _KERNEL