1/*
2 * Copyright (c) 2013, Al Stone <al.stone@linaro.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
22 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 *
29 * NB: This License is also known as the "BSD 2-Clause License".
30 *
31 *
32 * [APIC] Multiple APIC Description Table (MADT)
33 * Format: [ByteLength]  FieldName : HexFieldValue
34 *
35 */
36
37[0004]                          Signature : "APIC"
38[0004]                       Table Length : 00000000
39[0001]                           Revision : 03
40[0001]                           Checksum : 00
41[0006]                             Oem ID : "LINARO"
42[0008]                       Oem Table ID : "RTSMVEV8"
43[0004]                       Oem Revision : 00000001
44[0004]                    Asl Compiler ID : "INTL"
45[0004]              Asl Compiler Revision : 20110623
46
47[0004]                 Local Apic Address : 2C000000
48[0004]              Flags (decoded below) : 00000000
49                      PC-AT Compatibility : 0
50
51[0001]                      Subtable Type : 0B [Generic Interrupt Controller]
52[0001]                             Length : 50
53[0002]                           Reserved : 0000
54[0004]               CPU Interface Number : 00000000
55[0004]                      Processor UID : 00000000
56[0004]              Flags (decoded below) : 00000001
57                        Processor Enabled : 1
58       Performance Interrupt Trigger Mode : 0
59       Virtual GIC Interrupt Trigger Mode : 0
60[0004]           Parking Protocol Version : 00000000
61[0004]              Performance Interrupt : 00000000
62[0008]                     Parked Address : 0000000000000000
63[0008]                       Base Address : 000000002C000000  /* armv8 FVP Base GIC address */
64[0008]           Virtual GIC Base Address : 0
65[0008]        Hypervisor GIC Base Address : 0
66[0004]              Virtual GIC Interrupt : 0
67[0008]         Redistributor Base Address : 0
68[0008]                          ARM MPIDR : 0
69[0001]                   Efficiency Class : 00
70[0003]                           Reserved : 000000
71
72[0001]                      Subtable Type : 0B [Generic Interrupt Controller]
73[0001]                             Length : 50
74[0002]                           Reserved : 0000
75[0004]               CPU Interface Number : 00000001
76[0004]                      Processor UID : 00000001
77[0004]              Flags (decoded below) : 00000001
78                        Processor Enabled : 1
79       Performance Interrupt Trigger Mode : 0
80       Virtual GIC Interrupt Trigger Mode : 0
81[0004]           Parking Protocol Version : 00000000
82[0004]              Performance Interrupt : 00000000
83[0008]                     Parked Address : 0000000000000000
84[0008]                       Base Address : 000000002C000000
85[0008]           Virtual GIC Base Address : 0
86[0008]        Hypervisor GIC Base Address : 0
87[0004]              Virtual GIC Interrupt : 0
88[0008]         Redistributor Base Address : 0
89[0008]                          ARM MPIDR : 0000000000000001
90[0001]                   Efficiency Class : 00
91[0003]                           Reserved : 000000
92
93[0001]                      Subtable Type : 0B [Generic Interrupt Controller]
94[0001]                             Length : 50
95[0002]                           Reserved : 0000
96[0004]               CPU Interface Number : 00000002
97[0004]                      Processor UID : 00000002
98[0004]              Flags (decoded below) : 00000001
99                        Processor Enabled : 1
100       Performance Interrupt Trigger Mode : 0
101       Virtual GIC Interrupt Trigger Mode : 0
102[0004]           Parking Protocol Version : 00000000
103[0004]              Performance Interrupt : 00000000
104[0008]                     Parked Address : 0000000000000000
105[0008]                       Base Address : 000000002C000000
106[0008]           Virtual GIC Base Address : 0
107[0008]        Hypervisor GIC Base Address : 0
108[0004]              Virtual GIC Interrupt : 0
109[0008]         Redistributor Base Address : 0
110[0008]                          ARM MPIDR : 0000000000000002
111[0001]                   Efficiency Class : 00
112[0003]                           Reserved : 000000
113
114[0001]                      Subtable Type : 0B [Generic Interrupt Controller]
115[0001]                             Length : 50
116[0002]                           Reserved : 0000
117[0004]               CPU Interface Number : 00000003
118[0004]                      Processor UID : 00000003
119[0004]              Flags (decoded below) : 00000001
120                        Processor Enabled : 1
121       Performance Interrupt Trigger Mode : 0
122       Virtual GIC Interrupt Trigger Mode : 0
123[0004]           Parking Protocol Version : 00000000
124[0004]              Performance Interrupt : 00000000
125[0008]                     Parked Address : 0000000000000000
126[0008]                       Base Address : 000000002C000000
127[0008]           Virtual GIC Base Address : 0
128[0008]        Hypervisor GIC Base Address : 0
129[0004]              Virtual GIC Interrupt : 0
130[0008]         Redistributor Base Address : 0
131[0008]                          ARM MPIDR : 0000000000000003
132[0001]                   Efficiency Class : 00
133[0003]                           Reserved : 000000
134
135[0001]                      Subtable Type : 0B [Generic Interrupt Controller]
136[0001]                             Length : 50
137[0002]                           Reserved : 0000
138[0004]               CPU Interface Number : 00000004
139[0004]                      Processor UID : 00000004
140[0004]              Flags (decoded below) : 00000001
141                        Processor Enabled : 1
142       Performance Interrupt Trigger Mode : 0
143       Virtual GIC Interrupt Trigger Mode : 0
144[0004]           Parking Protocol Version : 00000000
145[0004]              Performance Interrupt : 00000000
146[0008]                     Parked Address : 0000000000000000
147[0008]                       Base Address : 000000002C000000
148[0008]           Virtual GIC Base Address : 0
149[0008]        Hypervisor GIC Base Address : 0
150[0004]              Virtual GIC Interrupt : 0
151[0008]         Redistributor Base Address : 0
152[0008]                          ARM MPIDR : 0000000000000100
153[0001]                   Efficiency Class : 00
154[0003]                           Reserved : 000000
155
156[0001]                      Subtable Type : 0B [Generic Interrupt Controller]
157[0001]                             Length : 50
158[0002]                           Reserved : 0000
159[0004]               CPU Interface Number : 00000005
160[0004]                      Processor UID : 00000005
161[0004]              Flags (decoded below) : 00000001
162                        Processor Enabled : 1
163       Performance Interrupt Trigger Mode : 0
164       Virtual GIC Interrupt Trigger Mode : 0
165[0004]           Parking Protocol Version : 00000000
166[0004]              Performance Interrupt : 00000000
167[0008]                     Parked Address : 0000000000000000
168[0008]                       Base Address : 000000002C000000
169[0008]           Virtual GIC Base Address : 0
170[0008]        Hypervisor GIC Base Address : 0
171[0004]              Virtual GIC Interrupt : 0
172[0008]         Redistributor Base Address : 0
173[0008]                          ARM MPIDR : 0000000000000101
174[0001]                   Efficiency Class : 00
175[0003]                           Reserved : 000000
176
177[0001]                      Subtable Type : 0B [Generic Interrupt Controller]
178[0001]                             Length : 50
179[0002]                           Reserved : 0000
180[0004]               CPU Interface Number : 00000006
181[0004]                      Processor UID : 00000006
182[0004]              Flags (decoded below) : 00000001
183                        Processor Enabled : 1
184       Performance Interrupt Trigger Mode : 0
185       Virtual GIC Interrupt Trigger Mode : 0
186[0004]           Parking Protocol Version : 00000000
187[0004]              Performance Interrupt : 00000000
188[0008]                     Parked Address : 0000000000000000
189[0008]                       Base Address : 000000002C000000
190[0008]           Virtual GIC Base Address : 0
191[0008]        Hypervisor GIC Base Address : 0
192[0004]              Virtual GIC Interrupt : 0
193[0008]         Redistributor Base Address : 0
194[0008]                          ARM MPIDR : 0000000000000102
195[0001]                   Efficiency Class : 00
196[0003]                           Reserved : 000000
197
198[0001]                      Subtable Type : 0B [Generic Interrupt Controller]
199[0001]                             Length : 50
200[0002]                           Reserved : 0000
201[0004]               CPU Interface Number : 00000007
202[0004]                      Processor UID : 00000007
203[0004]              Flags (decoded below) : 00000001
204                        Processor Enabled : 1
205       Performance Interrupt Trigger Mode : 0
206       Virtual GIC Interrupt Trigger Mode : 0
207[0004]           Parking Protocol Version : 00000000
208[0004]              Performance Interrupt : 00000000
209[0008]                     Parked Address : 0000000000000000
210[0008]                       Base Address : 000000002C000000
211[0008]           Virtual GIC Base Address : 0
212[0008]        Hypervisor GIC Base Address : 0
213[0004]              Virtual GIC Interrupt : 0
214[0008]         Redistributor Base Address : 0
215[0008]                          ARM MPIDR : 0000000000000103
216[0001]                   Efficiency Class : 00
217[0003]                           Reserved : 000000
218
219[0001]                      Subtable Type : 0C [Generic Interrupt Distributor]
220[0001]                             Length : 18
221[0002]                           Reserved : 0000
222[0004]              Local GIC Hardware ID : 00000000
223[0008]                       Base Address : 000000002F000000 /* armv8 FVP Base GIC distributor base addr */
224[0004]                     Interrupt Base : 00000000
225[0001]                            Version : 02
226[0003]                           Reserved : 000000
227