blob: f86252afd41014f7d18ad261fda74b7e05f444d1 [file] [log] [blame]
Lawrence Tang079d5812022-07-12 14:15:32 +01001{
Lawrence Tang079d5812022-07-12 14:15:32 +01002 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "type": "object",
Andrew Adrianced9835a12024-12-05 14:41:42 -08004 "description": "CXL Component Events Section",
Lawrence Tang42375842022-07-19 16:25:47 +01005 "required": ["length", "validationBits", "deviceID", "deviceSerial"],
Lawrence Tang079d5812022-07-12 14:15:32 +01006 "additionalProperties": false,
7 "properties": {
Lawrence Tang42375842022-07-19 16:25:47 +01008 "length": {
9 "type": "integer"
10 },
Lawrence Tang079d5812022-07-12 14:15:32 +010011 "validationBits": {
12 "type": "object",
Andrew Adrianced9835a12024-12-05 14:41:42 -080013 "description": "Indiciates what fields in the section are valid",
John Chung044afd02024-05-03 19:58:02 +080014 "required": [
15 "deviceIDValid",
16 "deviceSerialValid",
17 "cxlComponentEventLogValid"
18 ],
Lawrence Tang079d5812022-07-12 14:15:32 +010019 "properties": {
20 "deviceIDValid": {
21 "type": "boolean"
22 },
23 "deviceSerialValid": {
24 "type": "boolean"
25 },
26 "cxlComponentEventLogValid": {
27 "type": "boolean"
28 }
29 }
30 },
31 "deviceID": {
32 "type": "object",
Andrew Adrianced9835a12024-12-05 14:41:42 -080033 "description": "Provides devices specific identifies.",
John Chung044afd02024-05-03 19:58:02 +080034 "required": [
35 "vendorID",
36 "deviceID",
37 "functionNumber",
38 "deviceNumber",
39 "busNumber",
40 "segmentNumber",
41 "slotNumber"
42 ],
Lawrence Tang079d5812022-07-12 14:15:32 +010043 "properties": {
44 "vendorID": {
45 "type": "integer"
46 },
47 "deviceID": {
48 "type": "integer"
49 },
50 "functionNumber": {
51 "type": "integer"
52 },
53 "deviceNumber": {
54 "type": "integer"
55 },
56 "busNumber": {
57 "type": "integer"
58 },
59 "segmentNumber": {
60 "type": "integer"
61 },
62 "slotNumber": {
63 "type": "integer"
64 }
65 }
66 },
67 "deviceSerial": {
68 "type": "integer"
69 },
70 "cxlComponentEventLog": {
71 "type": "object",
72 "required": ["data"],
73 "properties": {
74 "data": {
75 "type": "string"
76 }
77 }
78 }
79 }
John Chung044afd02024-05-03 19:58:02 +080080}