xref: /openbmc/libcper/specification/json/sections/cper-pci-bus.json (revision cc36701137e8ad0e7a537c624cd486fb72fb66de)
1{
2    "$schema": "https://json-schema.org/draft/2020-12/schema",
3    "type": "object",
4    "required": [
5        "validationBits",
6        "errorStatus",
7        "errorType",
8        "busID",
9        "busAddress",
10        "busData",
11        "busCommandType",
12        "busRequestorID",
13        "busRequestorIDHex",
14        "busCompleterID",
15        "busCompleterIDHex",
16        "targetID"
17    ],
18    "additionalProperties": false,
19    "properties": {
20        "validationBits": {
21            "type": "object",
22            "description": "Inidicates which fields are valid in the section.",
23            "required": [
24                "errorStatusValid",
25                "errorTypeValid",
26                "busIDValid",
27                "busAddressValid",
28                "busDataValid",
29                "commandValid",
30                "requestorIDValid",
31                "completerIDValid",
32                "targetIDValid"
33            ],
34            "properties": {
35                "errorStatusValid": {
36                    "type": "boolean"
37                },
38                "errorTypeValid": {
39                    "type": "boolean"
40                },
41                "busIDValid": {
42                    "type": "boolean"
43                },
44                "busAddressValid": {
45                    "type": "boolean"
46                },
47                "busDataValid": {
48                    "type": "boolean"
49                },
50                "commandValid": {
51                    "type": "boolean"
52                },
53                "requestorIDValid": {
54                    "type": "boolean"
55                },
56                "completerIDValid": {
57                    "type": "boolean"
58                },
59                "targetIDValid": {
60                    "type": "boolean"
61                }
62            }
63        },
64        "errorStatus": {
65            "type": "object",
66            "description": "PCI Bus Error Status.",
67            "$ref": "./common/cper-json-error-status.json"
68        },
69        "errorType": {
70            "type": "object",
71            "description": "PCI Bus error Type",
72            "$ref": "./common/cper-json-nvp.json"
73        },
74        "busID": {
75            "type": "object",
76            "required": ["busNumber", "segmentNumber"],
77            "properties": {
78                "busNumber": {
79                    "type": "integer",
80                    "description": "Bus Number"
81                },
82                "segmentNumber": {
83                    "type": "integer",
84                    "description": "Segment Number"
85                }
86            }
87        },
88        "busAddress": {
89            "type": "integer",
90            "description": "Memory or I/O address on the bus at the time of the error."
91        },
92        "busData": {
93            "type": "integer",
94            "description": "Data on the PCI bus at the time of the error."
95        },
96        "busCommandType": {
97            "type": "string",
98            "description": "Bus command or operation at the time of the error."
99        },
100        "busRequestorID": {
101            "type": "integer",
102            "description": "PCI Bus Requestor Id."
103        },
104        "busRequestorIDHex": {
105            "type": "string"
106        },
107        "busCompleterID": {
108            "type": "integer",
109            "description": "PCI Bus Responder Id."
110        },
111        "busCompleterIDHex": {
112            "type": "string"
113        },
114        "targetID": {
115            "type": "integer",
116            "description": "PCI Bus intended target identifier."
117        }
118    }
119}
120