summaryrefslogtreecommitdiffstats
path: root/xyz/openbmc_project/State/Watchdog.interface.yaml
blob: 166d400066b9baf3c3003b10b4a4e42dc5a143a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
description: >
    Implement the watchdog function.

methods:
    - name: ResetTimeRemaining
      description: >
          Resets the time remaining to the configured interval.
          This is equivalent to reading the Interval and writing it
          into the TimeRemaining. Optionally the watchdog can be enabled
          during the reset process.
      parameters:
        - name: EnableWatchdog
          type: boolean
          description: >
              If true the watchdog will be enabled when the reset
              is performed.
      errors:
        - xyz.openbmc_project.Common.Error.InternalFailure

properties:
    - name: Initialized
      type: boolean
      description: >
          Whether the host has configured the watchdog yet.
      default: false
    - name: Enabled
      type: boolean
      description: >
          The watchdog is enabled or not.
      default: false
    - name: ExpireAction
      type: enum[self.Action]
      description: >
          The action the watchdog should perform when it expires.
      default: 'HardReset'
    - name: Interval
      type: uint64
      description: >
          Time interval to arm the watchdog, in milli-second.
      default: 30000
    - name: TimeRemaining
      type: uint64
      description: >
          Time remaining before timeout, in milli-second.
          Setting this property can re-arm the watchdog.
      default: 0
    - name: TimerUse
      type: enum[self.TimerUseField]
      description: >
          The current timer use assigned to the watchdog timer.
      default: 'Reserved'
    - name: TimerUseExpirationFlag
      type: enum[self.TimerUseField]
      description: >
          The current timer use expiration flags assigned to the watchdog timer.
      default: 'Reserved'

enumerations:
   - name: Action
     description: >
       The type of action to perform.
     values:
       - name: 'None'
         description: >
           Do nothing.
       - name: 'HardReset'
         description: >
           Perform a reset of the system.
       - name: 'PowerOff'
         description: >
           Perform a power off of the system.
       - name: 'PowerCycle'
         description: >
           Perform a power cycle of the system.

   - name: TimerUseField
     description: >
       The type of timer use.
     values:
       - name: 'Reserved'
         description: >
           Reserved.
       - name: 'BIOSFRB2'
         description: >
           BIOS FRB2.
       - name: 'BIOSPOST'
         description: >
           BIOS POST.
       - name: 'OSLoad'
         description: >
           OS Load.
       - name: SMSOS
         description: >
           SMS OS.
       - name: 'OEM'
         description: >
           OEM.

# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
OpenPOWER on IntegriCloud