Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 1 | { |
| 2 | "$id": "cper-json-cxl-protocol-section", |
| 3 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 4 | "type": "object", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 5 | "required": [ |
| 6 | "validationBits", |
| 7 | "agentType", |
| 8 | "cxlAgentAddress", |
| 9 | "deviceID", |
| 10 | "dvsecLength", |
| 11 | "errorLogLength", |
| 12 | "cxlDVSEC", |
| 13 | "cxlErrorLog" |
| 14 | ], |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 15 | "additionalProperties": false, |
| 16 | "properties": { |
| 17 | "validationBits": { |
| 18 | "type": "object", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 19 | "required": [ |
| 20 | "cxlAgentTypeValid", |
| 21 | "cxlAgentAddressValid", |
| 22 | "deviceIDValid", |
| 23 | "deviceSerialValid", |
| 24 | "capabilityStructureValid", |
| 25 | "cxlDVSECValid", |
| 26 | "cxlErrorLogValid" |
| 27 | ], |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 28 | "properties": { |
| 29 | "cxlAgentTypeValid": { |
| 30 | "type": "boolean" |
| 31 | }, |
| 32 | "cxlAgentAddressValid": { |
| 33 | "type": "boolean" |
| 34 | }, |
| 35 | "deviceIDValid": { |
| 36 | "type": "boolean" |
| 37 | }, |
| 38 | "deviceSerialValid": { |
| 39 | "type": "boolean" |
| 40 | }, |
| 41 | "capabilityStructureValid": { |
| 42 | "type": "boolean" |
| 43 | }, |
| 44 | "cxlDVSECValid": { |
| 45 | "type": "boolean" |
| 46 | }, |
| 47 | "cxlErrorLogValid": { |
| 48 | "type": "boolean" |
| 49 | } |
| 50 | } |
| 51 | }, |
| 52 | "agentType": { |
| 53 | "type": "object", |
Lawrence Tang | 8a2d737 | 2022-07-12 16:44:49 +0100 | [diff] [blame] | 54 | "$ref": "./common/cper-json-nvp.json" |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 55 | }, |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 56 | "cxlAgentAddress": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 57 | "type": "object", |
| 58 | "oneOf": [ |
| 59 | { |
| 60 | "type": "object", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 61 | "required": [ |
| 62 | "functionNumber", |
| 63 | "deviceNumber", |
| 64 | "busNumber", |
| 65 | "segmentNumber" |
| 66 | ], |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 67 | "properties": { |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 68 | "functionNumber": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 69 | "type": "integer" |
| 70 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 71 | "deviceNumber": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 72 | "type": "integer" |
| 73 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 74 | "busNumber": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 75 | "type": "integer" |
| 76 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 77 | "segmentNumber": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 78 | "type": "integer" |
| 79 | } |
| 80 | } |
| 81 | }, |
| 82 | { |
| 83 | "type": "object", |
| 84 | "required": ["value"], |
| 85 | "properties": { |
| 86 | "value": { |
| 87 | "type": "integer" |
| 88 | } |
| 89 | } |
| 90 | } |
| 91 | ] |
| 92 | }, |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 93 | "deviceID": { |
| 94 | "type": "object", |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 95 | "required": [ |
| 96 | "vendorID", |
| 97 | "deviceID", |
| 98 | "subsystemVendorID", |
| 99 | "subsystemDeviceID", |
| 100 | "classCode", |
| 101 | "slotNumber" |
| 102 | ], |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 103 | "properties": { |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 104 | "vendorID": { |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 105 | "type": "integer" |
| 106 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 107 | "deviceID": { |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 108 | "type": "integer" |
| 109 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 110 | "subsystemVendorID": { |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 111 | "type": "integer" |
| 112 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 113 | "subsystemDeviceID": { |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 114 | "type": "integer" |
| 115 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 116 | "classCode": { |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 117 | "type": "integer" |
| 118 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 119 | "slotNumber": { |
Lawrence Tang | 4237584 | 2022-07-19 16:25:47 +0100 | [diff] [blame] | 120 | "type": "integer" |
| 121 | } |
| 122 | } |
| 123 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 124 | "deviceSerial": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 125 | "type": "integer" |
| 126 | }, |
| 127 | "capabilityStructure": { |
| 128 | "type": "string" |
| 129 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 130 | "dvsecLength": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 131 | "type": "integer" |
| 132 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 133 | "errorLogLength": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 134 | "type": "integer" |
| 135 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 136 | "cxlDVSEC": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 137 | "type": "string" |
| 138 | }, |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 139 | "cxlErrorLog": { |
Lawrence Tang | 079d581 | 2022-07-12 14:15:32 +0100 | [diff] [blame] | 140 | "type": "string" |
| 141 | } |
| 142 | } |
John Chung | 044afd0 | 2024-05-03 19:58:02 +0800 | [diff] [blame] | 143 | } |