blob: a366203f5f029bf213d3987966e79a81fa65a3ba [file] [log] [blame]
Pavithra Barithaya4d01be92020-04-29 07:36:58 -05001description: >
Patrick Williamsa1347412022-12-06 10:56:22 -06002 Implement to fetch the PDRs. PDRs are Platform Descriptor Records which are
3 the collection of information that includes semantic and association
4 information.
Pavithra Barithaya4d01be92020-04-29 07:36:58 -05005
6 This API would be used by PLDM Requester apps on the BMC.
7
8 An implementation of this interface should maintain the primary PDR
9 repository on the BMC.
10
11 A OpenBMC implementation should implement the xyz.openbmc_project.PLDM.PDR
12 interface on the path /xyz/openbmc_project/pldm.
13
14 More information about PDR can be found at DSP0248 version 1.2.0 section 25.
15
Pavithra Barithaya4d01be92020-04-29 07:36:58 -050016methods:
17 - name: FindStateEffecterPDR
18 description: >
19 Obtain the state effecter PDR, for the input TID, entity ID and state
20 set id. If multiple PLDM entity instances(in state effecter PDRs)
21 match the EntityId and StateSetId below,all the corresponding state
22 effecter PDRs are returned. More than one PDR can be returned for the
23 same state set id.
24
25 When the PDR for the given input TID, entity id and state set id is
26 not found, then the xyz.openbmc_project.Common.Error.ResourceNotFound
27 exception will be thrown.
28
29 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050030 - name: TID
31 type: byte
32 description: >
33 A terminus id.
Pavithra Barithaya4d01be92020-04-29 07:36:58 -050034
Patrick Williams8da396c2022-03-14 14:21:02 -050035 - name: EntityID
36 type: uint16
37 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060038 A numeric value that represents an entity that can be associated
39 to a PLDM state set.
Pavithra Barithaya4d01be92020-04-29 07:36:58 -050040
Patrick Williams8da396c2022-03-14 14:21:02 -050041 More information is found at
42 http://dmtf.org/sites/default/files/standards/documents/DSP0249_1.0.0.pdf
43 section 7.
Pavithra Barithaya4d01be92020-04-29 07:36:58 -050044
Patrick Williams8da396c2022-03-14 14:21:02 -050045 - name: StateSetId
46 type: uint16
47 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060048 A numeric value that identifies the PLDM State Set that is used
49 with this sensor.
Pavithra Barithaya4d01be92020-04-29 07:36:58 -050050
Patrick Williams8da396c2022-03-14 14:21:02 -050051 More information is found at
52 http://dmtf.org/sites/default/files/standards/documents/DSP0249_1.0.0.pdf
53 section 6.
Pavithra Barithaya4d01be92020-04-29 07:36:58 -050054
55 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -050056 - name: StateEffecterPDR
57 type: array[array[byte]]
58 description: >
59 Array of State Effecter PDRs, where a PDR is an array[byte].
Patrick Williamsa1347412022-12-06 10:56:22 -060060 Multiple PDRs of the format present in table 89 of DSP0248
61 version 1.2.0 are returned. Each of the PDRs returned has the
62 common header along with all the other fields in table 89 and 90
63 of DSP0248 of version 1.2.0 .
Pavithra Barithaya4d01be92020-04-29 07:36:58 -050064
65 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -050066 - xyz.openbmc_project.Common.Error.ResourceNotFound
Chicago Duana97d93b2020-05-28 16:05:11 +080067
68 - name: FindStateSensorPDR
69 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060070 Obtain the state sensor PDR, for the input TID, entity ID and state
71 set id. If multiple PLDM entity instances (in state sensor PDRs) match
72 the EntityId and StateSetId below, all the corresponding state sensor
73 PDRs are returned. More than one PDR can be returned for the same
74 state set id.
Chicago Duana97d93b2020-05-28 16:05:11 +080075
Patrick Williamsa1347412022-12-06 10:56:22 -060076 When the PDR for the given input TID, entity id and state set id is
77 not found, then the xyz.openbmc_project.Common.Error.ResourceNotFound
78 exception will be thrown.
Chicago Duana97d93b2020-05-28 16:05:11 +080079
80 parameters:
Patrick Williams8da396c2022-03-14 14:21:02 -050081 - name: TID
82 type: byte
83 description: >
84 A terminus id.
Chicago Duana97d93b2020-05-28 16:05:11 +080085
Patrick Williams8da396c2022-03-14 14:21:02 -050086 - name: EntityID
87 type: uint16
88 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060089 A numeric value that represents an entity that can be associated
90 to a PLDM state set. More information is found at
91 http://dmtf.org/sites/default/files/standards/documents/DSP0249_1.0.0.pdf
92 section 7.
Chicago Duana97d93b2020-05-28 16:05:11 +080093
Patrick Williams8da396c2022-03-14 14:21:02 -050094 - name: StateSetId
95 type: uint16
96 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -060097 A numeric value that identifies the PLDM State Set that is used
98 with this sensor. More information is found at
99 http://dmtf.org/sites/default/files/standards/documents/DSP0249_1.0.0.pdf
100 section 6.
Chicago Duana97d93b2020-05-28 16:05:11 +0800101
102 returns:
Patrick Williams8da396c2022-03-14 14:21:02 -0500103 - name: StateSensorPDR
104 type: array[array[byte]]
105 description: >
Patrick Williamsa1347412022-12-06 10:56:22 -0600106 Array of State Sensor PDRs, where a PDR is an array[byte].
107 Multiple PDRs of the format present in table 80 of DSP0248
108 version 1.2.0 are returned. Each of the PDRs returned has the
109 common header along with all the other fields in table 80 and 81
110 of DSP0248 of version 1.2.0 .
Chicago Duana97d93b2020-05-28 16:05:11 +0800111
112 errors:
Patrick Williams8da396c2022-03-14 14:21:02 -0500113 - xyz.openbmc_project.Common.Error.ResourceNotFound