<!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: 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&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</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  <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" 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('../../',false,false,'search.php','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('d3/dfa/hd_8c.html','../../');}); /* @license-end */ </script> <div id="doc-content"> <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 <<a class="el" href="../../de/d44/hd_8h_source.html">pci/hd.h</a>></code><br /> <code>#include <<a class="el" href="../../dc/dac/io_8h_source.html">sys/io.h</a>></code><br /> <code>#include <<a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html">sys/device.h</a>></code><br /> <code>#include <<a class="el" href="../../d4/d03/kmalloc_8h_source.html">lib/kmalloc.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>></code><br /> <code>#include <<a class="el" href="../../d9/dd9/devfs_8h_source.html">devfs/devfs.h</a>></code><br /> <code>#include <<a class="el" href="../../da/d66/string_8h_source.html">string.h</a>></code><br /> <code>#include <<a class="el" href="../../d5/d82/gpt_8h_source.html">fs/common/gpt.h</a>></code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for hd.c:</div> <div class="dyncontent"> <div class="center"><img src="../../d5/d3d/hd_8c__incl.png" border="0" usemap="#pci_2hd_8c" alt=""/></div> <map name="pci_2hd_8c" id="pci_2hd_8c"> <area shape="rect" title=" " alt="" coords="1969,5,2037,32"/> <area shape="rect" href="../../de/d44/hd_8h.html" title=" " alt="" coords="1253,80,1321,107"/> <area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="1793,827,1887,853"/> <area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="2109,827,2195,853"/> <area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="1933,80,2001,107"/> <area shape="rect" href="../../d4/d03/kmalloc_8h.html" title=" " alt="" coords="1953,155,2047,181"/> <area shape="rect" href="../../d9/dd9/devfs_8h.html" title=" " alt="" coords="1346,528,1441,555"/> <area shape="rect" href="../../da/d66/string_8h.html" title=" " alt="" coords="2086,752,2151,779"/> <area shape="rect" href="../../d5/d82/gpt_8h.html" title=" " alt="" coords="2127,677,2246,704"/> <area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="1059,901,1149,928"/> <area shape="rect" href="../../d9/d32/include_2ubixfs_2ubixfs_8h.html" title=" " alt="" coords="1105,155,1210,181"/> <area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="1057,1125,1154,1152"/> <area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="1167,976,1260,1003"/> <area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="1817,1051,1906,1077"/> <area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="1295,1051,1414,1077"/> <area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="990,1051,1095,1077"/> <area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="1119,1051,1219,1077"/> <area shape="rect" href="../../db/da9/include_2vfs_2vfs_8h.html" title=" " alt="" coords="832,229,899,256"/> <area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="1064,677,1187,704"/> <area shape="rect" href="../../d1/dd8/mpi_8h.html" title=" " alt="" coords="201,453,279,480"/> <area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="791,603,859,629"/> <area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="371,677,466,704"/> <area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="1055,752,1153,779"/> <area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="901,677,989,704"/> <area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="548,528,695,555"/> <area shape="rect" href="../../d7/d97/net_8h.html" title=" " alt="" coords="1146,304,1219,331"/> <area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="744,677,827,704"/> <area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="909,752,979,779"/> <area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="296,752,376,779"/> <area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="451,752,543,779"/> <area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="354,976,462,1003"/> <area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="296,827,379,853"/> <area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="669,752,757,779"/> <area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="782,752,885,779"/> <area shape="rect" href="../../d9/d69/netif_8h.html" title=" " alt="" coords="1565,379,1643,405"/> <area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="1597,603,1670,629"/> <area shape="rect" href="../../d6/d40/err_8h.html" title=" " alt="" coords="1781,528,1851,555"/> <area shape="rect" href="../../de/df7/ip__addr_8h.html" title=" " alt="" coords="1555,453,1653,480"/> <area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="1633,528,1705,555"/> <area shape="rect" href="../../d0/d35/pbuf_8h.html" title=" " alt="" coords="1729,453,1807,480"/> <area shape="rect" href="../../d9/d9b/stats_8h.html" title=" " alt="" coords="1447,453,1531,480"/> <area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="1461,677,1563,704"/> <area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="1588,677,1679,704"/> <area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="1676,752,1756,779"/> <area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="2117,901,2187,928"/> <area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="185,528,295,555"/> <area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="195,603,285,629"/> <area shape="rect" href="../../de/d9a/tss_8h.html" title=" " alt="" coords="43,603,119,629"/> <area shape="rect" href="../../d6/d90/strings_8h.html" title=" " alt="" coords="2013,827,2085,853"/> <area shape="rect" href="../../dd/d1d/uuid_8h.html" title=" " alt="" coords="2219,827,2301,853"/> </map> </div> </div> <p><a href="../../d3/dfa/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 </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#afe85956506fe7d2c9df06fc1628a7bd1">_initHardDisk</a> (int hdD)</td></tr> <tr class="separator:afe85956506fe7d2c9df06fc1628a7bd1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ab01b187dc277e089d0161315437fde41"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#ab01b187dc277e089d0161315437fde41">hdInit</a> (struct <a class="el" href="../../de/d35/structdevice__node.html">device_node</a> *dev)</td></tr> <tr class="separator:ab01b187dc277e089d0161315437fde41"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ace9b924d48cc450c255d1d48fcbc13a5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#ace9b924d48cc450c255d1d48fcbc13a5">hdIoctl</a> ()</td></tr> <tr class="separator:ace9b924d48cc450c255d1d48fcbc13a5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac285c40dfad18aac6ae2eaa77b4a06c8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#ac285c40dfad18aac6ae2eaa77b4a06c8">hdRead</a> (struct <a class="el" href="../../d4/dc1/structdriveInfo.html">driveInfo</a> *hdd, void *baseAddr, <a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> startSector, <a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> sectorCount)</td></tr> <tr class="separator:ac285c40dfad18aac6ae2eaa77b4a06c8"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8e64e509439c31ba2acfe68a7aefcc10"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#a8e64e509439c31ba2acfe68a7aefcc10">hdReset</a> ()</td></tr> <tr class="separator:a8e64e509439c31ba2acfe68a7aefcc10"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a525245216f426465a3c0f130bd0efd19"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#a525245216f426465a3c0f130bd0efd19">hdStandby</a> ()</td></tr> <tr class="separator:a525245216f426465a3c0f130bd0efd19"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9535712ecc532571658cc6861570dde5"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#a9535712ecc532571658cc6861570dde5">hdStart</a> ()</td></tr> <tr class="separator:a9535712ecc532571658cc6861570dde5"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a7a00465121a584acd10c1ca1b46680a1"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#a7a00465121a584acd10c1ca1b46680a1">hdStop</a> ()</td></tr> <tr class="separator:a7a00465121a584acd10c1ca1b46680a1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a57d5cca1b1006db82038567edf6e6ac1"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#a57d5cca1b1006db82038567edf6e6ac1">hdWrite</a> (struct <a class="el" href="../../d4/dc1/structdriveInfo.html">driveInfo</a> *hdd, void *baseAddr, <a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> startSector, <a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> sectorCount)</td></tr> <tr class="separator:a57d5cca1b1006db82038567edf6e6ac1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa6ffe735243161c69ce0930999e02f88"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/dfa/hd_8c.html#aa6ffe735243161c69ce0930999e02f88">initHardDisk</a> ()</td></tr> <tr class="separator:aa6ffe735243161c69ce0930999e02f88"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Function Documentation</h2> <a id="afe85956506fe7d2c9df06fc1628a7bd1"></a> <h2 class="memtitle"><span class="permalink"><a href="#afe85956506fe7d2c9df06fc1628a7bd1">◆ </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 </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="../../d3/dfa/hd_8c_source.html#l00047">47</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> <p class="reference">References <a class="el" href="../../d1/de8/pci_8c_source.html#l00037">name</a>.</p> <p class="reference">Referenced by <a class="el" href="../../d3/dfa/hd_8c_source.html#l00042">initHardDisk()</a>.</p> </div> </div> <a id="ab01b187dc277e089d0161315437fde41"></a> <h2 class="memtitle"><span class="permalink"><a href="#ab01b187dc277e089d0161315437fde41">◆ </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="../../de/d35/structdevice__node.html">device_node</a> * </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="../../d3/dfa/hd_8c_source.html#l00221">221</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> <p class="reference">References <a class="el" href="../../de/d44/hd_8h_source.html#l00065">ATA_COMMAND</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00050">ATA_DATA</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00061">ATA_DRIVE</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00112">ATA_IDENTIFY</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00166">driveInfo::ata_identify</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00046">ATA_IDENTIFY_COMMAND_SET_SUPPORTED1_48BIT_ENABLE</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00047">ATA_IDENTIFY_SECTOR_LARGER_THEN_512_ENABLE</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00095">ATA_S_BUSY</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00348">ata_identify_data::command_set_enabled1</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00037">device_node::devInfo</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00043">hdCmd</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00171">driveInfo::hdDev</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00170">driveInfo::hdEnable</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00041">hdHead</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00174">driveInfo::hdMask</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00175">driveInfo::hdMulti</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00176">driveInfo::hdPort</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00037">hdSecCount</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00173">driveInfo::hdShift</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00177">driveInfo::hdSize</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00051">device_interface::info</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00048">device_interface::initialized</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00038">inportByte()</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00055">inportWord()</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00167">driveInfo::lba_high</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00168">driveInfo::lba_low</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00361">ata_identify_data::max_48bit_lba</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00072">outportByte()</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00364">ata_identify_data::physical_logical_sector_info</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00169">driveInfo::sector_size</a>, <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00049">device_interface::size</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00326">ata_identify_data::total_num_sectors</a>, and <a class="el" href="../../de/d44/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="../../d3/dfa/hd_8c_ab01b187dc277e089d0161315437fde41_cgraph.png" border="0" usemap="#d3/dfa/hd_8c_ab01b187dc277e089d0161315437fde41_cgraph" alt=""/></div> <map name="d3/dfa/hd_8c_ab01b187dc277e089d0161315437fde41_cgraph" id="d3/dfa/hd_8c_ab01b187dc277e089d0161315437fde41_cgraph"> <area shape="rect" title=" " alt="" coords="5,81,59,108"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="359,5,440,32"/> <area shape="rect" href="../../dc/dac/io_8h.html#afb703b187feb4b92444454df6c3dd9e6" title="input one word from specified port" alt="" coords="107,56,192,83"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="121,107,178,133"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="355,183,444,209"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="246,56,301,83"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="242,107,305,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="240,157,307,184"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="367,56,431,83"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="365,107,434,133"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="492,107,567,133"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="615,81,706,108"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="615,132,707,159"/> </map> </div> </div> </div> <a id="ace9b924d48cc450c255d1d48fcbc13a5"></a> <h2 class="memtitle"><span class="permalink"><a href="#ace9b924d48cc450c255d1d48fcbc13a5">◆ </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="../../d3/dfa/hd_8c_source.html#l00211">211</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> </div> </div> <a id="ac285c40dfad18aac6ae2eaa77b4a06c8"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac285c40dfad18aac6ae2eaa77b4a06c8">◆ </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="../../d4/dc1/structdriveInfo.html">driveInfo</a> * </td> <td class="paramname"><em>hdd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>baseAddr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> </td> <td class="paramname"><em>startSector</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> </td> <td class="paramname"><em>sectorCount</em> </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="../../d3/dfa/hd_8c_source.html#l00423">423</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> <p class="reference">References <a class="el" href="../../de/d44/hd_8h_source.html#l00178">driveInfo::hdCalc</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00043">hdCmd</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00040">hdCylHi</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00039">hdCylLow</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00035">hdData</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00171">driveInfo::hdDev</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00170">driveInfo::hdEnable</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00041">hdHead</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00175">driveInfo::hdMulti</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00176">driveInfo::hdPort</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00037">hdSecCount</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00038">hdSecNum</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00173">driveInfo::hdShift</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00042">hdStat</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00038">inportByte()</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00055">inportWord()</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00181">driveInfo::lba_start</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00072">outportByte()</a>, and <a class="el" href="../../de/d44/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="../../d3/dfa/hd_8c_ac285c40dfad18aac6ae2eaa77b4a06c8_cgraph.png" border="0" usemap="#d3/dfa/hd_8c_ac285c40dfad18aac6ae2eaa77b4a06c8_cgraph" alt=""/></div> <map name="d3/dfa/hd_8c_ac285c40dfad18aac6ae2eaa77b4a06c8_cgraph" id="d3/dfa/hd_8c_ac285c40dfad18aac6ae2eaa77b4a06c8_cgraph"> <area shape="rect" title=" " alt="" coords="5,81,72,108"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="372,5,453,32"/> <area shape="rect" href="../../dc/dac/io_8h.html#afb703b187feb4b92444454df6c3dd9e6" title="input one word from specified port" alt="" coords="120,56,205,83"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="134,107,191,133"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="368,183,457,209"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="259,56,314,83"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="255,107,318,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="253,157,320,184"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="381,56,445,83"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="378,107,447,133"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="505,107,580,133"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="629,81,719,108"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="628,132,720,159"/> </map> </div> </div> </div> <a id="a8e64e509439c31ba2acfe68a7aefcc10"></a> <h2 class="memtitle"><span class="permalink"><a href="#a8e64e509439c31ba2acfe68a7aefcc10">◆ </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="../../d3/dfa/hd_8c_source.html#l00216">216</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> </div> </div> <a id="a525245216f426465a3c0f130bd0efd19"></a> <h2 class="memtitle"><span class="permalink"><a href="#a525245216f426465a3c0f130bd0efd19">◆ </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="../../d3/dfa/hd_8c_source.html#l00196">196</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> </div> </div> <a id="a9535712ecc532571658cc6861570dde5"></a> <h2 class="memtitle"><span class="permalink"><a href="#a9535712ecc532571658cc6861570dde5">◆ </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="../../d3/dfa/hd_8c_source.html#l00201">201</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> </div> </div> <a id="a7a00465121a584acd10c1ca1b46680a1"></a> <h2 class="memtitle"><span class="permalink"><a href="#a7a00465121a584acd10c1ca1b46680a1">◆ </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="../../d3/dfa/hd_8c_source.html#l00206">206</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> </div> </div> <a id="a57d5cca1b1006db82038567edf6e6ac1"></a> <h2 class="memtitle"><span class="permalink"><a href="#a57d5cca1b1006db82038567edf6e6ac1">◆ </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="../../d4/dc1/structdriveInfo.html">driveInfo</a> * </td> <td class="paramname"><em>hdd</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">void * </td> <td class="paramname"><em>baseAddr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> </td> <td class="paramname"><em>startSector</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> </td> <td class="paramname"><em>sectorCount</em> </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="../../d3/dfa/hd_8c_source.html#l00356">356</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> <p class="reference">References <a class="el" href="../../de/d44/hd_8h_source.html#l00178">driveInfo::hdCalc</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00043">hdCmd</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00040">hdCylHi</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00039">hdCylLow</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00035">hdData</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00171">driveInfo::hdDev</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00170">driveInfo::hdEnable</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00041">hdHead</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00175">driveInfo::hdMulti</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00176">driveInfo::hdPort</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00037">hdSecCount</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00038">hdSecNum</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00173">driveInfo::hdShift</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00042">hdStat</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00038">inportByte()</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../de/d44/hd_8h_source.html#l00181">driveInfo::lba_start</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00072">outportByte()</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00103">outportWord()</a>, and <a class="el" href="../../de/d44/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="../../d3/dfa/hd_8c_a57d5cca1b1006db82038567edf6e6ac1_cgraph.png" border="0" usemap="#d3/dfa/hd_8c_a57d5cca1b1006db82038567edf6e6ac1_cgraph" alt=""/></div> <map name="d3/dfa/hd_8c_a57d5cca1b1006db82038567edf6e6ac1_cgraph" id="d3/dfa/hd_8c_a57d5cca1b1006db82038567edf6e6ac1_cgraph"> <area shape="rect" title=" " alt="" coords="5,171,72,197"/> <area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="380,5,461,32"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="138,132,195,159"/> <area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="376,183,465,209"/> <area shape="rect" href="../../dc/dac/io_8h.html#a243f6b6d22cc5948908b764d58efc2b0" title="outputut one word to specified port" alt="" coords="120,259,213,285"/> <area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="267,56,322,83"/> <area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="263,107,326,133"/> <area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="261,157,328,184"/> <area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="389,56,453,83"/> <area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="386,107,455,133"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="513,107,588,133"/> <area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="637,81,727,108"/> <area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="636,132,728,159"/> </map> </div> </div> </div> <a id="aa6ffe735243161c69ce0930999e02f88"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa6ffe735243161c69ce0930999e02f88">◆ </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="../../d3/dfa/hd_8c_source.html#l00042">42</a> of file <a class="el" href="../../d3/dfa/hd_8c_source.html">hd.c</a>.</p> <p class="reference">References <a class="el" href="../../d3/dfa/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="../../d3/dfa/hd_8c_aa6ffe735243161c69ce0930999e02f88_cgraph.png" border="0" usemap="#d3/dfa/hd_8c_aa6ffe735243161c69ce0930999e02f88_cgraph" alt=""/></div> <map name="d3/dfa/hd_8c_aa6ffe735243161c69ce0930999e02f88_cgraph" id="d3/dfa/hd_8c_aa6ffe735243161c69ce0930999e02f88_cgraph"> <area shape="rect" title=" " alt="" coords="5,5,97,32"/> <area shape="rect" href="../../d3/dfa/hd_8c.html#afe85956506fe7d2c9df06fc1628a7bd1" title=" " alt="" coords="145,5,244,32"/> </map> </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_ab7b8fdcdcf09b494f20e7e7a4ee1a95.html">pci</a></li><li class="navelem"><a class="el" href="../../d3/dfa/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>