Newer
Older
UbixOS / doc / html / dma_8c.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>UbixOS V2: src/sys/sys/dma.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
    <li id="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="dirs.html"><span>Directories</span></a></li>
    <li>
      <form action="search.php" method="get">
        <table cellspacing="0" cellpadding="0" border="0">
          <tr>
            <td><label>&nbsp;<u>S</u>earch&nbsp;for&nbsp;</label></td>
            <td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
          </tr>
        </table>
      </form>
    </li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul></div>
<div class="nav">
<a class="el" href="dir_897b6a2d7bab147dd1db58381aad3984.html">src</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a>&nbsp;&raquo&nbsp;<a class="el" href="dir_7b0469299ccbf4a3a403496996173710.html">sys</a></div>
<h1>dma.c File Reference</h1><code>#include &lt;<a class="el" href="dma_8h-source.html">sys/dma.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="types_8h-source.html">ubixos/types.h</a>&gt;</code><br>

<p>
Include dependency graph for dma.c:<p><center><img src="dma_8c__incl.png" border="0" usemap="#src/sys/sys/dma.c_map" alt=""></center>
<map name="src/sys/sys/dma.c_map">
<area href="dma_8h.html" shape="rect" coords="196,6,287,32" alt="">
<area href="types_8h.html" shape="rect" coords="338,31,458,58" alt="">
<area href="io_8h.html" shape="rect" coords="206,107,278,134" alt="">
<area href="__types_8h.html" shape="rect" coords="508,31,612,58" alt="">
</map>

<p>
<a href="dma_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#d03cbb59aaf2eea05907807a12936e7f">highByte</a>(x)&nbsp;&nbsp;&nbsp;((x &amp; 0xFF00) &gt;&gt; 8)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#19a055e908717e6f71f285bc5c84ea45">lowByte</a>(x)&nbsp;&nbsp;&nbsp;(x &amp; 0x00FF)</td></tr>

<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#e136d2bd6481a13de8e96f5a583c45eb">_dmaXfer</a> (<a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> dmaChannel, <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> page, <a class="el" href="types_8h.html#87d141052bcd5ec8a80812a565c70369">uInt</a> offset, <a class="el" href="types_8h.html#87d141052bcd5ec8a80812a565c70369">uInt</a> length, <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> mode)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#7e2aa65e3e12777006ad192f7ff8bb5a">dmaXfer</a> (<a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> channel, <a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a> address, <a class="el" href="types_8h.html#87d141052bcd5ec8a80812a565c70369">uInt</a> length, <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> read)</td></tr>

<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#86470f16b06e0b7c17961d074c124550">addrPort</a> [8] = { 0x00, 0x02, 0x04, 0x06, 0xC0, 0xC4, 0xC8, 0xCC }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#0958d78130405d2a49b1daace7f59db7">clearReg</a> [8] = { 0x0C, 0x0C, 0x0C, 0x0C, 0xD8, 0xD8, 0xD8, 0xD8 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#7856fd2b7ad20b0d7e189c8c52bd420e">countPort</a> [8] = { 0x01, 0x03, 0x05, 0x07, 0xC2, 0xC6, 0xCA, 0xCE }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#8c07d2b2e2c5790ec43ea5b534db08ae">maskReg</a> [8] = { 0x0A, 0x0A, 0x0A, 0x0A, 0xD4, 0xD4, 0xD4, 0xD4 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#28967b638d408de9a6469f8501c2f60c">modeReg</a> [8] = { 0x0B, 0x0B, 0x0B, 0x0B, 0xD6, 0xD6, 0xD6, 0xD6 }</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="dma_8c.html#9aa538f8203541a3c3bfc668a75d3e5f">pagePort</a> [8] = { 0x87, 0x83, 0x81, 0x82, 0x8F, 0x8B, 0x89, 0x8A }</td></tr>

