From 1272be04be0cb803eec87f602edb2e3e6f111aea Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 21:33:34 +0200 Subject: Merging upstream version 2.40. Signed-off-by: Daniel Baumann --- sys-utils/hwclock.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sys-utils/hwclock.h') diff --git a/sys-utils/hwclock.h b/sys-utils/hwclock.h index b5b72d4..91b10a7 100644 --- a/sys-utils/hwclock.h +++ b/sys-utils/hwclock.h @@ -1,3 +1,11 @@ +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ #ifndef HWCLOCK_CLOCK_H #define HWCLOCK_CLOCK_H @@ -53,6 +61,8 @@ struct hwclock_control { set:1, update:1, universal:1, /* will store hw_clock_is_utc() return value */ + vl_read:1, + vl_clear:1, verbose:1; }; @@ -88,6 +98,9 @@ extern int get_param_rtc(const struct hwclock_control *ctl, const char *name, uint64_t *id, uint64_t *value); extern int set_param_rtc(const struct hwclock_control *ctl, const char *name); +extern int rtc_vl_read(const struct hwclock_control *ctl); +extern int rtc_vl_clear(const struct hwclock_control *ctl); + extern void __attribute__((__noreturn__)) hwclock_exit(const struct hwclock_control *ctl, int status); -- cgit v1.2.3