blob: ae9cf9d9f4a10de9dea9a835c511ed51a669e618 [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
Tim Chao47ba1422023-08-23 17:10:46 +080031 - name: LogTimeout
32 type: boolean
33 description: >
34 This property is used for configuring whether an event will be logged
35 on watchdog expiration.
36 default: true
William A. Kennington IIIdfa9e652018-01-23 21:05:38 -080037 - name: ExpireAction
38 type: enum[self.Action]
39 description: >
40 The action the watchdog should perform when it expires.
Patrick Williams8da396c2022-03-14 14:21:02 -050041 default: "HardReset"
Yi Li4f025cd2016-12-02 19:03:53 +080042 - name: Interval
43 type: uint64
44 description: >
Patrick Venture08b0d932017-07-30 10:40:41 -070045 Time interval to arm the watchdog, in milli-second.
Yi Li4f025cd2016-12-02 19:03:53 +080046 default: 30000
47 - name: TimeRemaining
48 type: uint64
49 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060050 Time remaining before timeout, in milli-second. Setting this property
51 can re-arm the watchdog.
Yi Li4f025cd2016-12-02 19:03:53 +080052 default: 0
William A. Kennington IIIc39e8ce2019-01-15 15:06:00 -080053 - name: CurrentTimerUse
54 type: enum[self.TimerUse]
Yong Lid8b93b52018-12-05 18:12:46 +080055 description: >
William A. Kennington IIIc39e8ce2019-01-15 15:06:00 -080056 The host defined user of this timer.
Patrick Williams8da396c2022-03-14 14:21:02 -050057 default: "Reserved"
William A. Kennington IIIc39e8ce2019-01-15 15:06:00 -080058 - name: ExpiredTimerUse
59 type: enum[self.TimerUse]
Yong Lid8b93b52018-12-05 18:12:46 +080060 description: >
William A. Kennington IIIc39e8ce2019-01-15 15:06:00 -080061 The timer user at the time of expiration.
Patrick Williams8da396c2022-03-14 14:21:02 -050062 default: "Reserved"
Yi Li4f025cd2016-12-02 19:03:53 +080063
William A. Kennington IIIdfa9e652018-01-23 21:05:38 -080064enumerations:
Patrick Williams8da396c2022-03-14 14:21:02 -050065 - name: Action
66 description: >
67 The type of action to perform.
68 values:
69 - name: "None"
70 description: >
71 Do nothing.
72 - name: "HardReset"
73 description: >
74 Perform a reset of the system.
75 - name: "PowerOff"
76 description: >
77 Perform a power off of the system.
78 - name: "PowerCycle"
79 description: >
80 Perform a power cycle of the system.
William A. Kennington IIIdfa9e652018-01-23 21:05:38 -080081
Patrick Williams8da396c2022-03-14 14:21:02 -050082 - name: TimerUse
83 description: >
84 The type of timer use.
85 values:
86 - name: "Reserved"
87 description: >
88 Reserved.
89 - name: "BIOSFRB2"
90 description: >
91 BIOS FRB2.
92 - name: "BIOSPOST"
93 description: >
94 BIOS POST.
95 - name: "OSLoad"
96 description: >
97 OS Load.
98 - name: SMSOS
99 description: >
100 SMS OS.
101 - name: "OEM"
102 description: >
103 OEM.
Willy Tu6f524162021-08-03 16:26:35 -0700104
105signals:
106 - name: Timeout
107 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -0500108 Watchdog timeout event signal
Willy Tu6f524162021-08-03 16:26:35 -0700109 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -0500110 - name: Action
111 type: enum[self.Action]
112 description: >
113 The action taken during the watchdog timeout event.