-
Notifications
You must be signed in to change notification settings - Fork 0
/
acpi-shutdown_8h_source.html
128 lines (126 loc) · 10.8 KB
/
acpi-shutdown_8h_source.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
<!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=11"/>
<meta name="generator" content="Doxygen 1.9.4"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FrostWing: source/includes/acpi-shutdown.h Source File</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 id="projectrow">
<td id="projectlogo"><img alt="Logo" src="FW.png"/></td>
<td id="projectalign">
<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.4 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(document).ready(function(){initNavTree('acpi-shutdown_8h_source.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="headertitle"><div class="title">acpi-shutdown.h</div></div>
</div><!--header-->
<div class="contents">
<a href="acpi-shutdown_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="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="preprocessor">#ifndef _ACPI_SHUTDOWN_HACK_H</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="preprocessor">#define _ACPI_SHUTDOWN_HACK_H</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include <stddef.h></span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <stdint.h></span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <<a class="code" href="basics_8h.html">basics.h</a>></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="acpi-shutdown_8h.html#a4d2db64ac29a1ed3377050096943a3ab"> 18</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="acpi-shutdown_8h.html#a4d2db64ac29a1ed3377050096943a3ab">acpi_shutdown_hack</a>(</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> uintptr_t direct_map_base,</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> <span class="keywordtype">void</span> *(*find_sdt)(<a class="code hl_typedef" href="basics_8h.html#a5a6534f59959c993a087b6bd6baa5e27">cstring</a> <a class="code hl_variable" href="acpi_8h.html#a7df4f23794127d1af7b8361d982c6ee4">signature</a>, <span class="keywordtype">size_t</span> index),</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> <a class="code hl_typedef" href="basics_8h.html#a9d29437bbd2066ff470a22533d110a42">int8</a> (*<a class="code hl_function" href="hal_8h.html#a9d8990ac46c4710dd92be3fa6880d473">inb</a>)(<a class="code hl_typedef" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port),</div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> <a class="code hl_typedef" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> (*<a class="code hl_function" href="hal_8h.html#a07569ac66ae49608eccd092f058e6208">inw</a>)(<a class="code hl_typedef" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port),</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> <span class="keywordtype">void</span> (*<a class="code hl_function" href="hal_8h.html#a01b3ad1397905fa9db2c57bbbbf9b22c">outb</a>)(<a class="code hl_typedef" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port, <a class="code hl_typedef" href="basics_8h.html#a9d29437bbd2066ff470a22533d110a42">int8</a> value),</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> <span class="keywordtype">void</span> (*<a class="code hl_function" href="hal_8h.html#accde7e618c58efdc5b465c083341846f">outw</a>)(<a class="code hl_typedef" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> port, <a class="code hl_typedef" href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a> value)</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> );</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#endif</span></div>
<div class="ttc" id="aacpi-shutdown_8h_html_a4d2db64ac29a1ed3377050096943a3ab"><div class="ttname"><a href="acpi-shutdown_8h.html#a4d2db64ac29a1ed3377050096943a3ab">acpi_shutdown_hack</a></div><div class="ttdeci">int acpi_shutdown_hack(uintptr_t direct_map_base, void *(*find_sdt)(cstring signature, size_t index), int8(*inb)(int16 port), int16(*inw)(int16 port), void(*outb)(int16 port, int8 value), void(*outw)(int16 port, int16 value))</div></div>
<div class="ttc" id="aacpi_8h_html_a7df4f23794127d1af7b8361d982c6ee4"><div class="ttname"><a href="acpi_8h.html#a7df4f23794127d1af7b8361d982c6ee4">signature</a></div><div class="ttdeci">char signature[4]</div><div class="ttdef"><b>Definition:</b> acpi.h:0</div></div>
<div class="ttc" id="abasics_8h_html"><div class="ttname"><a href="basics_8h.html">basics.h</a></div><div class="ttdoc">This is a basic header files with FrostWing specific short forms and basically a good for life header...</div></div>
<div class="ttc" id="abasics_8h_html_a5a6534f59959c993a087b6bd6baa5e27"><div class="ttname"><a href="basics_8h.html#a5a6534f59959c993a087b6bd6baa5e27">cstring</a></div><div class="ttdeci">const char * cstring</div><div class="ttdef"><b>Definition:</b> basics.h:22</div></div>
<div class="ttc" id="abasics_8h_html_a9d29437bbd2066ff470a22533d110a42"><div class="ttname"><a href="basics_8h.html#a9d29437bbd2066ff470a22533d110a42">int8</a></div><div class="ttdeci">uint8_t int8</div><div class="ttdef"><b>Definition:</b> basics.h:18</div></div>
<div class="ttc" id="abasics_8h_html_ae9794ced33376f900e9e70cfb39a419c"><div class="ttname"><a href="basics_8h.html#ae9794ced33376f900e9e70cfb39a419c">int16</a></div><div class="ttdeci">uint16_t int16</div><div class="ttdef"><b>Definition:</b> basics.h:17</div></div>
<div class="ttc" id="ahal_8h_html_a01b3ad1397905fa9db2c57bbbbf9b22c"><div class="ttname"><a href="hal_8h.html#a01b3ad1397905fa9db2c57bbbbf9b22c">outb</a></div><div class="ttdeci">void outb(int16 port, int8 value)</div><div class="ttdoc">Output a byte to the specified I/O port.</div></div>
<div class="ttc" id="ahal_8h_html_a07569ac66ae49608eccd092f058e6208"><div class="ttname"><a href="hal_8h.html#a07569ac66ae49608eccd092f058e6208">inw</a></div><div class="ttdeci">int16 inw(int16 portNumber)</div><div class="ttdoc">Read a 16-bit value from the specified I/O port.</div></div>
<div class="ttc" id="ahal_8h_html_a9d8990ac46c4710dd92be3fa6880d473"><div class="ttname"><a href="hal_8h.html#a9d8990ac46c4710dd92be3fa6880d473">inb</a></div><div class="ttdeci">int8 inb(int16 port)</div><div class="ttdoc">Read a byte from the specified I/O port.</div></div>
<div class="ttc" id="ahal_8h_html_accde7e618c58efdc5b465c083341846f"><div class="ttname"><a href="hal_8h.html#accde7e618c58efdc5b465c083341846f">outw</a></div><div class="ttdeci">void outw(int16 portNumber, int16 data)</div><div class="ttdoc">Output a 16-bit value to the specified I/O port.</div></div>
</div><!-- fragment --></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.4 </li>
</ul>
</div>
</body>
</html>