PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
QEMU watchdog

CMSDK APB watchdog of the QEMU Pebble machines. More...

Data Structures

struct  pbl_watchdog_qemu
 Watchdog device. More...
 

Macros

#define PBL_WATCHDOG_QEMU_DEFINE(sym, _name, _base)
 Define the watchdog device.
 

Detailed Description

CMSDK APB watchdog of the QEMU Pebble machines.

The device starts the watchdog when it comes up, with a timeout of CONFIG_WATCHDOG_TIMEOUT_MS. The reset cause comes from the system controller.


Data Structure Documentation

◆ pbl_watchdog_qemu

struct pbl_watchdog_qemu

Watchdog device.

Data Fields
uintptr_t base Registers.
struct pbl_watchdog wdt Watchdog.

Macro Definition Documentation

◆ PBL_WATCHDOG_QEMU_DEFINE

#define PBL_WATCHDOG_QEMU_DEFINE (   sym,
  _name,
  _base 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_watchdog_qemu, struct pbl_watchdog, wdt) { \
.wdt = PBL_WATCHDOG_INIT(sym, _name, nullptr, &pbl_watchdog_qemu_ops), .base = (_base), \
}
Watchdog device.
Definition qemu.h:21
Watchdog device.
Definition watchdog.h:54
#define PBL_WATCHDOG_STATE_DEFINE(sym)
Define the state of a watchdog device.
Definition watchdog.h:74
#define PBL_WATCHDOG_INIT(sym, _name, _parent, _ops)
Initializer of a watchdog device.
Definition watchdog.h:84

Define the watchdog device.

Parameters
symSymbol of the device.
_nameName.
_baseRegisters.