blob: ecff34d815cbc861201b67d6f16ddcff6cadf039 [file] [log] [blame]
Patrick Williams70a47ba2021-09-02 09:53:31 -05001{
2 "entries": [
3 {
Manojkiran Eda2746fb42021-08-29 10:59:27 +05304 // mctp eid is needed for communicating with the host
Patrick Williams70a47ba2021-09-02 09:53:31 -05005 "mctp_eid": 9,
6 "effecter_info": {
Manojkiran Eda2746fb42021-08-29 10:59:27 +05307 // a 0xFFFF(65535) means effecter id is not hard coded and
8 // will be fetched from the PDR
9 "effecterID": 65535,
Patrick Williams70a47ba2021-09-02 09:53:31 -050010 "containerID": 1,
11 "entityType": 32801,
Manojkiran Eda2746fb42021-08-29 10:59:27 +053012 // entity type 33 means Phyp will set value 32801
13 // this is because the MSB is set to indicate
14 // virtual entity
Patrick Williams70a47ba2021-09-02 09:53:31 -050015 "entityInstance": 1,
16 "compositeEffecterCount": 3
17 },
18 "effecters": [
19 {
Patrick Williams36180642022-12-08 06:13:03 -060020 // Following are the D-Bus information under each effecter
21 // which are monitored for a property change signal
Patrick Williams70a47ba2021-09-02 09:53:31 -050022
Patrick Williams36180642022-12-08 06:13:03 -060023 // if there is a property change, the corresponding
24 // state value is picked up to set the host effecter
Patrick Williams70a47ba2021-09-02 09:53:31 -050025
26 "dbus_info": {
27 "object_path": "/xyz/abc/def",
28 "interface": "xyz.openbmc_project.example1.value",
29 "property_name": "value1",
30 "property_type": "string",
31 "property_values": [
32 "xyz.openbmc_project.State.On",
33 "xyz.openbmc_project.State.Off"
34 ]
35 },
Patrick Williams36180642022-12-08 06:13:03 -060036 "state": {
37 "id": 197,
Manojkiran Eda2746fb42021-08-29 10:59:27 +053038 // This should be of same size and order as
39 // property_values
Patrick Williams36180642022-12-08 06:13:03 -060040 "state_values": [0, 1]
Patrick Williams70a47ba2021-09-02 09:53:31 -050041 }
42 },
43 {
44 "dbus_info": {
45 "object_path": "/xyz/abc/def",
46 "interface": "xyz.openbmc_project.example1.value",
47 "property_name": "value2",
48 "property_type": "uint8_t",
Patrick Williams36180642022-12-08 06:13:03 -060049 "property_values": [9, 10]
Patrick Williams70a47ba2021-09-02 09:53:31 -050050 },
Patrick Williams36180642022-12-08 06:13:03 -060051 "state": {
52 "id": 12,
53 "state_values": [2, 3]
Patrick Williams70a47ba2021-09-02 09:53:31 -050054 }
55 },
56 {
57 "dbus_info": {
58 "object_path": "/abc/def/xyz",
59 "interface": "xyz.openbmc_project.example3.value",
60 "property_name": "value3",
61 "property_type": "bool",
Patrick Williams36180642022-12-08 06:13:03 -060062 "property_values": [false, true]
Patrick Williams70a47ba2021-09-02 09:53:31 -050063 },
Patrick Williams36180642022-12-08 06:13:03 -060064 "state": {
65 "id": 12,
66 "state_values": [0, 1]
Patrick Williams70a47ba2021-09-02 09:53:31 -050067 }
68 }
69 ]
70 },
71 {
72 "mctp_eid": 10,
73 "effecter_info": {
74 "effecterID": 10,
75 "containerID": 0,
76 "entityType": 33,
77 "entityInstance": 0,
78 "compositeEffecterCount": 1
79 },
80 "effecters": [
81 {
82 "dbus_info": {
83 "object_path": "/def/abc/xyz",
84 "interface": "xyz.openbmc_project.example4.value",
85 "property_name": "value4",
86 "property_type": "string",
87 "property_values": [
88 "xyz.openbmc_project.State.Enabled",
89 "xyz.openbmc_project.State.Disabled"
90 ]
91 },
Patrick Williams36180642022-12-08 06:13:03 -060092 "state": {
93 "id": 15,
94 "state_values": [3, 4]
Patrick Williams70a47ba2021-09-02 09:53:31 -050095 }
96 }
97 ]
98 }
99 ]
100}