-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_apic_8h_source.html
More file actions
360 lines (358 loc) · 57 KB
/
Copy path_apic_8h_source.html
File metadata and controls
360 lines (358 loc) · 57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.17.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HyperDbg Debugger: hyperdbg/hyperhv/header/devices/Apic.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="codefolding.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="module">
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
const theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'default';
mermaid.initialize({ startOnLoad: true, theme: theme });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">HyperDbg Debugger
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.17.0 -->
<script type="text/javascript">
let searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', codefold.init);
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
initMenu('',true);
init_search();
});
</script>
<div id="main-nav-mobile">
<div class="sm sm-dox"><input id="main-menu-state" type="checkbox"/>
<label class="main-menu-btn" for="main-menu-state">
<span class="main-menu-btn-icon"></span> Toggle main menu visibility</label>
<span id="searchBoxPos1" style="position:absolute;right:8px;top:8px;height:36px;"></span>
</div>
</div><!-- main-nav-mobile -->
<div id="main-nav">
<ul class="sm sm-dox" id="main-menu">
<li id="searchBoxPos2" style="float:right">
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<span id="MSearchSelect" class="search-icon" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()"><span class="search-icon-dropdown"></span></span>
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><div id="MSearchCloseImg" class="close-icon"></div></a>
</span>
</div>
</li>
</ul>
</div><!-- main-nav -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded',() => { initNavTree('_apic_8h_source.html','',''); });
</script>
<div id="container">
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">Apic.h</div></div>
</div><!--header-->
<div class="contents">
<a href="_apic_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment">// Definition //</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="_apic_8h.html#adfee98906e6b5c048f76b1a8c1805bdd"> 18</a></span><span class="preprocessor">#define X2_MSR_BASE 0x800</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="_apic_8h.html#a2ee9eaf7cca7c8f93f73fe5150e705e1"> 19</a></span><span class="preprocessor">#define ICROffset 0x300</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="_apic_8h.html#a37687685483afbf4e1c66a2426873c6d"> 20</a></span><span class="preprocessor">#define TO_X2(x) (x / 0x10)</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac61aced0895d0ffc79621790807d28ef"> 22</a></span><span class="preprocessor">#define APIC_DEFAULT_PHYS_BASE 0xfee00000</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="_apic_8h.html#a1fbacbf58be668c88ad5f8b4dbd82b6a"> 23</a></span><span class="preprocessor">#define APIC_BSP (1UL << 8)</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="_apic_8h.html#a50b6430e477f7298c5b87b7e8f2570b9"> 24</a></span><span class="preprocessor">#define APIC_EXTD (1UL << 10)</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="_apic_8h.html#aeaa56c99e8abd4646dada6d7a71c3e19"> 25</a></span><span class="preprocessor">#define APIC_EN (1UL << 11)</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac625008949bb7b7abba2853f972a0ab0"> 27</a></span><span class="preprocessor">#define APIC_LVR 0x30</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="_apic_8h.html#a6811339ac262973fe8f4dc93bd011124"> 28</a></span><span class="preprocessor">#define APIC_LVR_MASK 0xFF00FF</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="_apic_8h.html#a228abf4344184380dc9576a720cf87a3"> 29</a></span><span class="preprocessor">#define GET_APIC_VERSION(x) ((x) & 0xFFu)</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="_apic_8h.html#a607e6d924915cd008dba90fb3bad0e5e"> 30</a></span><span class="preprocessor">#define GET_APIC_MAXLVT(x) (((x) >> 16) & 0xFFu)</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="_apic_8h.html#a87226956ffa5c30948d64adde68a1080"> 32</a></span><span class="preprocessor">#define APIC_INTEGRATED(x) (1)</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="_apic_8h.html#a48c8cdfee06f3fc7ff68dd36f07ae77e"> 33</a></span><span class="preprocessor">#define APIC_XAPIC(x) ((x) >= 0x14)</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="_apic_8h.html#ad47fc9c324a4c65bfc25988dcc6abf5d"> 34</a></span><span class="preprocessor">#define APIC_TASKPRI 0x80</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="_apic_8h.html#af39b6124f294f21dfd0ba9bb3c2c3a8f"> 35</a></span><span class="preprocessor">#define APIC_TPRI_MASK 0xFFu</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab2613d8d4d63174bed58bb2cc7bad687"> 36</a></span><span class="preprocessor">#define APIC_ARBPRI 0x90</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="_apic_8h.html#a3c687d83f2aa00c39721f19f5d598bbd"> 37</a></span><span class="preprocessor">#define APIC_ARBPRI_MASK 0xFFu</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab71ee039ce685022acd8d2d77c8e1dab"> 38</a></span><span class="preprocessor">#define APIC_PROCPRI 0xA0</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="_apic_8h.html#a762ce57a7a995785b5deca59bc8d55ed"> 40</a></span><span class="preprocessor">#define APIC_EIO_ACK 0x0</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="_apic_8h.html#a2fe2d10821167212eb48f000648c5d03"> 41</a></span><span class="preprocessor">#define APIC_RRR 0xC0</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac8f56182740b8d01128911994d19ebc2"> 42</a></span><span class="preprocessor">#define APIC_LDR 0xD0</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="_apic_8h.html#a11a9d55611881ff343ea1974ff2256df"> 43</a></span><span class="preprocessor">#define APIC_LDR_MASK (0xFFu << 24)</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac1f741daca80a5fe03ed9e27a0c1fe77"> 44</a></span><span class="preprocessor">#define GET_APIC_LOGICAL_ID(x) (((x) >> 24) & 0xFFu)</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="_apic_8h.html#a70701bd16067b9fe1e69bc3c61b6b848"> 45</a></span><span class="preprocessor">#define SET_APIC_LOGICAL_ID(x) (((x) << 24))</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac08210643a8222b9063bf12b6571d824"> 46</a></span><span class="preprocessor">#define APIC_ALL_CPUS 0xFFu</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="_apic_8h.html#a45325027aeab8817ebda9fcd827bc8be"> 47</a></span><span class="preprocessor">#define APIC_DFR 0xE0</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="_apic_8h.html#a7477f4f90747447f32db5ea3c49b1682"> 48</a></span><span class="preprocessor">#define APIC_DFR_CLUSTER 0x0FFFFFFFul</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="_apic_8h.html#a7c00c3ef83f493bfbef66d62e2a54cdd"> 49</a></span><span class="preprocessor">#define APIC_DFR_FLAT 0xFFFFFFFFul</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="_apic_8h.html#a12934347b87178fa183715a98c88bbb3"> 50</a></span><span class="preprocessor">#define APIC_SPIV 0xF0</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="_apic_8h.html#adc474cfd23913012401b63fac2c57989"> 51</a></span><span class="preprocessor">#define APIC_SPIV_FOCUS_DISABLED (1 << 9)</span></div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab436570cb2794423e245a6707deb9c5c"> 52</a></span><span class="preprocessor">#define APIC_SPIV_APIC_ENABLED (1 << 8)</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="_apic_8h.html#a23175286d8d880636217f4b899a8c25c"> 53</a></span><span class="preprocessor">#define APIC_ISR 0x100</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="_apic_8h.html#afaf22ae0c00717cc0986f439683d22d0"> 54</a></span><span class="preprocessor">#define APIC_ISR_NR 0x8 </span><span class="comment">/* Number of 32 bit ISR registers. */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="_apic_8h.html#afe1d286eaa1317d596b51d675fcc2893"> 55</a></span><span class="preprocessor">#define APIC_TMR 0x180</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="_apic_8h.html#a0a4184fcddfede56890c8f98771f2b61"> 56</a></span><span class="preprocessor">#define APIC_IRR 0x200</span></div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="_apic_8h.html#a68abb431a1b072843dc6daad39922fac"> 57</a></span><span class="preprocessor">#define APIC_ESR 0x280</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="_apic_8h.html#a2e3b727baadc009b1e006bc4d40cd74a"> 58</a></span><span class="preprocessor">#define APIC_ESR_SEND_CS 0x00001</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="_apic_8h.html#a7fea0fc4e234b6a78402860549819506"> 59</a></span><span class="preprocessor">#define APIC_ESR_RECV_CS 0x00002</span></div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="_apic_8h.html#a8f816efbb2fc9a1e9613db07148bd21e"> 60</a></span><span class="preprocessor">#define APIC_ESR_SEND_ACC 0x00004</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="_apic_8h.html#a0fba8e9501fdd00a376226a484302722"> 61</a></span><span class="preprocessor">#define APIC_ESR_RECV_ACC 0x00008</span></div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="_apic_8h.html#a1ae85012b4045a2218b1a869f38c2a36"> 62</a></span><span class="preprocessor">#define APIC_ESR_SENDILL 0x00020</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="_apic_8h.html#aa8a109458ba54299b488be8d68ec2f6f"> 63</a></span><span class="preprocessor">#define APIC_ESR_RECVILL 0x00040</span></div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab7d6c182db834787011a9a22bb458db5"> 64</a></span><span class="preprocessor">#define APIC_ESR_ILLREGA 0x00080</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="_apic_8h.html#a2158f94fcec452eec1bd8c4286dc270c"> 65</a></span><span class="preprocessor">#define APIC_CMCI 0x2F0</span></div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="_apic_8h.html#af2f3fd708d1519fd7c34a69108cc4452"> 66</a></span><span class="preprocessor">#define APIC_ICR 0x300</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab0436fcdfe189605d5575c9005838ff6"> 67</a></span><span class="preprocessor">#define APIC_DEST_SELF 0x40000</span></div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="_apic_8h.html#af0c591cfee31a7dab6274048d56ef616"> 68</a></span><span class="preprocessor">#define APIC_DEST_ALLINC 0x80000</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="_apic_8h.html#a4b44f895a5bf21bc2dca47a0a54fd475"> 69</a></span><span class="preprocessor">#define APIC_DEST_ALLBUT 0xC0000</span></div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="_apic_8h.html#a56b393fdb179fd151f535389db0cf6cb"> 70</a></span><span class="preprocessor">#define APIC_ICR_RR_MASK 0x30000</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="_apic_8h.html#a7f76e71208ceb8e8fc595af467fd8419"> 71</a></span><span class="preprocessor">#define APIC_ICR_RR_INVALID 0x00000</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac78e4e70d64c182f93358d8c2b3653f8"> 72</a></span><span class="preprocessor">#define APIC_ICR_RR_INPROG 0x10000</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab642a7c6ae768ee2c5ed313314a004f1"> 73</a></span><span class="preprocessor">#define APIC_ICR_RR_VALID 0x20000</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="_apic_8h.html#af06cc6fc982e8203cf4ba90b68062e8e"> 74</a></span><span class="preprocessor">#define APIC_INT_LEVELTRIG 0x08000</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="_apic_8h.html#a60da1efb5d58832f8392dba532a22bc4"> 75</a></span><span class="preprocessor">#define APIC_INT_ASSERT 0x04000</span></div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="_apic_8h.html#afebca853b71f29d11ee98d2d27a9d4f3"> 76</a></span><span class="preprocessor">#define APIC_ICR_BUSY 0x01000</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="_apic_8h.html#af12c9b49b13679bbca9da431b67688a3"> 77</a></span><span class="preprocessor">#define APIC_DEST_LOGICAL 0x00800</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="_apic_8h.html#acb6babc16752ee74afc9970e9966de5c"> 78</a></span><span class="preprocessor">#define APIC_DEST_PHYSICAL 0x00000</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="_apic_8h.html#a36e55c5f0681888a658d7b115ccc50aa"> 79</a></span><span class="preprocessor">#define APIC_DM_FIXED 0x00000</span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="_apic_8h.html#adea9c98ec785dfbac7252a853549cc60"> 80</a></span><span class="preprocessor">#define APIC_DM_LOWEST 0x00100</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab5ae37f832c0dfb7a83e8d51e8fea95f"> 81</a></span><span class="preprocessor">#define APIC_DM_SMI 0x00200</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="_apic_8h.html#a059029a44201a2fc7ff3fee7c4edf787"> 82</a></span><span class="preprocessor">#define APIC_DM_REMRD 0x00300</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="_apic_8h.html#a229473e86a744bc818fd06ea9c10e5a7"> 83</a></span><span class="preprocessor">#define APIC_DM_NMI 0x00400</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="_apic_8h.html#a1534bf5d476038b479b989ea594194d5"> 84</a></span><span class="preprocessor">#define APIC_DM_INIT 0x00500</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="_apic_8h.html#a32e9fbec28e1b0407b81f4a6e4824831"> 85</a></span><span class="preprocessor">#define APIC_DM_STARTUP 0x00600</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac600ee06ba1973eac18d1bdd4f23b2ce"> 86</a></span><span class="preprocessor">#define APIC_DM_EXTINT 0x00700</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="_apic_8h.html#adedb94ca3e0682948cd0547a24d057dc"> 87</a></span><span class="preprocessor">#define APIC_VECTOR_MASK 0x000FF</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"><a class="line" href="_apic_8h.html#ad2fb5d9955e427568ccaa278aeed8ef4"> 88</a></span><span class="preprocessor">#define APIC_ICR2 0x310</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab5dee8ede47fc02e95ac8c1065141de6"> 89</a></span><span class="preprocessor">#define GET_APIC_DEST_FIELD(x) (((x) >> 24) & 0xFF)</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="_apic_8h.html#ae231c3379aef7e41c42ccbca6624a766"> 90</a></span><span class="preprocessor">#define SET_APIC_DEST_FIELD(x) ((x) << 24)</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="_apic_8h.html#a67b4a1420ddd301f686bc48f1dc62e8a"> 91</a></span><span class="preprocessor">#define APIC_LVTT 0x320</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="_apic_8h.html#a1210d11a78324573306dfcc844eb77d0"> 92</a></span><span class="preprocessor">#define APIC_LVTTHMR 0x330</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"><a class="line" href="_apic_8h.html#a0479d9cf649dfa00e7b1716981de4f34"> 93</a></span><span class="preprocessor">#define APIC_LVTPC 0x340</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="_apic_8h.html#a134c38766b4e0b92f41035145740fed7"> 94</a></span><span class="preprocessor">#define APIC_LVT0 0x350</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac6ce59c35e2ebcc9f5add5de1bebff93"> 95</a></span><span class="preprocessor">#define APIC_LVT_TIMER_BASE_MASK (0x3 << 18)</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="_apic_8h.html#aa3bf34014cd1e39e75bbb39c4ca86718"> 96</a></span><span class="preprocessor">#define GET_APIC_TIMER_BASE(x) (((x) >> 18) & 0x3)</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="_apic_8h.html#a456bc2a1a08ca449732c287d634375e8"> 97</a></span><span class="preprocessor">#define SET_APIC_TIMER_BASE(x) (((x) << 18))</span></div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="_apic_8h.html#af731a92907a1428862c4d1a6132da70f"> 98</a></span><span class="preprocessor">#define APIC_TIMER_BASE_CLKIN 0x0</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="_apic_8h.html#a177c1dcf9a7f0167477416c08743ffe3"> 99</a></span><span class="preprocessor">#define APIC_TIMER_BASE_TMBASE 0x1</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="_apic_8h.html#a06536eb1db76d4bfbbf31f613a0d837a"> 100</a></span><span class="preprocessor">#define APIC_TIMER_BASE_DIV 0x2</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab59db87f85faf0046e2c202d8469b73f"> 101</a></span><span class="preprocessor">#define APIC_LVT_TIMER_MASK (3 << 17)</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="_apic_8h.html#adbb3bcb5067d7830132cf08a160d0c5c"> 102</a></span><span class="preprocessor">#define APIC_LVT_TIMER_ONESHOT (0 << 17)</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="_apic_8h.html#afbe5c3c5e249b35d3230d29faa253475"> 103</a></span><span class="preprocessor">#define APIC_LVT_TIMER_PERIODIC (1 << 17)</span></div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="_apic_8h.html#a5b2bfb5967a1ce2a121b211555b51641"> 104</a></span><span class="preprocessor">#define APIC_LVT_TIMER_TSCDEADLINE (2 << 17)</span></div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="_apic_8h.html#ae4e0d141bf2c6c0a4f28bd54b0c93a41"> 105</a></span><span class="preprocessor">#define APIC_LVT_MASKED (1 << 16)</span></div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="_apic_8h.html#aa6f53c729f08f9470e244d69fbd68bee"> 106</a></span><span class="preprocessor">#define APIC_LVT_LEVEL_TRIGGER (1 << 15)</span></div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"><a class="line" href="_apic_8h.html#a508c68128f3e905afae3e0874b93a0ab"> 107</a></span><span class="preprocessor">#define APIC_LVT_REMOTE_IRR (1 << 14)</span></div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac94402538b8d2c6de2fd4b269e46bbbd"> 108</a></span><span class="preprocessor">#define APIC_INPUT_POLARITY (1 << 13)</span></div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="_apic_8h.html#aa1954b77dc3b033fa5f68ef9b60b3e63"> 109</a></span><span class="preprocessor">#define APIC_SEND_PENDING (1 << 12)</span></div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="_apic_8h.html#a93dcd2e35c40ca13d9ca726675be089c"> 110</a></span><span class="preprocessor">#define APIC_MODE_MASK 0x700</span></div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"><a class="line" href="_apic_8h.html#a516ea2620671530756cbc600fd234748"> 111</a></span><span class="preprocessor">#define GET_APIC_DELIVERY_MODE(x) (((x) >> 8) & 0x7)</span></div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="_apic_8h.html#aa639e977f9d4fbb2c52426dd862e3147"> 112</a></span><span class="preprocessor">#define SET_APIC_DELIVERY_MODE(x, y) (((x) & ~0x700) | ((y) << 8))</span></div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="_apic_8h.html#a8853bbf5cc48af71a08e63cbd1ba48a0"> 113</a></span><span class="preprocessor">#define APIC_MODE_FIXED 0x0</span></div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="_apic_8h.html#a3c337d50ffe2401cc189b8558851695c"> 114</a></span><span class="preprocessor">#define APIC_MODE_NMI 0x4</span></div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"><a class="line" href="_apic_8h.html#a49b4e01a03317e8429d2169a80f43d46"> 115</a></span><span class="preprocessor">#define APIC_MODE_EXTINT 0x7</span></div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="_apic_8h.html#a4250a971e948124fd17e5a55ab78fdd1"> 116</a></span><span class="preprocessor">#define APIC_LVT1 0x360</span></div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac9feb0a9ddcc48a7e4c04feaa9bfec8a"> 117</a></span><span class="preprocessor">#define APIC_LVTERR 0x370</span></div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"><a class="line" href="_apic_8h.html#a47d40d7e7d91e5ad42ff6aa280c01fcb"> 118</a></span><span class="preprocessor">#define APIC_TMICT 0x380</span></div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="_apic_8h.html#a7cea46ea99140d61f1b42d45f220bec7"> 119</a></span><span class="preprocessor">#define APIC_TMCCT 0x390</span></div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac7da91599eb6e489ef3620cdc3d0f67a"> 120</a></span><span class="preprocessor">#define APIC_TDCR 0x3E0</span></div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="_apic_8h.html#a331e8907fdf1a1d8cb56e19957c054b1"> 121</a></span><span class="preprocessor">#define APIC_SELF_IPI 0x3F0</span></div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="_apic_8h.html#abc696321a114d6abb98ec5e41467589e"> 122</a></span><span class="preprocessor">#define APIC_TDR_DIV_TMBASE (1 << 2)</span></div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"><a class="line" href="_apic_8h.html#acee83bc6524fed95e7a744320f58e3b3"> 123</a></span><span class="preprocessor">#define APIC_TDR_DIV_1 0xB</span></div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="_apic_8h.html#a2f0642da7024658cd100f699fcdfc88d"> 124</a></span><span class="preprocessor">#define APIC_TDR_DIV_2 0x0</span></div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="_apic_8h.html#a5b58259f737e380c3b2541097e8b5318"> 125</a></span><span class="preprocessor">#define APIC_TDR_DIV_4 0x1</span></div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="_apic_8h.html#af0b4031e4752a03c07a5a7a493a6815e"> 126</a></span><span class="preprocessor">#define APIC_TDR_DIV_8 0x2</span></div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="_apic_8h.html#a357734395cb5ceb7b13211ca4752d1d1"> 127</a></span><span class="preprocessor">#define APIC_TDR_DIV_16 0x3</span></div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="_apic_8h.html#a3198972ac9838abaac5c76ba5a4e3f82"> 128</a></span><span class="preprocessor">#define APIC_TDR_DIV_32 0x8</span></div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="_apic_8h.html#a3774eb6e07715fcfb058cb5913bc7a9c"> 129</a></span><span class="preprocessor">#define APIC_TDR_DIV_64 0x9</span></div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="_apic_8h.html#afe8f5033f4a92f2434b16e420e5cade0"> 130</a></span><span class="preprocessor">#define APIC_TDR_DIV_128 0xA</span></div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"><a class="line" href="_apic_8h.html#aad32ec51411c504531d8605705c786b8"> 131</a></span><span class="preprocessor">#define APIC_EILVT0 0x500</span></div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="_apic_8h.html#a866b92eb946a4cd2c52f730e9d0448fc"> 132</a></span><span class="preprocessor">#define APIC_EILVT_NR_AMD_K8 1 </span><span class="comment">/* # of extended interrupts */</span><span class="preprocessor"></span></div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"><a class="line" href="_apic_8h.html#aeb4c98b789887ab927d044397d6887df"> 133</a></span><span class="preprocessor">#define APIC_EILVT_NR_AMD_10H 4</span></div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"><a class="line" href="_apic_8h.html#a345330df00f4ac13f3f65de413869fc2"> 134</a></span><span class="preprocessor">#define APIC_EILVT_LVTOFF(x) (((x) >> 4) & 0xF)</span></div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="_apic_8h.html#a5362c5ab1756cb5b0f2eefc833533926"> 135</a></span><span class="preprocessor">#define APIC_EILVT_MSG_FIX 0x0</span></div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="_apic_8h.html#a9baee4efa9fd829fa9316ead37a36026"> 136</a></span><span class="preprocessor">#define APIC_EILVT_MSG_SMI 0x2</span></div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"><a class="line" href="_apic_8h.html#a3a89e1428bc3f983de9c1fedaff7f8f7"> 137</a></span><span class="preprocessor">#define APIC_EILVT_MSG_NMI 0x4</span></div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="_apic_8h.html#adfd98a879b30f928c7e57cca2641df5b"> 138</a></span><span class="preprocessor">#define APIC_EILVT_MSG_EXT 0x7</span></div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"><a class="line" href="_apic_8h.html#a2d77b5a9f496987abeff1d46478930de"> 139</a></span><span class="preprocessor">#define APIC_EILVT_MASKED (1 << 16)</span></div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="_apic_8h.html#ac84e2e442fda3855cfa00683247d23e6"> 140</a></span><span class="preprocessor">#define APIC_EILVT1 0x510</span></div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="_apic_8h.html#a9024d4a556f701e30c163a1eeebb8f03"> 141</a></span><span class="preprocessor">#define APIC_EILVT2 0x520</span></div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="_apic_8h.html#a38d322d8d16191288963a86b427a5a10"> 142</a></span><span class="preprocessor">#define APIC_EILVT3 0x530</span></div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="_apic_8h.html#a96bccef7658e28a44636ba3a66ff1fe1"> 144</a></span><span class="preprocessor">#define APIC_BASE_MSR 0x800</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span><span class="preprocessor">#define APIC_BASE_MSR 0x800</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span></div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span><span class="comment">// I/O APIC //</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="foldopen" id="foldopen00151" data-start="{" data-end="};">
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"><a class="line" href="struct___i_o___a_p_i_c___e_n_t.html"> 151</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="struct___i_o___a_p_i_c___e_n_t.html">_IO_APIC_ENT</a></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span>{</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="struct___i_o___a_p_i_c___e_n_t.html#aff902e69fab9746aef0548a174346ddb"> 153</a></span> <a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#ae1e6edbbc26d6fbc71a90190d0266018">UINT32</a> <a class="code hl_variable" href="struct___i_o___a_p_i_c___e_n_t.html#aff902e69fab9746aef0548a174346ddb">Reg</a>;</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="struct___i_o___a_p_i_c___e_n_t.html#a8d090aa148e642275535233be53cd9a8"> 154</a></span> <a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#ae1e6edbbc26d6fbc71a90190d0266018">UINT32</a> <a class="code hl_variable" href="struct___i_o___a_p_i_c___e_n_t.html#a8d090aa148e642275535233be53cd9a8">Pad</a>[3];</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"><a class="line" href="struct___i_o___a_p_i_c___e_n_t.html#aea75e4c3cd84183ea61fbfcdc763a569"> 155</a></span> <a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#ae1e6edbbc26d6fbc71a90190d0266018">UINT32</a> <a class="code hl_variable" href="struct___i_o___a_p_i_c___e_n_t.html#aea75e4c3cd84183ea61fbfcdc763a569">Data</a>;</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="_apic_8h.html#acbceb3cc378cf07789462fb51a430638"> 157</a></span>} <a class="code hl_typedef" href="_apic_8h.html#acbceb3cc378cf07789462fb51a430638">IO_APIC_ENT</a>, *<a class="code hl_typedef" href="_apic_8h.html#a8005bcd1acbf8d1aec97718495474171">PIO_APIC_ENT</a>;</div>
</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"><a class="line" href="_apic_8h.html#aa1275068d58d7978e931dd71b585c9fb"> 159</a></span><span class="preprocessor">#define IO_APIC_DEFAULT_BASE_ADDR 0xFEC00000 </span><span class="comment">// Default physical address of IO APIC</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="_apic_8h.html#a5f50e8238b0c20922b66bf30639abddb"> 161</a></span><span class="preprocessor">#define IOAPIC_APPEND_QWORD(hi, lo) (((UINT64)(hi) << 32) | (UINT64)(lo))</span></div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="_apic_8h.html#ae6d8a4b385036a8a7f3697c87a81970d"> 162</a></span><span class="preprocessor">#define IOAPIC_LOW_DWORD(x) ((UINT32)(x))</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab51a2cc386383472456ba6a5a4b89e8f"> 163</a></span><span class="preprocessor">#define IOAPIC_HIGH_DWORD(x) ((UINT32)((x) >> 32))</span></div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="_apic_8h.html#a2f40183f7cc30592bd69990e5e22b1c9"> 165</a></span><span class="preprocessor">#define IOAPIC_REDTBL(x) (0x10 + (x) * 2)</span></div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="_apic_8h.html#a237cd05e2f8a40acbe1165809f5e8859"> 166</a></span><span class="preprocessor">#define IOAPIC_REDTBL_MAX (24)</span></div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> </div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="_apic_8h.html#a4b6b140ae37c7f9c703ffa28618e2d84"> 168</a></span><span class="preprocessor">#define LU_SIZE 0x400</span></div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"><a class="line" href="_apic_8h.html#a4ac83bdf5cbe9a516ff2de6fdcb5d704"> 170</a></span><span class="preprocessor">#define LU_ID_REGISTER 0x00000020</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"><a class="line" href="_apic_8h.html#aabe6d08c74d2214fe329d30d6f6c4425"> 171</a></span><span class="preprocessor">#define LU_VERS_REGISTER 0x00000030</span></div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"><a class="line" href="_apic_8h.html#a0d137137d09c34ddebbd4ba0430c2100"> 172</a></span><span class="preprocessor">#define LU_TPR 0x00000080</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="_apic_8h.html#a255d6444913fc942e7a9e9cfc1e909a8"> 173</a></span><span class="preprocessor">#define LU_APR 0x00000090</span></div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"><a class="line" href="_apic_8h.html#a86f518bc47758a582bc314d1c3299233"> 174</a></span><span class="preprocessor">#define LU_PPR 0x000000A0</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="_apic_8h.html#a7a26f379593479cbe45bc8efa8af153d"> 175</a></span><span class="preprocessor">#define LU_EOI 0x000000B0</span></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="_apic_8h.html#a085a8b3cc3dbfb56db5f93ccc5fb229b"> 176</a></span><span class="preprocessor">#define LU_REMOTE_REGISTER 0x000000C0</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"><a class="line" href="_apic_8h.html#a6a1b26836575670a5ad57c57d84b6f8a"> 178</a></span><span class="preprocessor">#define LU_DEST 0x000000D0</span></div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"><a class="line" href="_apic_8h.html#afb2bc22ccb69563488ac8b905a9418ea"> 179</a></span><span class="preprocessor">#define LU_DEST_FORMAT 0x000000E0</span></div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> </div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"><a class="line" href="_apic_8h.html#ae1c2d7bdc5c0c0523a184f5fd77c8ee6"> 181</a></span><span class="preprocessor">#define LU_SPURIOUS_VECTOR 0x000000F0</span></div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="_apic_8h.html#af3ba84415ed4f93d68135bf3fd947d62"> 182</a></span><span class="preprocessor">#define LU_FAULT_VECTOR 0x00000370</span></div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="_apic_8h.html#a47d4b6283360553c0a5be2f576d6e4d3"> 184</a></span><span class="preprocessor">#define LU_ISR_0 0x00000100</span></div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="_apic_8h.html#afbde0c2a9882c60723ec90f6106e1267"> 185</a></span><span class="preprocessor">#define LU_TMR_0 0x00000180</span></div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"><a class="line" href="_apic_8h.html#a5f4b4fb364abf560a0311f7e85d09172"> 186</a></span><span class="preprocessor">#define LU_IRR_0 0x00000200</span></div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="_apic_8h.html#aef3e9cd640bab888047140f68fe88ab5"> 187</a></span><span class="preprocessor">#define LU_ERROR_STATUS 0x00000280</span></div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="_apic_8h.html#a3e1946ea2ff5fd798ecd35deb63e1978"> 188</a></span><span class="preprocessor">#define LU_INT_CMD_LOW 0x00000300</span></div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab9ac8f4005386a90759d512decf0d74b"> 189</a></span><span class="preprocessor">#define LU_INT_CMD_HIGH 0x00000310</span></div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"><a class="line" href="_apic_8h.html#a80e7f7cdd433b0957bb51ceecb2327e0"> 190</a></span><span class="preprocessor">#define LU_TIMER_VECTOR 0x00000320</span></div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"><a class="line" href="_apic_8h.html#ae66dbe0f8d1b55ebc7a519184dff65d5"> 191</a></span><span class="preprocessor">#define LU_INT_VECTOR_0 0x00000350</span></div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"><a class="line" href="_apic_8h.html#a15ea458dc6a8034b3e1ca771bc32fbcb"> 192</a></span><span class="preprocessor">#define LU_INT_VECTOR_1 0x00000360</span></div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="_apic_8h.html#a2d860c8b2f93d542dc6bdead7c394813"> 193</a></span><span class="preprocessor">#define LU_INITIAL_COUNT 0x00000380</span></div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"><a class="line" href="_apic_8h.html#ad5528372ed0827317677afc739e3d140"> 194</a></span><span class="preprocessor">#define LU_CURRENT_COUNT 0x00000390</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"><a class="line" href="_apic_8h.html#a15a95af57b2bbcd690c5f4ef716c771e"> 195</a></span><span class="preprocessor">#define LU_DIVIDER_CONFIG 0x000003E0</span></div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"><a class="line" href="_apic_8h.html#a5b864788055e1d777ac1a37a2d2a93af"> 197</a></span><span class="preprocessor">#define IO_REGISTER_SELECT 0x00000000</span></div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"><a class="line" href="_apic_8h.html#a241da1d6f87b298af6ae06ce821e3a49"> 198</a></span><span class="preprocessor">#define IO_REGISTER_WINDOW 0x00000010</span></div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> </div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="_apic_8h.html#ab34d3161a55a92c247bccfdb3972d90b"> 200</a></span><span class="preprocessor">#define IO_ID_REGISTER 0x00000000</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="_apic_8h.html#a738f9b335a319704d6cbf07f3209b8b7"> 201</a></span><span class="preprocessor">#define IO_VERS_REGISTER 0x00000001</span></div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"><a class="line" href="_apic_8h.html#affc6de85670281f1e0b498a71505ac59"> 202</a></span><span class="preprocessor">#define IO_ARB_ID_REGISTER 0x00000002</span></div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"><a class="line" href="_apic_8h.html#a3a3b8b7307aa700e4ede0fd3dc8a3c80"> 203</a></span><span class="preprocessor">#define IO_REDIR_BASE 0x00000010</span></div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span></div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span><span class="comment">// Functions //</span></div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> </div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span><a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#a1cb18096b299d23458d3c7b85fd86555">BOOLEAN</a></div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span><a class="code hl_function" href="_apic_8h.html#aa1579b622086c2e7a834971660dfce16">ApicInitialize</a>();</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> </div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span>VOID</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span><a class="code hl_function" href="_apic_8h.html#a99ca960758ed96047d2f5519d3174ba8">ApicUninitialize</a>();</div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> </div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span><a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#a1cb18096b299d23458d3c7b85fd86555">BOOLEAN</a></div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span><a class="code hl_function" href="_apic_8h.html#a2774875e09d5ba5a5e8551c83f62b659">ApicStoreLocalApicFields</a>(<a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_request_structures_8h.html#a1b2cad65c29ee7c00d1cf68202471a60">PLAPIC_PAGE</a> LApicBuffer, <a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#a5fb149be049e9964b63bdd041c1bb130">PBOOLEAN</a> IsUsingX2APIC);</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span><a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#a1cb18096b299d23458d3c7b85fd86555">BOOLEAN</a></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span><a class="code hl_function" href="_apic_8h.html#a4102d1f46bb498bd8329f30d0ed0d84d">ApicStoreIoApicFields</a>(<a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_request_structures_8h.html#a73360d9d169a26becece325574644147">IO_APIC_ENTRY_PACKETS</a> * IoApicPackets);</div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> </div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span>VOID</div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span><a class="code hl_function" href="_apic_8h.html#acbb6c074754248a28dd3bed0691400f4">ApicSelfIpi</a>(<a class="code hl_typedef" href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#ae1e6edbbc26d6fbc71a90190d0266018">UINT32</a> Vector);</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> </div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span>VOID</div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span><a class="code hl_function" href="_apic_8h.html#a88225b66b768b858b812c09320b9ab34">ApicTriggerGenericNmi</a>();</div>
<div class="ttc" id="a_apic_8h_html_a2774875e09d5ba5a5e8551c83f62b659"><div class="ttname"><a href="_apic_8h.html#a2774875e09d5ba5a5e8551c83f62b659">ApicStoreLocalApicFields</a></div><div class="ttdeci">BOOLEAN ApicStoreLocalApicFields(PLAPIC_PAGE LApicBuffer, PBOOLEAN IsUsingX2APIC)</div><div class="ttdoc">Store the details of APIC in xAPIC and x2APIC mode.</div><div class="ttdef"><b>Definition</b> Apic.c:324</div></div>
<div class="ttc" id="a_apic_8h_html_a4102d1f46bb498bd8329f30d0ed0d84d"><div class="ttname"><a href="_apic_8h.html#a4102d1f46bb498bd8329f30d0ed0d84d">ApicStoreIoApicFields</a></div><div class="ttdeci">BOOLEAN ApicStoreIoApicFields(IO_APIC_ENTRY_PACKETS *IoApicPackets)</div><div class="ttdoc">Store the details of I/O APIC.</div><div class="ttdef"><b>Definition</b> Apic.c:345</div></div>
<div class="ttc" id="a_apic_8h_html_a8005bcd1acbf8d1aec97718495474171"><div class="ttname"><a href="_apic_8h.html#a8005bcd1acbf8d1aec97718495474171">PIO_APIC_ENT</a></div><div class="ttdeci">struct _IO_APIC_ENT * PIO_APIC_ENT</div></div>
<div class="ttc" id="a_apic_8h_html_a88225b66b768b858b812c09320b9ab34"><div class="ttname"><a href="_apic_8h.html#a88225b66b768b858b812c09320b9ab34">ApicTriggerGenericNmi</a></div><div class="ttdeci">VOID ApicTriggerGenericNmi()</div><div class="ttdoc">Trigger NMI on X2APIC or APIC based on Current system.</div><div class="ttdef"><b>Definition</b> Apic.c:283</div></div>
<div class="ttc" id="a_apic_8h_html_a99ca960758ed96047d2f5519d3174ba8"><div class="ttname"><a href="_apic_8h.html#a99ca960758ed96047d2f5519d3174ba8">ApicUninitialize</a></div><div class="ttdeci">VOID ApicUninitialize()</div><div class="ttdoc">Uninitialize APIC.</div><div class="ttdef"><b>Definition</b> Apic.c:429</div></div>
<div class="ttc" id="a_apic_8h_html_aa1579b622086c2e7a834971660dfce16"><div class="ttname"><a href="_apic_8h.html#aa1579b622086c2e7a834971660dfce16">ApicInitialize</a></div><div class="ttdeci">BOOLEAN ApicInitialize()</div><div class="ttdoc">Initialize APIC.</div><div class="ttdef"><b>Definition</b> Apic.c:366</div></div>
<div class="ttc" id="a_apic_8h_html_acbb6c074754248a28dd3bed0691400f4"><div class="ttname"><a href="_apic_8h.html#acbb6c074754248a28dd3bed0691400f4">ApicSelfIpi</a></div><div class="ttdeci">VOID ApicSelfIpi(UINT32 Vector)</div><div class="ttdoc">Self IPI the current core.</div><div class="ttdef"><b>Definition</b> Apic.c:455</div></div>
<div class="ttc" id="a_apic_8h_html_acbceb3cc378cf07789462fb51a430638"><div class="ttname"><a href="_apic_8h.html#acbceb3cc378cf07789462fb51a430638">IO_APIC_ENT</a></div><div class="ttdeci">struct _IO_APIC_ENT IO_APIC_ENT</div></div>
<div class="ttc" id="abuild_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h_html_a1cb18096b299d23458d3c7b85fd86555"><div class="ttname"><a href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#a1cb18096b299d23458d3c7b85fd86555">BOOLEAN</a></div><div class="ttdeci">UCHAR BOOLEAN</div><div class="ttdef"><b>Definition</b> BasicTypes.h:35</div></div>
<div class="ttc" id="abuild_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h_html_a5fb149be049e9964b63bdd041c1bb130"><div class="ttname"><a href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#a5fb149be049e9964b63bdd041c1bb130">PBOOLEAN</a></div><div class="ttdeci">BOOLEAN * PBOOLEAN</div><div class="ttdef"><b>Definition</b> BasicTypes.h:36</div></div>
<div class="ttc" id="abuild_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h_html_ae1e6edbbc26d6fbc71a90190d0266018"><div class="ttname"><a href="build_2bin_2debug_2_s_d_k_2headers_2_basic_types_8h.html#ae1e6edbbc26d6fbc71a90190d0266018">UINT32</a></div><div class="ttdeci">unsigned int UINT32</div><div class="ttdef"><b>Definition</b> BasicTypes.h:54</div></div>
<div class="ttc" id="abuild_2bin_2debug_2_s_d_k_2headers_2_request_structures_8h_html_a1b2cad65c29ee7c00d1cf68202471a60"><div class="ttname"><a href="build_2bin_2debug_2_s_d_k_2headers_2_request_structures_8h.html#a1b2cad65c29ee7c00d1cf68202471a60">PLAPIC_PAGE</a></div><div class="ttdeci">struct _LAPIC_PAGE * PLAPIC_PAGE</div></div>
<div class="ttc" id="abuild_2bin_2debug_2_s_d_k_2headers_2_request_structures_8h_html_a73360d9d169a26becece325574644147"><div class="ttname"><a href="build_2bin_2debug_2_s_d_k_2headers_2_request_structures_8h.html#a73360d9d169a26becece325574644147">IO_APIC_ENTRY_PACKETS</a></div><div class="ttdeci">struct _IO_APIC_ENTRY_PACKETS IO_APIC_ENTRY_PACKETS</div><div class="ttdoc">The structure of I/O APIC result packet in HyperDbg.</div></div>
<div class="ttc" id="astruct___i_o___a_p_i_c___e_n_t_html"><div class="ttname"><a href="struct___i_o___a_p_i_c___e_n_t.html">_IO_APIC_ENT</a></div><div class="ttdef"><b>Definition</b> Apic.h:152</div></div>
<div class="ttc" id="astruct___i_o___a_p_i_c___e_n_t_html_a8d090aa148e642275535233be53cd9a8"><div class="ttname"><a href="struct___i_o___a_p_i_c___e_n_t.html#a8d090aa148e642275535233be53cd9a8">_IO_APIC_ENT::Pad</a></div><div class="ttdeci">UINT32 Pad[3]</div><div class="ttdef"><b>Definition</b> Apic.h:154</div></div>
<div class="ttc" id="astruct___i_o___a_p_i_c___e_n_t_html_aea75e4c3cd84183ea61fbfcdc763a569"><div class="ttname"><a href="struct___i_o___a_p_i_c___e_n_t.html#aea75e4c3cd84183ea61fbfcdc763a569">_IO_APIC_ENT::Data</a></div><div class="ttdeci">UINT32 Data</div><div class="ttdef"><b>Definition</b> Apic.h:155</div></div>
<div class="ttc" id="astruct___i_o___a_p_i_c___e_n_t_html_aff902e69fab9746aef0548a174346ddb"><div class="ttname"><a href="struct___i_o___a_p_i_c___e_n_t.html#aff902e69fab9746aef0548a174346ddb">_IO_APIC_ENT::Reg</a></div><div class="ttdeci">UINT32 Reg</div><div class="ttdef"><b>Definition</b> Apic.h:153</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
</div><!-- container -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a href="dir_53a6cdbae347618e9ee76d4be5c6ea96.html">hyperdbg</a></li><li class="navelem"><a href="dir_e536aab728f7b0abbbf7dc8fdcfcc81b.html">hyperhv</a></li><li class="navelem"><a href="dir_c1e9402aa68d313bf3c169dd8660abb3.html">header</a></li><li class="navelem"><a href="dir_98124e950a4587d843524ae1a63f9f68.html">devices</a></li><li class="navelem"><a href="_apic_8h.html">Apic.h</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.17.0 </li>
</ul>
</div>
</body>
</html>