blob: 8c7dee118a7ed3e7c22570a7e7c96cc456fdc8e6 [file] [log] [blame]
Yi Li4f025cd2016-12-02 19:03:53 +08001description: >
2 Implement the watchdog function.
William A. Kennington III34fc2962018-01-23 21:05:19 -08003
William A. Kennington IIIc61651d2018-04-23 10:13:24 -07004methods:
5 - name: ResetTimeRemaining
6 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06007 Resets the time remaining to the configured interval. This is
8 equivalent to reading the Interval and writing it into the
9 TimeRemaining. Optionally the watchdog can be enabled during the reset
10 process.
William A. Kennington IIIc61651d2018-04-23 10:13:24 -070011 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050012 - name: EnableWatchdog
13 type: boolean
14 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060015 If true the watchdog will be enabled when the reset is
16 performed.
William A. Kennington IIIc61651d2018-04-23 10:13:24 -070017 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050018 - xyz.openbmc_project.Common.Error.InternalFailure
William A. Kennington IIIc61651d2018-04-23 10:13:24 -070019
Yi Li4f025cd2016-12-02 19:03:53 +080020properties:
William A. Kennington III34fc2962018-01-23 21:05:19 -080021 - name: Initialized
22 type: boolean
23 description: >
24 Whether the host has configured the watchdog yet.
25 default: false
Yi Li4f025cd2016-12-02 19:03:53 +080026 - name: Enabled
27 type: boolean
28 description: >
29 The watchdog is enabled or not.
30 default: false
William A. Kennington IIIdfa9e652018-01-23 21:05:38 -080031 - name: ExpireAction
32 type: enum[self.Action]
33 description: >
34 The action the watchdog should perform when it expires.
Patrick Williams8da396c2022-03-14 14:21:02 -050035 default: "HardReset"
Yi Li4f025cd2016-12-02 19:03:53 +080036 - name: Interval
37 type: uint64
38 description: >
Patrick Venture08b0d932017-07-30 10:40:41 -070039 Time interval to arm the watchdog, in milli-second.
Yi Li4f025cd2016-12-02 19:03:53 +080040 default: 30000
41 - name: TimeRemaining
42 type: uint64
43 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060044 Time remaining before timeout, in milli-second. Setting this property
45 can re-arm the watchdog.
Yi Li4f025cd2016-12-02 19:03:53 +080046 default: 0
William A. Kennington IIIc39e8ce2019-01-15 15:06:00 -080047 - name: CurrentTimerUse
48 type: enum[self.TimerUse]
Yong Lid8b93b52018-12-05 18:12:46 +080049 description: >
William A. Kennington IIIc39e8ce2019-01-15 15:06:00 -080050 The host defined user of this timer.
Patrick Williams8da396c2022-03-14 14:21:02 -050051 default: "Reserved"
William A. Kennington IIIc39e8ce2019-01-15 15:06:00 -080052 - name: ExpiredTimerUse
53 type: enum[self.TimerUse]
Yong Lid8b93b52018-12-05 18:12:46 +080054 description: >
William A. Kennington IIIc39e8ce2019-01-15 15:06:00 -080055 The timer user at the time of expiration.
Patrick Williams8da396c2022-03-14 14:21:02 -050056 default: "Reserved"
Yi Li4f025cd2016-12-02 19:03:53 +080057
William A. Kennington IIIdfa9e652018-01-23 21:05:38 -080058enumerations:
Patrick Williams8da396c2022-03-14 14:21:02 -050059 - name: Action
60 description: >
61 The type of action to perform.
62 values:
63 - name: "None"
64 description: >
65 Do nothing.
66 - name: "HardReset"
67 description: >
68 Perform a reset of the system.
69 - name: "PowerOff"
70 description: >
71 Perform a power off of the system.
72 - name: "PowerCycle"
73 description: >
74 Perform a power cycle of the system.
William A. Kennington IIIdfa9e652018-01-23 21:05:38 -080075
Patrick Williams8da396c2022-03-14 14:21:02 -050076 - name: TimerUse
77 description: >
78 The type of timer use.
79 values:
80 - name: "Reserved"
81 description: >
82 Reserved.
83 - name: "BIOSFRB2"
84 description: >
85 BIOS FRB2.
86 - name: "BIOSPOST"
87 description: >
88 BIOS POST.
89 - name: "OSLoad"
90 description: >
91 OS Load.
92 - name: SMSOS
93 description: >
94 SMS OS.
95 - name: "OEM"
96 description: >
97 OEM.
Willy Tu6f524162021-08-03 16:26:35 -070098
99signals:
100 - name: Timeout
101 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -0500102 Watchdog timeout event signal
Willy Tu6f524162021-08-03 16:26:35 -0700103 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -0500104 - name: Action
105 type: enum[self.Action]
106 description: >
107 The action taken during the watchdog timeout event.