wut/memory_8h_source.html
2020-03-26 16:49:18 +11:00

143 lines
14 KiB
HTML

<!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.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wut: /home/ash/Code/wut2/include/coreinit/memory.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="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" />
</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="projectalign" style="padding-left: 0.5em;">
<div id="projectname">wut
&#160;<span id="projectnumber">1.0.0-beta9</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @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&amp;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>
<!-- 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 id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5050f3de292bd66075be80c4b119f1df.html">coreinit</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">memory.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="memory_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="wut_8h.html">wut.h</a>&gt;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="group__coreinit__memory.html#ga5adafa4b1651c95c686848b6873866ec"> 15</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__coreinit__memory.html#ga5adafa4b1651c95c686848b6873866ec">OSMemoryType</a></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;{</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="group__coreinit__memory.html#gga5adafa4b1651c95c686848b6873866eca46057099b28a70b64cfcaa5949d7a79d"> 17</a></span>&#160; <a class="code" href="group__coreinit__memory.html#gga5adafa4b1651c95c686848b6873866eca46057099b28a70b64cfcaa5949d7a79d">OS_MEM1</a> = 1,</div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="group__coreinit__memory.html#gga5adafa4b1651c95c686848b6873866eca5d4494dd03c6253b9688b016d91b0bac"> 18</a></span>&#160; <a class="code" href="group__coreinit__memory.html#gga5adafa4b1651c95c686848b6873866eca5d4494dd03c6253b9688b016d91b0bac">OS_MEM2</a> = 2,</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;} <a class="code" href="group__coreinit__memory.html#ga5adafa4b1651c95c686848b6873866ec">OSMemoryType</a>;</div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;<span class="keywordtype">void</span> *</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<a class="code" href="group__coreinit__memory.html#ga5e52e7faf134760ba17a37dcff0a6788">OSBlockMove</a>(<span class="keywordtype">void</span> *dst,</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keyword">const</span> <span class="keywordtype">void</span> *src,</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; uint32_t size,</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a> flush);</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="keywordtype">void</span> *</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<a class="code" href="group__coreinit__memory.html#ga2ca4424434d82a1c79fd4fcd5493c1fa">OSBlockSet</a>(<span class="keywordtype">void</span> *dst,</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; uint8_t val,</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; uint32_t size);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="keywordtype">void</span> *</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<a class="code" href="group__coreinit__memory.html#gabafbbb8aa2105c955064038989db76ab">OSAllocFromSystem</a>(uint32_t size,</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordtype">int</span> align);</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="keywordtype">void</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<a class="code" href="group__coreinit__memory.html#ga1528594494814190475a913109146db8">OSFreeToSystem</a>(<span class="keywordtype">void</span> *ptr);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;<a class="code" href="group__coreinit__memory.html#gacf36057de0bc1f98db6a96217cc08b64">OSGetForegroundBucket</a>(uint32_t *outAddr,</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; uint32_t *outSize);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; </div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;<a class="code" href="group__coreinit__memory.html#ga381f32576f1c11cc6398be6b350a8619">OSGetForegroundBucketFreeArea</a>(uint32_t *outAddr,</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; uint32_t *outSize);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<span class="keywordtype">int</span></div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<a class="code" href="group__coreinit__memory.html#ga4ca445b0dbea2a2063b1a84bb5b0ad40">OSGetMemBound</a>(<a class="code" href="group__coreinit__memory.html#ga5adafa4b1651c95c686848b6873866ec">OSMemoryType</a> type,</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; uint32_t *outAddr,</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; uint32_t *outSize);</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;}</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; </div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="agroup__coreinit__memory_html_ga5adafa4b1651c95c686848b6873866ec"><div class="ttname"><a href="group__coreinit__memory.html#ga5adafa4b1651c95c686848b6873866ec">OSMemoryType</a></div><div class="ttdeci">OSMemoryType</div><div class="ttdef"><b>Definition:</b> <a href="memory_8h_source.html#l00015">memory.h:15</a></div></div>
<div class="ttc" id="agroup__coreinit__memory_html_ga4ca445b0dbea2a2063b1a84bb5b0ad40"><div class="ttname"><a href="group__coreinit__memory.html#ga4ca445b0dbea2a2063b1a84bb5b0ad40">OSGetMemBound</a></div><div class="ttdeci">int OSGetMemBound(OSMemoryType type, uint32_t *outAddr, uint32_t *outSize)</div><div class="ttdoc">Gets the location and size of available memory areas.</div></div>
<div class="ttc" id="agroup__coreinit__memory_html_ga2ca4424434d82a1c79fd4fcd5493c1fa"><div class="ttname"><a href="group__coreinit__memory.html#ga2ca4424434d82a1c79fd4fcd5493c1fa">OSBlockSet</a></div><div class="ttdeci">void * OSBlockSet(void *dst, uint8_t val, uint32_t size)</div><div class="ttdoc">Fills a chunk of memory with the given value, like memset.</div></div>
<div class="ttc" id="agroup__coreinit__memory_html_gacf36057de0bc1f98db6a96217cc08b64"><div class="ttname"><a href="group__coreinit__memory.html#gacf36057de0bc1f98db6a96217cc08b64">OSGetForegroundBucket</a></div><div class="ttdeci">BOOL OSGetForegroundBucket(uint32_t *outAddr, uint32_t *outSize)</div><div class="ttdoc">Gets the location and size of the foreground bucket memory area.</div></div>
<div class="ttc" id="agroup__coreinit__memory_html_gabafbbb8aa2105c955064038989db76ab"><div class="ttname"><a href="group__coreinit__memory.html#gabafbbb8aa2105c955064038989db76ab">OSAllocFromSystem</a></div><div class="ttdeci">void * OSAllocFromSystem(uint32_t size, int align)</div></div>
<div class="ttc" id="agroup__coreinit__memory_html_gga5adafa4b1651c95c686848b6873866eca5d4494dd03c6253b9688b016d91b0bac"><div class="ttname"><a href="group__coreinit__memory.html#gga5adafa4b1651c95c686848b6873866eca5d4494dd03c6253b9688b016d91b0bac">OS_MEM2</a></div><div class="ttdeci">@ OS_MEM2</div><div class="ttdef"><b>Definition:</b> <a href="memory_8h_source.html#l00018">memory.h:18</a></div></div>
<div class="ttc" id="agroup__coreinit__memory_html_ga5e52e7faf134760ba17a37dcff0a6788"><div class="ttname"><a href="group__coreinit__memory.html#ga5e52e7faf134760ba17a37dcff0a6788">OSBlockMove</a></div><div class="ttdeci">void * OSBlockMove(void *dst, const void *src, uint32_t size, BOOL flush)</div><div class="ttdoc">Moves chunks of memory around, similarly to memmove.</div></div>
<div class="ttc" id="awut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
<div class="ttc" id="agroup__coreinit__memory_html_gga5adafa4b1651c95c686848b6873866eca46057099b28a70b64cfcaa5949d7a79d"><div class="ttname"><a href="group__coreinit__memory.html#gga5adafa4b1651c95c686848b6873866eca46057099b28a70b64cfcaa5949d7a79d">OS_MEM1</a></div><div class="ttdeci">@ OS_MEM1</div><div class="ttdef"><b>Definition:</b> <a href="memory_8h_source.html#l00017">memory.h:17</a></div></div>
<div class="ttc" id="agroup__coreinit__memory_html_ga381f32576f1c11cc6398be6b350a8619"><div class="ttname"><a href="group__coreinit__memory.html#ga381f32576f1c11cc6398be6b350a8619">OSGetForegroundBucketFreeArea</a></div><div class="ttdeci">BOOL OSGetForegroundBucketFreeArea(uint32_t *outAddr, uint32_t *outSize)</div><div class="ttdoc">Gets the location and size of the application-usable portion of the foreground bucket area.</div></div>
<div class="ttc" id="awut__types_8h_html_a975dbe9e4396bf9e0064ce01827fa372"><div class="ttname"><a href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div><div class="ttdeci">int32_t BOOL</div><div class="ttdef"><b>Definition:</b> <a href="wut__types_8h_source.html#l00004">wut_types.h:4</a></div></div>
<div class="ttc" id="agroup__coreinit__memory_html_ga1528594494814190475a913109146db8"><div class="ttname"><a href="group__coreinit__memory.html#ga1528594494814190475a913109146db8">OSFreeToSystem</a></div><div class="ttdeci">void OSFreeToSystem(void *ptr)</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>