blob: 1a4ef6666d3b7d1a8a0b73b0bd79b2042e7a07f8 [file] [log] [blame]
Matt Spinlerf7616bc2019-11-19 09:23:37 -06001description: >
2 Implement to provide pass-through mechanism to the On Chip Controller (OCC).
3methods:
4 - name: Send
5 description: >
6 Pass through a command to the OCC.
7 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -05008 - name: command
9 # TODO via https://github.com/openbmc/openbmc/issues/1160. This should
10 # change to array[byte]. As of now, the REST server maps any numeric
11 # data to int32.
12 type: array[int32]
13 description: >
14 An array of integers representing the command and payload. This
15 should still be bytes worth of data (as though using array[byte]),
16 so each entry in the array should pack as many bytes as possible.
Matt Spinlerf7616bc2019-11-19 09:23:37 -060017 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050018 - name: response
19 # TODO via https://github.com/openbmc/openbmc/issues/1160. This should
20 # change to array[byte]. As of now, the REST server maps any numeric
21 # data to int32.
22 type: array[int32]
23 description: >
24 An array of integers representing the response. This
25 should still be bytes worth of data (as though using array[byte]),
26 so each entry in the array should pack as many bytes as possible.
Chris Caine0674c82021-11-23 08:17:28 -060027
28 - name: SetMode
29 description: >
30 Change the power mode of the system.
31 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050032 - name: mode
33 type: byte
34 description: >
35 Desired power mode of the system.
36 - name: frequencyPoint
37 type: uint16
38 description: >
39 Frequency point required by some power modes.
Chris Caine0674c82021-11-23 08:17:28 -060040 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050041 - name: status
42 type: boolean
43 description: >
44 Returns true if the mode change was accepted.