Newer
Older
UbixOS / doc / html / hd_8c.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.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS V2: C:/Dev/git/UbixOS/sys/pci/hd.c 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>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</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">UbixOS V2
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<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>
</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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('hd_8c.html','');});
/* @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">hd.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="hd_8h_source.html">pci/hd.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="io_8h_source.html">sys/io.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="include_2sys_2device_8h_source.html">sys/device.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="kmalloc_8h_source.html">lib/kmalloc.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="kprintf_8h_source.html">lib/kprintf.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="devfs_8h_source.html">devfs/devfs.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="string_8h_source.html">string.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="gpt_8h_source.html">fs/common/gpt.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for hd.c:</div>
<div class="dyncontent">
<div class="center"><img src="hd_8c__incl.png" border="0" usemap="#C_1_2Dev_2git_2UbixOS_2sys_2pci_2hd_8c" alt=""/></div>
</div>
</div>
<p><a href="hd_8c_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:afe85956506fe7d2c9df06fc1628a7bd1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#afe85956506fe7d2c9df06fc1628a7bd1">_initHardDisk</a> (int hdD)</td></tr>
<tr class="separator:afe85956506fe7d2c9df06fc1628a7bd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab01b187dc277e089d0161315437fde41"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#ab01b187dc277e089d0161315437fde41">hdInit</a> (struct <a class="el" href="structdevice__node.html">device_node</a> *dev)</td></tr>
<tr class="separator:ab01b187dc277e089d0161315437fde41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace9b924d48cc450c255d1d48fcbc13a5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#ace9b924d48cc450c255d1d48fcbc13a5">hdIoctl</a> ()</td></tr>
<tr class="separator:ace9b924d48cc450c255d1d48fcbc13a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac285c40dfad18aac6ae2eaa77b4a06c8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#ac285c40dfad18aac6ae2eaa77b4a06c8">hdRead</a> (struct <a class="el" href="structdriveInfo.html">driveInfo</a> *hdd, void *baseAddr, <a class="el" href="objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> startSector, <a class="el" href="objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> sectorCount)</td></tr>
<tr class="separator:ac285c40dfad18aac6ae2eaa77b4a06c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e64e509439c31ba2acfe68a7aefcc10"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#a8e64e509439c31ba2acfe68a7aefcc10">hdReset</a> ()</td></tr>
<tr class="separator:a8e64e509439c31ba2acfe68a7aefcc10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a525245216f426465a3c0f130bd0efd19"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#a525245216f426465a3c0f130bd0efd19">hdStandby</a> ()</td></tr>
<tr class="separator:a525245216f426465a3c0f130bd0efd19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9535712ecc532571658cc6861570dde5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#a9535712ecc532571658cc6861570dde5">hdStart</a> ()</td></tr>
<tr class="separator:a9535712ecc532571658cc6861570dde5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a00465121a584acd10c1ca1b46680a1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#a7a00465121a584acd10c1ca1b46680a1">hdStop</a> ()</td></tr>
<tr class="separator:a7a00465121a584acd10c1ca1b46680a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57d5cca1b1006db82038567edf6e6ac1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#a57d5cca1b1006db82038567edf6e6ac1">hdWrite</a> (struct <a class="el" href="structdriveInfo.html">driveInfo</a> *hdd, void *baseAddr, <a class="el" href="objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> startSector, <a class="el" href="objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> sectorCount)</td></tr>
<tr class="separator:a57d5cca1b1006db82038567edf6e6ac1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6ffe735243161c69ce0930999e02f88"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="hd_8c.html#aa6ffe735243161c69ce0930999e02f88">initHardDisk</a> ()</td></tr>
<tr class="separator:aa6ffe735243161c69ce0930999e02f88"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="afe85956506fe7d2c9df06fc1628a7bd1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe85956506fe7d2c9df06fc1628a7bd1">&#9670;&nbsp;</a></span>_initHardDisk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int _initHardDisk </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hdD</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00047">47</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

<p class="reference">References <a class="el" href="pci_8c_source.html#l00037">name</a>.</p>

<p class="reference">Referenced by <a class="el" href="hd_8c_source.html#l00042">initHardDisk()</a>.</p>

</div>
</div>
<a id="ab01b187dc277e089d0161315437fde41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab01b187dc277e089d0161315437fde41">&#9670;&nbsp;</a></span>hdInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hdInit </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structdevice__node.html">device_node</a> *&#160;</td>
          <td class="paramname"><em>dev</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00221">221</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

<p class="reference">References <a class="el" href="hd_8h_source.html#l00065">ATA_COMMAND</a>, <a class="el" href="hd_8h_source.html#l00050">ATA_DATA</a>, <a class="el" href="hd_8h_source.html#l00061">ATA_DRIVE</a>, <a class="el" href="hd_8h_source.html#l00112">ATA_IDENTIFY</a>, <a class="el" href="hd_8h_source.html#l00166">driveInfo::ata_identify</a>, <a class="el" href="hd_8h_source.html#l00046">ATA_IDENTIFY_COMMAND_SET_SUPPORTED1_48BIT_ENABLE</a>, <a class="el" href="hd_8h_source.html#l00047">ATA_IDENTIFY_SECTOR_LARGER_THEN_512_ENABLE</a>, <a class="el" href="hd_8h_source.html#l00095">ATA_S_BUSY</a>, <a class="el" href="hd_8h_source.html#l00348">ata_identify_data::command_set_enabled1</a>, <a class="el" href="include_2sys_2device_8h_source.html#l00037">device_node::devInfo</a>, <a class="el" href="hd_8h_source.html#l00043">hdCmd</a>, <a class="el" href="hd_8h_source.html#l00171">driveInfo::hdDev</a>, <a class="el" href="hd_8h_source.html#l00170">driveInfo::hdEnable</a>, <a class="el" href="hd_8h_source.html#l00041">hdHead</a>, <a class="el" href="hd_8h_source.html#l00174">driveInfo::hdMask</a>, <a class="el" href="hd_8h_source.html#l00175">driveInfo::hdMulti</a>, <a class="el" href="hd_8h_source.html#l00176">driveInfo::hdPort</a>, <a class="el" href="hd_8h_source.html#l00037">hdSecCount</a>, <a class="el" href="hd_8h_source.html#l00173">driveInfo::hdShift</a>, <a class="el" href="hd_8h_source.html#l00177">driveInfo::hdSize</a>, <a class="el" href="include_2sys_2device_8h_source.html#l00051">device_interface::info</a>, <a class="el" href="include_2sys_2device_8h_source.html#l00048">device_interface::initialized</a>, <a class="el" href="io_8c_source.html#l00038">inportByte()</a>, <a class="el" href="io_8c_source.html#l00055">inportWord()</a>, <a class="el" href="kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="hd_8h_source.html#l00167">driveInfo::lba_high</a>, <a class="el" href="hd_8h_source.html#l00168">driveInfo::lba_low</a>, <a class="el" href="hd_8h_source.html#l00361">ata_identify_data::max_48bit_lba</a>, <a class="el" href="io_8c_source.html#l00072">outportByte()</a>, <a class="el" href="hd_8h_source.html#l00364">ata_identify_data::physical_logical_sector_info</a>, <a class="el" href="hd_8h_source.html#l00169">driveInfo::sector_size</a>, <a class="el" href="include_2sys_2device_8h_source.html#l00049">device_interface::size</a>, <a class="el" href="hd_8h_source.html#l00326">ata_identify_data::total_num_sectors</a>, and <a class="el" href="hd_8h_source.html#l00369">ata_identify_data::words_per_logical_sector</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hd_8c_ab01b187dc277e089d0161315437fde41_cgraph.png" border="0" usemap="#hd_8c_ab01b187dc277e089d0161315437fde41_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="ace9b924d48cc450c255d1d48fcbc13a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace9b924d48cc450c255d1d48fcbc13a5">&#9670;&nbsp;</a></span>hdIoctl()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hdIoctl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00211">211</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

</div>
</div>
<a id="ac285c40dfad18aac6ae2eaa77b4a06c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac285c40dfad18aac6ae2eaa77b4a06c8">&#9670;&nbsp;</a></span>hdRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hdRead </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structdriveInfo.html">driveInfo</a> *&#160;</td>
          <td class="paramname"><em>hdd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>baseAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a>&#160;</td>
          <td class="paramname"><em>startSector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a>&#160;</td>
          <td class="paramname"><em>sectorCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00423">423</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

<p class="reference">References <a class="el" href="hd_8h_source.html#l00178">driveInfo::hdCalc</a>, <a class="el" href="hd_8h_source.html#l00043">hdCmd</a>, <a class="el" href="hd_8h_source.html#l00040">hdCylHi</a>, <a class="el" href="hd_8h_source.html#l00039">hdCylLow</a>, <a class="el" href="hd_8h_source.html#l00035">hdData</a>, <a class="el" href="hd_8h_source.html#l00171">driveInfo::hdDev</a>, <a class="el" href="hd_8h_source.html#l00170">driveInfo::hdEnable</a>, <a class="el" href="hd_8h_source.html#l00041">hdHead</a>, <a class="el" href="hd_8h_source.html#l00175">driveInfo::hdMulti</a>, <a class="el" href="hd_8h_source.html#l00176">driveInfo::hdPort</a>, <a class="el" href="hd_8h_source.html#l00037">hdSecCount</a>, <a class="el" href="hd_8h_source.html#l00038">hdSecNum</a>, <a class="el" href="hd_8h_source.html#l00173">driveInfo::hdShift</a>, <a class="el" href="hd_8h_source.html#l00042">hdStat</a>, <a class="el" href="io_8c_source.html#l00038">inportByte()</a>, <a class="el" href="io_8c_source.html#l00055">inportWord()</a>, <a class="el" href="kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="hd_8h_source.html#l00181">driveInfo::lba_start</a>, <a class="el" href="io_8c_source.html#l00072">outportByte()</a>, and <a class="el" href="hd_8h_source.html#l00179">driveInfo::parOffset</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hd_8c_ac285c40dfad18aac6ae2eaa77b4a06c8_cgraph.png" border="0" usemap="#hd_8c_ac285c40dfad18aac6ae2eaa77b4a06c8_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="a8e64e509439c31ba2acfe68a7aefcc10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8e64e509439c31ba2acfe68a7aefcc10">&#9670;&nbsp;</a></span>hdReset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hdReset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00216">216</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

</div>
</div>
<a id="a525245216f426465a3c0f130bd0efd19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a525245216f426465a3c0f130bd0efd19">&#9670;&nbsp;</a></span>hdStandby()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hdStandby </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00196">196</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

</div>
</div>
<a id="a9535712ecc532571658cc6861570dde5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9535712ecc532571658cc6861570dde5">&#9670;&nbsp;</a></span>hdStart()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hdStart </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00201">201</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

</div>
</div>
<a id="a7a00465121a584acd10c1ca1b46680a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a00465121a584acd10c1ca1b46680a1">&#9670;&nbsp;</a></span>hdStop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hdStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00206">206</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

</div>
</div>
<a id="a57d5cca1b1006db82038567edf6e6ac1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57d5cca1b1006db82038567edf6e6ac1">&#9670;&nbsp;</a></span>hdWrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int hdWrite </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="structdriveInfo.html">driveInfo</a> *&#160;</td>
          <td class="paramname"><em>hdd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>baseAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a>&#160;</td>
          <td class="paramname"><em>startSector</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a>&#160;</td>
          <td class="paramname"><em>sectorCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00356">356</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

<p class="reference">References <a class="el" href="hd_8h_source.html#l00178">driveInfo::hdCalc</a>, <a class="el" href="hd_8h_source.html#l00043">hdCmd</a>, <a class="el" href="hd_8h_source.html#l00040">hdCylHi</a>, <a class="el" href="hd_8h_source.html#l00039">hdCylLow</a>, <a class="el" href="hd_8h_source.html#l00035">hdData</a>, <a class="el" href="hd_8h_source.html#l00171">driveInfo::hdDev</a>, <a class="el" href="hd_8h_source.html#l00170">driveInfo::hdEnable</a>, <a class="el" href="hd_8h_source.html#l00041">hdHead</a>, <a class="el" href="hd_8h_source.html#l00175">driveInfo::hdMulti</a>, <a class="el" href="hd_8h_source.html#l00176">driveInfo::hdPort</a>, <a class="el" href="hd_8h_source.html#l00037">hdSecCount</a>, <a class="el" href="hd_8h_source.html#l00038">hdSecNum</a>, <a class="el" href="hd_8h_source.html#l00173">driveInfo::hdShift</a>, <a class="el" href="hd_8h_source.html#l00042">hdStat</a>, <a class="el" href="io_8c_source.html#l00038">inportByte()</a>, <a class="el" href="kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="hd_8h_source.html#l00181">driveInfo::lba_start</a>, <a class="el" href="io_8c_source.html#l00072">outportByte()</a>, <a class="el" href="io_8c_source.html#l00103">outportWord()</a>, and <a class="el" href="hd_8h_source.html#l00179">driveInfo::parOffset</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hd_8c_a57d5cca1b1006db82038567edf6e6ac1_cgraph.png" border="0" usemap="#hd_8c_a57d5cca1b1006db82038567edf6e6ac1_cgraph" alt=""/></div>
</div>

</div>
</div>
<a id="aa6ffe735243161c69ce0930999e02f88"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6ffe735243161c69ce0930999e02f88">&#9670;&nbsp;</a></span>initHardDisk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int initHardDisk </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="hd_8c_source.html#l00042">42</a> of file <a class="el" href="hd_8c_source.html">hd.c</a>.</p>

<p class="reference">References <a class="el" href="hd_8c_source.html#l00047">_initHardDisk()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="hd_8c_aa6ffe735243161c69ce0930999e02f88_cgraph.png" border="0" usemap="#hd_8c_aa6ffe735243161c69ce0930999e02f88_cgraph" alt=""/></div>
</div>

</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_e6bb53534ac0e427887cf7a94c0c004e.html">C:</a></li><li class="navelem"><a class="el" href="dir_d99d5d4662bf24521eef49da6a8cd34d.html">Dev</a></li><li class="navelem"><a class="el" href="dir_474a4b306371cf7e7f6fa12cb0b77df6.html">git</a></li><li class="navelem"><a class="el" href="dir_849109bbd106d461b128d63e5babcedf.html">UbixOS</a></li><li class="navelem"><a class="el" href="dir_6ec99f6d7d5182ba8913209ab70c9f18.html">sys</a></li><li class="navelem"><a class="el" href="dir_2e95a544a1d9af8c98fc11a4bc9bb1b1.html">pci</a></li><li class="navelem"><a class="el" href="hd_8c.html">hd.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>