</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="d03cbb59aaf2eea05907807a12936e7f"></a><!-- doxytag: member="dma.c::highByte" ref="d03cbb59aaf2eea05907807a12936e7f" args="(x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define highByte          </td>
          <td>(</td>
          <td class="paramtype">x&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;((x &amp; 0xFF00) &gt;&gt; 8)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00035">35</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
</div>
</div><p>
<a class="anchor" name="19a055e908717e6f71f285bc5c84ea45"></a><!-- doxytag: member="dma.c::lowByte" ref="19a055e908717e6f71f285bc5c84ea45" args="(x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define lowByte          </td>
          <td>(</td>
          <td class="paramtype">x&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">&nbsp;&nbsp;&nbsp;(x &amp; 0x00FF)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00034">34</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="e136d2bd6481a13de8e96f5a583c45eb"></a><!-- doxytag: member="dma.c::_dmaXfer" ref="e136d2bd6481a13de8e96f5a583c45eb" args="(uInt8 dmaChannel, uInt8 page, uInt offset, uInt length, uInt8 mode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _dmaXfer           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td>
          <td class="paramname"> <em>dmaChannel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td>
          <td class="paramname"> <em>page</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#87d141052bcd5ec8a80812a565c70369">uInt</a>&nbsp;</td>
          <td class="paramname"> <em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#87d141052bcd5ec8a80812a565c70369">uInt</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td>
          <td class="paramname"> <em>mode</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00059">59</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
References <a class="el" href="dma_8c-source.html#l00040">addrPort</a>, <a class="el" href="dma_8c-source.html#l00038">clearReg</a>, <a class="el" href="dma_8c-source.html#l00042">countPort</a>, <a class="el" href="dma_8c-source.html#l00035">highByte</a>, <a class="el" href="dma_8c-source.html#l00034">lowByte</a>, <a class="el" href="dma_8c-source.html#l00037">maskReg</a>, <a class="el" href="dma_8c-source.html#l00039">modeReg</a>, <a class="el" href="io_8c-source.html#l00073">outportByte()</a>, and <a class="el" href="dma_8c-source.html#l00041">pagePort</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00044">dmaXfer()</a>.
<p>
Here is the call graph for this function:<p><center><img src="dma_8c_e136d2bd6481a13de8e96f5a583c45eb_cgraph.png" border="0" usemap="#dma_8c_e136d2bd6481a13de8e96f5a583c45eb_cgraph_map" alt=""></center>
<map name="dma_8c_e136d2bd6481a13de8e96f5a583c45eb_cgraph_map">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="143,5,244,32" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="7e2aa65e3e12777006ad192f7ff8bb5a"></a><!-- doxytag: member="dma.c::dmaXfer" ref="7e2aa65e3e12777006ad192f7ff8bb5a" args="(uInt8 channel, uInt32 address, uInt length, uInt8 read)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dmaXfer           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td>
          <td class="paramname"> <em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#5847ea0262a5aa61eee48cbe95544a78">uInt32</a>&nbsp;</td>
          <td class="paramname"> <em>address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#87d141052bcd5ec8a80812a565c70369">uInt</a>&nbsp;</td>
          <td class="paramname"> <em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a>&nbsp;</td>
          <td class="paramname"> <em>read</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00044">44</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
References <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
<p>
Referenced by <a class="el" href="fdc_8c-source.html#l00129">fdcRw()</a>.
<p>
Here is the call graph for this function:<p><center><img src="dma_8c_7e2aa65e3e12777006ad192f7ff8bb5a_cgraph.png" border="0" usemap="#dma_8c_7e2aa65e3e12777006ad192f7ff8bb5a_cgraph_map" alt=""></center>
<map name="dma_8c_7e2aa65e3e12777006ad192f7ff8bb5a_cgraph_map">
<area href="dma_8h.html#e136d2bd6481a13de8e96f5a583c45eb" shape="rect" coords="134,5,222,32" alt="">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="271,5,372,32" alt="">
</map>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="86470f16b06e0b7c17961d074c124550"></a><!-- doxytag: member="dma.c::addrPort" ref="86470f16b06e0b7c17961d074c124550" args="[8]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="el" href="dma_8c.html#86470f16b06e0b7c17961d074c124550">addrPort</a>[8] = { 0x00, 0x02, 0x04, 0x06, 0xC0, 0xC4, 0xC8, 0xCC }<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00040">40</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
</div>
</div><p>
<a class="anchor" name="0958d78130405d2a49b1daace7f59db7"></a><!-- doxytag: member="dma.c::clearReg" ref="0958d78130405d2a49b1daace7f59db7" args="[8]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="el" href="dma_8c.html#0958d78130405d2a49b1daace7f59db7">clearReg</a>[8] = { 0x0C, 0x0C, 0x0C, 0x0C, 0xD8, 0xD8, 0xD8, 0xD8 }<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00038">38</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
</div>
</div><p>
<a class="anchor" name="7856fd2b7ad20b0d7e189c8c52bd420e"></a><!-- doxytag: member="dma.c::countPort" ref="7856fd2b7ad20b0d7e189c8c52bd420e" args="[8]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="el" href="dma_8c.html#7856fd2b7ad20b0d7e189c8c52bd420e">countPort</a>[8] = { 0x01, 0x03, 0x05, 0x07, 0xC2, 0xC6, 0xCA, 0xCE }<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00042">42</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
</div>
</div><p>
<a class="anchor" name="8c07d2b2e2c5790ec43ea5b534db08ae"></a><!-- doxytag: member="dma.c::maskReg" ref="8c07d2b2e2c5790ec43ea5b534db08ae" args="[8]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="el" href="dma_8c.html#8c07d2b2e2c5790ec43ea5b534db08ae">maskReg</a>[8] = { 0x0A, 0x0A, 0x0A, 0x0A, 0xD4, 0xD4, 0xD4, 0xD4 }<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00037">37</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
</div>
</div><p>
<a class="anchor" name="28967b638d408de9a6469f8501c2f60c"></a><!-- doxytag: member="dma.c::modeReg" ref="28967b638d408de9a6469f8501c2f60c" args="[8]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="el" href="dma_8c.html#28967b638d408de9a6469f8501c2f60c">modeReg</a>[8] = { 0x0B, 0x0B, 0x0B, 0x0B, 0xD6, 0xD6, 0xD6, 0xD6 }<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00039">39</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
</div>
</div><p>
<a class="anchor" name="9aa538f8203541a3c3bfc668a75d3e5f"></a><!-- doxytag: member="dma.c::pagePort" ref="9aa538f8203541a3c3bfc668a75d3e5f" args="[8]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> <a class="el" href="dma_8c.html#9aa538f8203541a3c3bfc668a75d3e5f">pagePort</a>[8] = { 0x87, 0x83, 0x81, 0x82, 0x8F, 0x8B, 0x89, 0x8A }<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="dma_8c-source.html#l00041">41</a> of file <a class="el" href="dma_8c-source.html">dma.c</a>.
<p>
Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:25:25 2006 for UbixOS V2 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>