viawd.c (0269ae4c19ad779b43b0d6e2416ac7386945d692) | viawd.c (1cba6077beafdf29297854b8f6ab0a11e06d2782) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2011 Fabien Thomas <fabient@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 212 unchanged lines hidden (view full) --- 221 * Do not stop the watchdog on shutdown if active but bump the 222 * timer to avoid spurious reset. 223 */ 224 reg = viawd_read_4(sc, VIAWD_MEM_CTRL); 225 if (reg & VIAWD_MEM_CTRL_ENABLE) { 226 viawd_tmr_set(sc, VIAWD_TIMEOUT_SHUTDOWN); 227 viawd_tmr_state(sc, 1); 228 device_printf(dev, | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2011 Fabien Thomas <fabient@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 212 unchanged lines hidden (view full) --- 221 * Do not stop the watchdog on shutdown if active but bump the 222 * timer to avoid spurious reset. 223 */ 224 reg = viawd_read_4(sc, VIAWD_MEM_CTRL); 225 if (reg & VIAWD_MEM_CTRL_ENABLE) { 226 viawd_tmr_set(sc, VIAWD_TIMEOUT_SHUTDOWN); 227 viawd_tmr_state(sc, 1); 228 device_printf(dev, |
229 "Keeping watchog alive during shutdown for %d seconds\n", | 229 "Keeping watchdog alive during shutdown for %d seconds\n", |
230 VIAWD_TIMEOUT_SHUTDOWN); 231 } 232 233 if (sc->wd_res != NULL) 234 bus_release_resource(sc->sb_dev, SYS_RES_MEMORY, 235 sc->wd_rid, sc->wd_res); 236 237 return (0); --- 18 unchanged lines hidden --- | 230 VIAWD_TIMEOUT_SHUTDOWN); 231 } 232 233 if (sc->wd_res != NULL) 234 bus_release_resource(sc->sb_dev, SYS_RES_MEMORY, 235 sc->wd_rid, sc->wd_res); 236 237 return (0); --- 18 unchanged lines hidden --- |