Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 1 | { |
| 2 | "entries": [ |
| 3 | { |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 4 | // mctp eid is needed for communicating with the host |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 5 | "mctp_eid": 9, |
| 6 | "effecter_info": { |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 7 | // a 0xFFFF(65535) means effecter id is not hard coded and |
| 8 | // will be fetched from the PDR |
| 9 | "effecterID": 65535, |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 10 | "containerID": 1, |
| 11 | "entityType": 32801, |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 12 | // entity type 33 means Phyp will set value 32801 |
| 13 | // this is because the MSB is set to indicate |
| 14 | // virtual entity |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 15 | "entityInstance": 1, |
| 16 | "compositeEffecterCount": 3 |
| 17 | }, |
| 18 | "effecters": [ |
| 19 | { |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 20 | // Following are the D-Bus information under each effecter |
| 21 | // which are monitored for a property change signal |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 22 | |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 23 | // if there is a property change, the corresponding |
| 24 | // state value is picked up to set the host effecter |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 25 | |
| 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 Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 36 | "state": { |
| 37 | "id": 197, |
Manojkiran Eda | 2746fb4 | 2021-08-29 10:59:27 +0530 | [diff] [blame] | 38 | // This should be of same size and order as |
| 39 | // property_values |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 40 | "state_values": [0, 1] |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 41 | } |
| 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 Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 49 | "property_values": [9, 10] |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 50 | }, |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 51 | "state": { |
| 52 | "id": 12, |
| 53 | "state_values": [2, 3] |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 54 | } |
| 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 Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 62 | "property_values": [false, true] |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 63 | }, |
Patrick Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 64 | "state": { |
| 65 | "id": 12, |
| 66 | "state_values": [0, 1] |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 67 | } |
| 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 Williams | 3618064 | 2022-12-08 06:13:03 -0600 | [diff] [blame] | 92 | "state": { |
| 93 | "id": 15, |
| 94 | "state_values": [3, 4] |
Patrick Williams | 70a47ba | 2021-09-02 09:53:31 -0500 | [diff] [blame] | 95 | } |
| 96 | } |
| 97 | ] |
| 98 | } |
| 99 | ] |
| 100 | } |