241 lines
32 KiB
HTML
241 lines
32 KiB
HTML
<!-- HTML header for doxygen 1.10.0-->
|
|
<!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.13.2"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Mario Kart 64: src/racing/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>
|
|
<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="resize.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>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen-awesome-sidebar-only-darkmode-toggle.css" rel="stylesheet" type="text/css"/>
|
|
<link href="docs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="doxygen-awesome-darkmode-toggle.js"></script>
|
|
<script type="text/javascript">
|
|
DoxygenAwesomeDarkModeToggle.init()
|
|
</script>
|
|
</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">Mario Kart 64
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.13.2 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() { codefold.init(0); });
|
|
/* @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',true);
|
|
$(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 */
|
|
$(function(){initNavTree('memory_8h_source.html',''); initResizable(true); });
|
|
/* @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">
|
|
<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">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 id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="preprocessor">#ifndef MEMORY_H</span></div>
|
|
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="preprocessor">#define MEMORY_H</span></div>
|
|
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span> </div>
|
|
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="preprocessor">#include "<a class="code" href="common__structs_8h.html">common_structs.h</a>"</span></div>
|
|
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="preprocessor">#include "<a class="code" href="course__offsets_8h.html">course_offsets.h</a>"</span></div>
|
|
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span> </div>
|
|
<div class="foldopen" id="foldopen00007" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"><a class="line" href="structMainPoolBlock.html"> 7</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structMainPoolBlock.html">MainPoolBlock</a> {</div>
|
|
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"><a class="line" href="structMainPoolBlock.html#a6d34d9c80764fecea7107447a8ed002d"> 8</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structMainPoolBlock.html">MainPoolBlock</a>* <a class="code hl_variable" href="structMainPoolBlock.html#a6d34d9c80764fecea7107447a8ed002d">prev</a>;</div>
|
|
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"><a class="line" href="structMainPoolBlock.html#add933ca250a6894176941bd47459f955"> 9</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structMainPoolBlock.html">MainPoolBlock</a>* <a class="code hl_variable" href="structMainPoolBlock.html#add933ca250a6894176941bd47459f955">next</a>;</div>
|
|
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span> </div>
|
|
<div class="foldopen" id="foldopen00012" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="structMainPoolState.html"> 12</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structMainPoolState.html">MainPoolState</a> {</div>
|
|
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"><a class="line" href="structMainPoolState.html#a2050c7f7548d60b0f8eed2bf366771d1"> 13</a></span> uintptr_t <a class="code hl_variable" href="structMainPoolState.html#a2050c7f7548d60b0f8eed2bf366771d1">freeSpace</a>;</div>
|
|
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="structMainPoolState.html#a2132c0f9da6456775ed7b06459901dfb"> 14</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structMainPoolBlock.html">MainPoolBlock</a>* <a class="code hl_variable" href="structMainPoolState.html#a2132c0f9da6456775ed7b06459901dfb">listHeadL</a>;</div>
|
|
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"><a class="line" href="structMainPoolState.html#a901e5cb7afc5abf17bc5f000ae1f1cb1"> 15</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structMainPoolBlock.html">MainPoolBlock</a>* <a class="code hl_variable" href="structMainPoolState.html#a901e5cb7afc5abf17bc5f000ae1f1cb1">listHeadR</a>;</div>
|
|
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="structMainPoolState.html#a09066d5dbc3b75de2bb9dbdbe3eed6e2"> 16</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structMainPoolState.html">MainPoolState</a>* <a class="code hl_variable" href="structMainPoolState.html#a09066d5dbc3b75de2bb9dbdbe3eed6e2">prev</a>;</div>
|
|
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
|
<div class="foldopen" id="foldopen00019" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="structUnkStruct802AF7B4.html"> 19</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structUnkStruct802AF7B4.html">UnkStruct802AF7B4</a> {</div>
|
|
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"><a class="line" href="structUnkStruct802AF7B4.html#a626a50693e9e552f096786986176873b"> 20</a></span> s32 <a class="code hl_variable" href="structUnkStruct802AF7B4.html#a626a50693e9e552f096786986176873b">unk0</a>;</div>
|
|
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"><a class="line" href="structUnkStruct802AF7B4.html#abd5aeb22d4e0349460b0c3bc90800f49"> 21</a></span> s32 <a class="code hl_variable" href="structUnkStruct802AF7B4.html#abd5aeb22d4e0349460b0c3bc90800f49">unk4</a>;</div>
|
|
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
|
|
<div class="foldopen" id="foldopen00024" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="structUnkStruct__802B8CD4.html"> 24</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structUnkStruct__802B8CD4.html">UnkStruct_802B8CD4</a> {</div>
|
|
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="structUnkStruct__802B8CD4.html#ae20a2c6be057cc9262405e889e615384"> 25</a></span> s16 <a class="code hl_variable" href="structUnkStruct__802B8CD4.html#ae20a2c6be057cc9262405e889e615384">unk0</a>;</div>
|
|
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="structUnkStruct__802B8CD4.html#a403b2e949e8dcfff9a1d19b49ab8e33c"> 26</a></span> s16 <a class="code hl_variable" href="structUnkStruct__802B8CD4.html#a403b2e949e8dcfff9a1d19b49ab8e33c">unk2</a>;</div>
|
|
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="structUnkStruct__802B8CD4.html#a976d0738bf3f534b9bec0506b13a896a"> 27</a></span> s32 <a class="code hl_variable" href="structUnkStruct__802B8CD4.html#a976d0738bf3f534b9bec0506b13a896a">unk4</a>;</div>
|
|
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="structUnkStruct__802B8CD4.html#a5bd81d83630e9c3cdc727966a2adcba6"> 28</a></span> s32 <a class="code hl_variable" href="structUnkStruct__802B8CD4.html#a5bd81d83630e9c3cdc727966a2adcba6">unk8</a>;</div>
|
|
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="structUnkStruct__802B8CD4.html#a3aea86892885452018c22311c58b671b"> 29</a></span> s32 <a class="code hl_variable" href="structUnkStruct__802B8CD4.html#a3aea86892885452018c22311c58b671b">fill</a>;</div>
|
|
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
|
|
<div class="foldopen" id="foldopen00032" data-start="{" data-end="};">
|
|
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="structAllocOnlyPool.html"> 32</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structAllocOnlyPool.html">AllocOnlyPool</a> {</div>
|
|
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="structAllocOnlyPool.html#a95718024cfe44d46414c21223cc6c2b8"> 33</a></span> s32 <a class="code hl_variable" href="structAllocOnlyPool.html#a95718024cfe44d46414c21223cc6c2b8">totalSpace</a>;</div>
|
|
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="structAllocOnlyPool.html#a35f92b08706806346c9579f39bd2b820"> 34</a></span> s32 <a class="code hl_variable" href="structAllocOnlyPool.html#a35f92b08706806346c9579f39bd2b820">usedSpace</a>;</div>
|
|
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="structAllocOnlyPool.html#a2414eda610456cf4b49677904e9fd452"> 35</a></span> u8* <a class="code hl_variable" href="structAllocOnlyPool.html#a2414eda610456cf4b49677904e9fd452">startPtr</a>;</div>
|
|
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structAllocOnlyPool.html#ad7c514cf095a5604a5cd5231cfb6c290"> 36</a></span> u8* <a class="code hl_variable" href="structAllocOnlyPool.html#ad7c514cf095a5604a5cd5231cfb6c290">freePtr</a>;</div>
|
|
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span>};</div>
|
|
</div>
|
|
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
|
|
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="memory_8h.html#a88d4b28279c8474e3bca4cd73dc1e33f"> 39</a></span><span class="preprocessor">#define MEMORY_POOL_LEFT 0</span></div>
|
|
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"><a class="line" href="memory_8h.html#a52dd2dd53601da10831dd2f7f675c5f2"> 40</a></span><span class="preprocessor">#define MEMORY_POOL_RIGHT 1</span></div>
|
|
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
|
|
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="memory_8h.html#a9a9b12bc2d88d2229242fc7846056f90"> 42</a></span><span class="preprocessor">#define ALIGN4(val) (((val) + 0x3) & ~0x3)</span></div>
|
|
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
|
|
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span>u8* <a class="code hl_function" href="memory_8h.html#a3617f7116e3cc000b7ebf38ad3bae48f">load_lakitu_tlut_x64</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>** textureList, <span class="keywordtype">size_t</span> length);</div>
|
|
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="keywordtype">void</span>* <a class="code hl_function" href="memory_8h.html#a965d7e25d594cd29e02ed8b9a482c65d">get_next_available_memory_addr</a>(uintptr_t);</div>
|
|
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="keywordtype">void</span> <a class="code hl_function" href="memory_8h.html#a21fe0071920d58ced611cf984996eab8">initialize_memory_pool</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="keywordtype">void</span>* <a class="code hl_function" href="memory_8h.html#acf31e85b295d4508d571d5aff8c02c5a">allocate_memory</a>(<span class="keywordtype">size_t</span>);</div>
|
|
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="keywordtype">void</span>* <a class="code hl_function" href="memory_8h.html#a62bd0e025f222c732a5fc4cfd737f37a">load_data</a>(uintptr_t, uintptr_t);</div>
|
|
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="keywordtype">void</span> <a class="code hl_function" href="memory_8h.html#ad108574c2862d6903a3da3c59ef4b06e">func_802A7D54</a>(s32, s32);</div>
|
|
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
|
|
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="memory_8h.html#a2e502f11afb3491f690d4539cb2e1a22"> 51</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="memory_8h.html#a2e502f11afb3491f690d4539cb2e1a22">func_802A86A8</a>(<a class="code hl_struct" href="structCourseVtx.html">CourseVtx</a>* data, Vtx* vtx, <span class="keywordtype">size_t</span> arg1);</div>
|
|
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div>
|
|
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="keywordtype">void</span> <a class="code hl_function" href="memory_8h.html#a1f4d35518a5ec5fee6a2cbf3c1d0f794">main_pool_init</a>(uintptr_t, uintptr_t);</div>
|
|
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="keywordtype">void</span>* <a class="code hl_function" href="memory_8h.html#a62ba44aa35a5ffa90e10259c60e9a229">main_pool_alloc</a>(uintptr_t, uintptr_t);</div>
|
|
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span>uintptr_t <a class="code hl_function" href="memory_8h.html#aae653f94864d5c6a1b4cd5f3d9ededc3">main_pool_free</a>(<span class="keywordtype">void</span>*);</div>
|
|
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="keywordtype">void</span>* <a class="code hl_function" href="memory_8h.html#aa9e0c3b8dc07656f8777f7a3fdd5914b">main_pool_realloc</a>(<span class="keywordtype">void</span>*, uintptr_t);</div>
|
|
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span>uintptr_t <a class="code hl_function" href="memory_8h.html#afe57de3903e2ed3acb35c29651445c5b">main_pool_available</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span>uintptr_t <a class="code hl_function" href="memory_8h.html#a65254a5e16776e338be9441acb49e794">main_pool_push_state</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span>uintptr_t <a class="code hl_function" href="memory_8h.html#a3a0d304f31905bacca06c397e308c047">main_pool_pop_state</a>(<span class="keywordtype">void</span>);</div>
|
|
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="keywordtype">void</span>* <a class="code hl_function" href="memory_8h.html#a35b6e161358ef80b64f67bb351a2f4f2">func_802A80B0</a>(u8*, u8*, u8*);</div>
|
|
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span>uintptr_t <a class="code hl_function" href="memory_8h.html#a3291d400b4e265559e894e400cdea4ae">MIO0_0F</a>(u8*, uintptr_t, uintptr_t);</div>
|
|
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="keywordtype">void</span> <a class="code hl_function" href="memory_8h.html#a3b705c4e7a865f5bc8157f7005df1884">load_track</a>(s32);</div>
|
|
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
|
|
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="keyword">extern</span> u8 <a class="code hl_variable" href="memory_8h.html#a550940ee0f9af611182681325dbc380f">_other_texturesSegmentRomStart</a>[];</div>
|
|
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
|
|
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="preprocessor">#endif </span><span class="comment">// MEMORY_H</span></div>
|
|
<div class="ttc" id="acommon__structs_8h_html"><div class="ttname"><a href="common__structs_8h.html">common_structs.h</a></div></div>
|
|
<div class="ttc" id="acourse__offsets_8h_html"><div class="ttname"><a href="course__offsets_8h.html">course_offsets.h</a></div></div>
|
|
<div class="ttc" id="amemory_8h_html_a1f4d35518a5ec5fee6a2cbf3c1d0f794"><div class="ttname"><a href="memory_8h.html#a1f4d35518a5ec5fee6a2cbf3c1d0f794">main_pool_init</a></div><div class="ttdeci">void main_pool_init(uintptr_t, uintptr_t)</div><div class="ttdef"><b>Definition</b> memory.c:151</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a21fe0071920d58ced611cf984996eab8"><div class="ttname"><a href="memory_8h.html#a21fe0071920d58ced611cf984996eab8">initialize_memory_pool</a></div><div class="ttdeci">void initialize_memory_pool(void)</div><div class="ttdoc">Sets the starting location for allocating memory and calculates pool size.</div><div class="ttdef"><b>Definition</b> memory.c:90</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a2e502f11afb3491f690d4539cb2e1a22"><div class="ttname"><a href="memory_8h.html#a2e502f11afb3491f690d4539cb2e1a22">func_802A86A8</a></div><div class="ttdeci">void func_802A86A8(CourseVtx *data, Vtx *vtx, size_t arg1)</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a3291d400b4e265559e894e400cdea4ae"><div class="ttname"><a href="memory_8h.html#a3291d400b4e265559e894e400cdea4ae">MIO0_0F</a></div><div class="ttdeci">uintptr_t MIO0_0F(u8 *, uintptr_t, uintptr_t)</div><div class="ttdef"><b>Definition</b> memory.c:276</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a35b6e161358ef80b64f67bb351a2f4f2"><div class="ttname"><a href="memory_8h.html#a35b6e161358ef80b64f67bb351a2f4f2">func_802A80B0</a></div><div class="ttdeci">void * func_802A80B0(u8 *, u8 *, u8 *)</div><div class="ttdef"><b>Definition</b> memory.c:262</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a3617f7116e3cc000b7ebf38ad3bae48f"><div class="ttname"><a href="memory_8h.html#a3617f7116e3cc000b7ebf38ad3bae48f">load_lakitu_tlut_x64</a></div><div class="ttdeci">u8 * load_lakitu_tlut_x64(const char **textureList, size_t length)</div><div class="ttdef"><b>Definition</b> memory.c:304</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a3a0d304f31905bacca06c397e308c047"><div class="ttname"><a href="memory_8h.html#a3a0d304f31905bacca06c397e308c047">main_pool_pop_state</a></div><div class="ttdeci">uintptr_t main_pool_pop_state(void)</div><div class="ttdef"><b>Definition</b> memory.c:254</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a3b705c4e7a865f5bc8157f7005df1884"><div class="ttname"><a href="memory_8h.html#a3b705c4e7a865f5bc8157f7005df1884">load_track</a></div><div class="ttdeci">void load_track(s32)</div><div class="ttdoc">Loads & DMAs track data. Vtx, textures, displaylists, etc.</div><div class="ttdef"><b>Definition</b> memory.c:328</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a550940ee0f9af611182681325dbc380f"><div class="ttname"><a href="memory_8h.html#a550940ee0f9af611182681325dbc380f">_other_texturesSegmentRomStart</a></div><div class="ttdeci">u8 _other_texturesSegmentRomStart[]</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a62ba44aa35a5ffa90e10259c60e9a229"><div class="ttname"><a href="memory_8h.html#a62ba44aa35a5ffa90e10259c60e9a229">main_pool_alloc</a></div><div class="ttdeci">void * main_pool_alloc(uintptr_t, uintptr_t)</div><div class="ttdef"><b>Definition</b> memory.c:170</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a62bd0e025f222c732a5fc4cfd737f37a"><div class="ttname"><a href="memory_8h.html#a62bd0e025f222c732a5fc4cfd737f37a">load_data</a></div><div class="ttdeci">void * load_data(uintptr_t, uintptr_t)</div><div class="ttdoc">Allocate and DMA.</div><div class="ttdef"><b>Definition</b> memory.c:140</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a65254a5e16776e338be9441acb49e794"><div class="ttname"><a href="memory_8h.html#a65254a5e16776e338be9441acb49e794">main_pool_push_state</a></div><div class="ttdeci">uintptr_t main_pool_push_state(void)</div><div class="ttdef"><b>Definition</b> memory.c:236</div></div>
|
|
<div class="ttc" id="amemory_8h_html_a965d7e25d594cd29e02ed8b9a482c65d"><div class="ttname"><a href="memory_8h.html#a965d7e25d594cd29e02ed8b9a482c65d">get_next_available_memory_addr</a></div><div class="ttdeci">void * get_next_available_memory_addr(uintptr_t)</div><div class="ttdoc">Returns the address of the next available memory location and updates the memory pointer to reference...</div><div class="ttdef"><b>Definition</b> memory.c:53</div></div>
|
|
<div class="ttc" id="amemory_8h_html_aa9e0c3b8dc07656f8777f7a3fdd5914b"><div class="ttname"><a href="memory_8h.html#aa9e0c3b8dc07656f8777f7a3fdd5914b">main_pool_realloc</a></div><div class="ttdeci">void * main_pool_realloc(void *, uintptr_t)</div><div class="ttdef"><b>Definition</b> memory.c:221</div></div>
|
|
<div class="ttc" id="amemory_8h_html_aae653f94864d5c6a1b4cd5f3d9ededc3"><div class="ttname"><a href="memory_8h.html#aae653f94864d5c6a1b4cd5f3d9ededc3">main_pool_free</a></div><div class="ttdeci">uintptr_t main_pool_free(void *)</div><div class="ttdef"><b>Definition</b> memory.c:199</div></div>
|
|
<div class="ttc" id="amemory_8h_html_acf31e85b295d4508d571d5aff8c02c5a"><div class="ttname"><a href="memory_8h.html#acf31e85b295d4508d571d5aff8c02c5a">allocate_memory</a></div><div class="ttdeci">void * allocate_memory(size_t)</div><div class="ttdoc">Allocates memory and adjusts gFreeMemorySize.</div><div class="ttdef"><b>Definition</b> memory.c:110</div></div>
|
|
<div class="ttc" id="amemory_8h_html_ad108574c2862d6903a3da3c59ef4b06e"><div class="ttname"><a href="memory_8h.html#ad108574c2862d6903a3da3c59ef4b06e">func_802A7D54</a></div><div class="ttdeci">void func_802A7D54(s32, s32)</div><div class="ttdef"><b>Definition</b> memory.c:132</div></div>
|
|
<div class="ttc" id="amemory_8h_html_afe57de3903e2ed3acb35c29651445c5b"><div class="ttname"><a href="memory_8h.html#afe57de3903e2ed3acb35c29651445c5b">main_pool_available</a></div><div class="ttdeci">uintptr_t main_pool_available(void)</div><div class="ttdef"><b>Definition</b> memory.c:232</div></div>
|
|
<div class="ttc" id="astructAllocOnlyPool_html"><div class="ttname"><a href="structAllocOnlyPool.html">AllocOnlyPool</a></div><div class="ttdef"><b>Definition</b> memory.h:32</div></div>
|
|
<div class="ttc" id="astructAllocOnlyPool_html_a2414eda610456cf4b49677904e9fd452"><div class="ttname"><a href="structAllocOnlyPool.html#a2414eda610456cf4b49677904e9fd452">AllocOnlyPool::startPtr</a></div><div class="ttdeci">u8 * startPtr</div><div class="ttdef"><b>Definition</b> memory.h:35</div></div>
|
|
<div class="ttc" id="astructAllocOnlyPool_html_a35f92b08706806346c9579f39bd2b820"><div class="ttname"><a href="structAllocOnlyPool.html#a35f92b08706806346c9579f39bd2b820">AllocOnlyPool::usedSpace</a></div><div class="ttdeci">s32 usedSpace</div><div class="ttdef"><b>Definition</b> memory.h:34</div></div>
|
|
<div class="ttc" id="astructAllocOnlyPool_html_a95718024cfe44d46414c21223cc6c2b8"><div class="ttname"><a href="structAllocOnlyPool.html#a95718024cfe44d46414c21223cc6c2b8">AllocOnlyPool::totalSpace</a></div><div class="ttdeci">s32 totalSpace</div><div class="ttdef"><b>Definition</b> memory.h:33</div></div>
|
|
<div class="ttc" id="astructAllocOnlyPool_html_ad7c514cf095a5604a5cd5231cfb6c290"><div class="ttname"><a href="structAllocOnlyPool.html#ad7c514cf095a5604a5cd5231cfb6c290">AllocOnlyPool::freePtr</a></div><div class="ttdeci">u8 * freePtr</div><div class="ttdef"><b>Definition</b> memory.h:36</div></div>
|
|
<div class="ttc" id="astructCourseVtx_html"><div class="ttname"><a href="structCourseVtx.html">CourseVtx</a></div><div class="ttdef"><b>Definition</b> common_structs.h:193</div></div>
|
|
<div class="ttc" id="astructMainPoolBlock_html"><div class="ttname"><a href="structMainPoolBlock.html">MainPoolBlock</a></div><div class="ttdef"><b>Definition</b> memory.h:7</div></div>
|
|
<div class="ttc" id="astructMainPoolBlock_html_a6d34d9c80764fecea7107447a8ed002d"><div class="ttname"><a href="structMainPoolBlock.html#a6d34d9c80764fecea7107447a8ed002d">MainPoolBlock::prev</a></div><div class="ttdeci">struct MainPoolBlock * prev</div><div class="ttdef"><b>Definition</b> memory.h:8</div></div>
|
|
<div class="ttc" id="astructMainPoolBlock_html_add933ca250a6894176941bd47459f955"><div class="ttname"><a href="structMainPoolBlock.html#add933ca250a6894176941bd47459f955">MainPoolBlock::next</a></div><div class="ttdeci">struct MainPoolBlock * next</div><div class="ttdef"><b>Definition</b> memory.h:9</div></div>
|
|
<div class="ttc" id="astructMainPoolState_html"><div class="ttname"><a href="structMainPoolState.html">MainPoolState</a></div><div class="ttdef"><b>Definition</b> memory.h:12</div></div>
|
|
<div class="ttc" id="astructMainPoolState_html_a09066d5dbc3b75de2bb9dbdbe3eed6e2"><div class="ttname"><a href="structMainPoolState.html#a09066d5dbc3b75de2bb9dbdbe3eed6e2">MainPoolState::prev</a></div><div class="ttdeci">struct MainPoolState * prev</div><div class="ttdef"><b>Definition</b> memory.h:16</div></div>
|
|
<div class="ttc" id="astructMainPoolState_html_a2050c7f7548d60b0f8eed2bf366771d1"><div class="ttname"><a href="structMainPoolState.html#a2050c7f7548d60b0f8eed2bf366771d1">MainPoolState::freeSpace</a></div><div class="ttdeci">uintptr_t freeSpace</div><div class="ttdef"><b>Definition</b> memory.h:13</div></div>
|
|
<div class="ttc" id="astructMainPoolState_html_a2132c0f9da6456775ed7b06459901dfb"><div class="ttname"><a href="structMainPoolState.html#a2132c0f9da6456775ed7b06459901dfb">MainPoolState::listHeadL</a></div><div class="ttdeci">struct MainPoolBlock * listHeadL</div><div class="ttdef"><b>Definition</b> memory.h:14</div></div>
|
|
<div class="ttc" id="astructMainPoolState_html_a901e5cb7afc5abf17bc5f000ae1f1cb1"><div class="ttname"><a href="structMainPoolState.html#a901e5cb7afc5abf17bc5f000ae1f1cb1">MainPoolState::listHeadR</a></div><div class="ttdeci">struct MainPoolBlock * listHeadR</div><div class="ttdef"><b>Definition</b> memory.h:15</div></div>
|
|
<div class="ttc" id="astructUnkStruct802AF7B4_html"><div class="ttname"><a href="structUnkStruct802AF7B4.html">UnkStruct802AF7B4</a></div><div class="ttdef"><b>Definition</b> memory.h:19</div></div>
|
|
<div class="ttc" id="astructUnkStruct802AF7B4_html_a626a50693e9e552f096786986176873b"><div class="ttname"><a href="structUnkStruct802AF7B4.html#a626a50693e9e552f096786986176873b">UnkStruct802AF7B4::unk0</a></div><div class="ttdeci">s32 unk0</div><div class="ttdef"><b>Definition</b> memory.h:20</div></div>
|
|
<div class="ttc" id="astructUnkStruct802AF7B4_html_abd5aeb22d4e0349460b0c3bc90800f49"><div class="ttname"><a href="structUnkStruct802AF7B4.html#abd5aeb22d4e0349460b0c3bc90800f49">UnkStruct802AF7B4::unk4</a></div><div class="ttdeci">s32 unk4</div><div class="ttdef"><b>Definition</b> memory.h:21</div></div>
|
|
<div class="ttc" id="astructUnkStruct__802B8CD4_html"><div class="ttname"><a href="structUnkStruct__802B8CD4.html">UnkStruct_802B8CD4</a></div><div class="ttdef"><b>Definition</b> memory.h:24</div></div>
|
|
<div class="ttc" id="astructUnkStruct__802B8CD4_html_a3aea86892885452018c22311c58b671b"><div class="ttname"><a href="structUnkStruct__802B8CD4.html#a3aea86892885452018c22311c58b671b">UnkStruct_802B8CD4::fill</a></div><div class="ttdeci">s32 fill</div><div class="ttdef"><b>Definition</b> memory.h:29</div></div>
|
|
<div class="ttc" id="astructUnkStruct__802B8CD4_html_a403b2e949e8dcfff9a1d19b49ab8e33c"><div class="ttname"><a href="structUnkStruct__802B8CD4.html#a403b2e949e8dcfff9a1d19b49ab8e33c">UnkStruct_802B8CD4::unk2</a></div><div class="ttdeci">s16 unk2</div><div class="ttdef"><b>Definition</b> memory.h:26</div></div>
|
|
<div class="ttc" id="astructUnkStruct__802B8CD4_html_a5bd81d83630e9c3cdc727966a2adcba6"><div class="ttname"><a href="structUnkStruct__802B8CD4.html#a5bd81d83630e9c3cdc727966a2adcba6">UnkStruct_802B8CD4::unk8</a></div><div class="ttdeci">s32 unk8</div><div class="ttdef"><b>Definition</b> memory.h:28</div></div>
|
|
<div class="ttc" id="astructUnkStruct__802B8CD4_html_a976d0738bf3f534b9bec0506b13a896a"><div class="ttname"><a href="structUnkStruct__802B8CD4.html#a976d0738bf3f534b9bec0506b13a896a">UnkStruct_802B8CD4::unk4</a></div><div class="ttdeci">s32 unk4</div><div class="ttdef"><b>Definition</b> memory.h:27</div></div>
|
|
<div class="ttc" id="astructUnkStruct__802B8CD4_html_ae20a2c6be057cc9262405e889e615384"><div class="ttname"><a href="structUnkStruct__802B8CD4.html#ae20a2c6be057cc9262405e889e615384">UnkStruct_802B8CD4::unk0</a></div><div class="ttdeci">s16 unk0</div><div class="ttdef"><b>Definition</b> memory.h:25</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_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_b624d86e5671d82a613a73eb9566e66f.html">racing</a></li><li class="navelem"><a class="el" href="memory_8h.html">memory.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.13.2 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|