-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacpi-shutdown_8h.html
executable file
·197 lines (192 loc) · 10.9 KB
/
acpi-shutdown_8h.html
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
<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FrostWing: source/includes/acpi-shutdown.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.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>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.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 style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="FW.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">FrostWing
</div>
<div id="projectbrief">A Operating system for any machine</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</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">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('acpi-shutdown_8h.html',''); initResizable(); });
/* @license-end */
</script>
<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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">acpi-shutdown.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>The ACPI Shutdown Header for Wing kernel, this is not the full ACPI.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <stddef.h></code><br />
<code>#include <stdint.h></code><br />
<code>#include <<a class="el" href="basics_8h_source.html">basics.h</a>></code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for acpi-shutdown.h:</div>
<div class="dyncontent">
<div class="center"><img src="acpi-shutdown_8h__incl.png" border="0" usemap="#asource_2includes_2acpi-shutdown_8h" alt=""/></div>
<map name="asource_2includes_2acpi-shutdown_8h" id="asource_2includes_2acpi-shutdown_8h">
<area shape="rect" title="The ACPI Shutdown Header for Wing kernel, this is not the full ACPI." alt="" coords="15,5,169,47"/>
<area shape="rect" title=" " alt="" coords="5,169,80,196"/>
<area shape="rect" title=" " alt="" coords="118,169,189,196"/>
<area shape="rect" href="basics_8h.html" title="This is a basic header files with FrostWing specific short forms and basically a good for life header..." alt="" coords="55,95,129,121"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="acpi-shutdown_8h__dep__incl.png" border="0" usemap="#asource_2includes_2acpi-shutdown_8hdep" alt=""/></div>
<map name="asource_2includes_2acpi-shutdown_8hdep" id="asource_2includes_2acpi-shutdown_8hdep">
<area shape="rect" title="The ACPI Shutdown Header for Wing kernel, this is not the full ACPI." alt="" coords="30,5,185,47"/>
<area shape="rect" href="kernel_8h.html" title="The basic requirement from kernel to other parts of the code." alt="" coords="18,95,197,121"/>
<area shape="rect" href="meltdown_8h.html" title="The headers for meltdown.c." alt="" coords="5,169,209,196"/>
</map>
</div>
</div>
<p><a href="acpi-shutdown_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4d2db64ac29a1ed3377050096943a3ab"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="acpi-shutdown_8h.html#a4d2db64ac29a1ed3377050096943a3ab">acpi_shutdown_hack</a> (uintptr_t direct_map_base, void *(*find_sdt)(<a class="el" href="basics_8h.html#a5a6534f59959c993a087b6bd6baa5e27">cstring</a> <a class="el" href="acpi_8h.html#a7df4f23794127d1af7b8361d982c6ee4">signature</a>, size_t index), <a class="el" href="basics_8h.html#a9d29437bbd2066ff470a22533d110a42">int8</a>(*<a class="el" href="hal_8h.html#a9d8990ac46c4710dd92be3fa6880d473">inb</a>)(<a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port), <a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a>(*<a class="el" href="hal_8h.html#a07569ac66ae49608eccd092f058e6208">inw</a>)(<a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port), void(*<a class="el" href="hal_8h.html#a01b3ad1397905fa9db2c57bbbbf9b22c">outb</a>)(<a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port, <a class="el" href="basics_8h.html#a9d29437bbd2066ff470a22533d110a42">int8</a> value), void(*<a class="el" href="hal_8h.html#accde7e618c58efdc5b465c083341846f">outw</a>)(<a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port, <a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> value))</td></tr>
<tr class="separator:a4d2db64ac29a1ed3377050096943a3ab"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The ACPI Shutdown Header for Wing kernel, this is not the full ACPI. </p>
<dl class="section author"><dt>Author</dt><dd>Mintsuki (<a href="https://github.com/mintsuki">https://github.com/mintsuki</a>) </dd></dl>
<dl class="section version"><dt>Version</dt><dd>0.1 </dd></dl>
<dl class="section date"><dt>Date</dt><dd>2023-10-29</dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>Copyright (C) 2019-2023 mintsuki and contributors. </dd></dl>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a4d2db64ac29a1ed3377050096943a3ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d2db64ac29a1ed3377050096943a3ab">◆ </a></span>acpi_shutdown_hack()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int acpi_shutdown_hack </td>
<td>(</td>
<td class="paramtype">uintptr_t </td>
<td class="paramname"><em>direct_map_base</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void *(*)(<a class="el" href="basics_8h.html#a5a6534f59959c993a087b6bd6baa5e27">cstring</a> <a class="el" href="acpi_8h.html#a7df4f23794127d1af7b8361d982c6ee4">signature</a>, size_t index) </td>
<td class="paramname"><em>find_sdt</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="basics_8h.html#a9d29437bbd2066ff470a22533d110a42">int8</a>(*)(<a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port) </td>
<td class="paramname"><em>inb</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a>(*)(<a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port) </td>
<td class="paramname"><em>inw</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void(*)(<a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port, <a class="el" href="basics_8h.html#a9d29437bbd2066ff470a22533d110a42">int8</a> value) </td>
<td class="paramname"><em>outb</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void(*)(<a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port, <a class="el" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> value) </td>
<td class="paramname"><em>outw</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html">source</a></li><li class="navelem"><a class="el" href="dir_c9f89f587e7e777be723ee48a3df5844.html">includes</a></li><li class="navelem"><a class="el" href="acpi-shutdown_8h.html">acpi-shutdown.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.9.1 </li>
</ul>
</div>
</body>
</html>