diff options
author | Tom Rini <trini@konsulko.com> | 2022-10-26 07:45:55 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-26 07:45:55 -0400 |
commit | c2c485db455696850f17a874f8b5a11d13b31b5c (patch) | |
tree | 291e7cd1007f6cdf6e514c21edd5c2e5fa9a0a2e /include/os.h | |
parent | f9d16f2c0daf68dcb963c08c927f5f0a07cf75e4 (diff) | |
parent | 5e112c7ca8ee45860e27f23059d9a319ba8eb6d3 (diff) |
Merge https://source.denx.de/u-boot/custodians/u-boot-watchdog
- nuvoton: add expire function for generic reset (Jim)
- handle watchdogs during keyed autoboot (Rasmus)
- cyclic: Don't disable cylic function upon exceeding CPU time (Stefan)
- ulp wdog: Updates to support iMX93 and DM (Alice)
Diffstat (limited to 'include/os.h')
-rw-r--r-- | include/os.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index 5b353ae9d9..54874f5e0e 100644 --- a/include/os.h +++ b/include/os.h @@ -109,6 +109,23 @@ int os_unlink(const char *pathname); void os_exit(int exit_code) __attribute__((noreturn)); /** + * os_alarm() - access to the OS alarm() system call + */ +unsigned int os_alarm(unsigned int seconds); + +/** + * os_set_alarm_handler() - set handler for SIGALRM + * + * @handler: The handler function. Pass NULL for SIG_DFL. + */ +void os_set_alarm_handler(void (*handler)(int)); + +/** + * os_raise_sigalrm() - do raise(SIGALRM) + */ +void os_raise_sigalrm(void); + +/** * os_tty_raw() - put tty into raw mode to mimic serial console better * * @fd: File descriptor of stdin (normally 0) |