blob: 46466933956e92181b60aaf0266edc1efcd21c24 [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 {
Manojkiran Eda2746fb42021-08-29 10:59:27 +053020 // 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
Manojkiran Eda2746fb42021-08-29 10:59:27 +053023 // 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 },
36 "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 Williams70a47ba2021-09-02 09:53:31 -050040 "state_values": [
41 0,
42 1
43 ]
44 }
45 },
46 {
47 "dbus_info": {
48 "object_path": "/xyz/abc/def",
49 "interface": "xyz.openbmc_project.example1.value",
50 "property_name": "value2",
51 "property_type": "uint8_t",
52 "property_values": [
53 9,
54 10
55 ]
56 },
57 "state" : {
58 "id" : 12,
59 "state_values": [
60 2,
61 3
62 ]
63 }
64 },
65 {
66 "dbus_info": {
67 "object_path": "/abc/def/xyz",
68 "interface": "xyz.openbmc_project.example3.value",
69 "property_name": "value3",
70 "property_type": "bool",
71 "property_values": [
72 false,
73 true
74 ]
75 },
76 "state" : {
77 "id" : 12,
78 "state_values": [
79 0,
80 1
81 ]
82 }
83 }
84 ]
85 },
86 {
87 "mctp_eid": 10,
88 "effecter_info": {
89 "effecterID": 10,
90 "containerID": 0,
91 "entityType": 33,
92 "entityInstance": 0,
93 "compositeEffecterCount": 1
94 },
95 "effecters": [
96 {
97 "dbus_info": {
98 "object_path": "/def/abc/xyz",
99 "interface": "xyz.openbmc_project.example4.value",
100 "property_name": "value4",
101 "property_type": "string",
102 "property_values": [
103 "xyz.openbmc_project.State.Enabled",
104 "xyz.openbmc_project.State.Disabled"
105 ]
106 },
107 "state" : {
108 "id" : 15,
109 "state_values": [
110 3,
111 4
112 ]
113 }
114 }
115 ]
116 }
117 ]
118}