Yi Li | 4f025cd | 2016-12-02 19:03:53 +0800 | [diff] [blame] | 1 | description: > |
| 2 | Implement the watchdog function. |
William A. Kennington III | 34fc296 | 2018-01-23 21:05:19 -0800 | [diff] [blame] | 3 | |
William A. Kennington III | c61651d | 2018-04-23 10:13:24 -0700 | [diff] [blame] | 4 | methods: |
| 5 | - name: ResetTimeRemaining |
| 6 | description: > |
| 7 | Resets the time remaining to the configured interval. |
| 8 | This is equivalent to reading the Interval and writing it |
| 9 | into the TimeRemaining. Optionally the watchdog can be enabled |
| 10 | during the reset process. |
| 11 | parameters: |
| 12 | - name: EnableWatchdog |
| 13 | type: boolean |
| 14 | description: > |
| 15 | If true the watchdog will be enabled when the reset |
| 16 | is performed. |
| 17 | errors: |
| 18 | - xyz.openbmc_project.Common.Error.InternalFailure |
| 19 | |
Yi Li | 4f025cd | 2016-12-02 19:03:53 +0800 | [diff] [blame] | 20 | properties: |
William A. Kennington III | 34fc296 | 2018-01-23 21:05:19 -0800 | [diff] [blame] | 21 | - name: Initialized |
| 22 | type: boolean |
| 23 | description: > |
| 24 | Whether the host has configured the watchdog yet. |
| 25 | default: false |
Yi Li | 4f025cd | 2016-12-02 19:03:53 +0800 | [diff] [blame] | 26 | - name: Enabled |
| 27 | type: boolean |
| 28 | description: > |
| 29 | The watchdog is enabled or not. |
| 30 | default: false |
William A. Kennington III | dfa9e65 | 2018-01-23 21:05:38 -0800 | [diff] [blame] | 31 | - name: ExpireAction |
| 32 | type: enum[self.Action] |
| 33 | description: > |
| 34 | The action the watchdog should perform when it expires. |
| 35 | default: 'HardReset' |
Yi Li | 4f025cd | 2016-12-02 19:03:53 +0800 | [diff] [blame] | 36 | - name: Interval |
| 37 | type: uint64 |
| 38 | description: > |
Patrick Venture | 08b0d93 | 2017-07-30 10:40:41 -0700 | [diff] [blame] | 39 | Time interval to arm the watchdog, in milli-second. |
Yi Li | 4f025cd | 2016-12-02 19:03:53 +0800 | [diff] [blame] | 40 | default: 30000 |
| 41 | - name: TimeRemaining |
| 42 | type: uint64 |
| 43 | description: > |
Patrick Venture | 08b0d93 | 2017-07-30 10:40:41 -0700 | [diff] [blame] | 44 | Time remaining before timeout, in milli-second. |
Yi Li | 4f025cd | 2016-12-02 19:03:53 +0800 | [diff] [blame] | 45 | Setting this property can re-arm the watchdog. |
| 46 | default: 0 |
Yi Li | 4f025cd | 2016-12-02 19:03:53 +0800 | [diff] [blame] | 47 | |
William A. Kennington III | dfa9e65 | 2018-01-23 21:05:38 -0800 | [diff] [blame] | 48 | enumerations: |
| 49 | - name: Action |
| 50 | description: > |
| 51 | The type of action to perform. |
| 52 | values: |
| 53 | - name: 'None' |
| 54 | description: > |
| 55 | Do nothing. |
| 56 | - name: 'HardReset' |
| 57 | description: > |
| 58 | Perform a reset of the system. |
| 59 | - name: 'PowerOff' |
| 60 | description: > |
| 61 | Perform a power off of the system. |
| 62 | - name: 'PowerCycle' |
| 63 | description: > |
| 64 | Perform a power cycle of the system. |
| 65 | |
Yi Li | 4f025cd | 2016-12-02 19:03:53 +0800 | [diff] [blame] | 66 | # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |