Newer
Older
UbixOS / doc / html / d5 / d60 / 8259_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: isa/8259.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="../../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
   &#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" 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('../../',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&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d5/d60/8259_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">8259.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="../../d2/d68/8259_8h_source.html">isa/8259.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../dc/dac/io_8h_source.html">sys/io.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for 8259.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../db/d6d/8259_8c__incl.png" border="0" usemap="#isa_28259_8c" alt=""/></div>
<map name="isa_28259_8c" id="isa_28259_8c">
<area shape="rect" title=" " alt="" coords="105,5,188,32"/>
<area shape="rect" href="../../d2/d68/8259_8h.html" title=" " alt="" coords="5,80,88,107"/>
<area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="113,80,181,107"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="205,80,291,107"/>
<area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="49,155,140,181"/>
<area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="241,379,338,405"/>
<area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="179,229,272,256"/>
<area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="117,304,206,331"/>
<area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="230,304,349,331"/>
<area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="373,304,478,331"/>
<area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="502,304,602,331"/>
<area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="213,155,283,181"/>
</map>
</div>
</div>
<p><a href="../../d5/d60/8259_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:a8045101c57cc1791817412b1016794b4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d60/8259_8c.html#a8045101c57cc1791817412b1016794b4">i8259_init</a> ()</td></tr>
<tr class="memdesc:a8045101c57cc1791817412b1016794b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize the 8259 PIC  <a href="../../d5/d60/8259_8c.html#a8045101c57cc1791817412b1016794b4">More...</a><br /></td></tr>
<tr class="separator:a8045101c57cc1791817412b1016794b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad53c4c3d65338bf63d4efd4da1cf7703"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d60/8259_8c.html#ad53c4c3d65338bf63d4efd4da1cf7703">irqDisable</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> irqNo)</td></tr>
<tr class="separator:ad53c4c3d65338bf63d4efd4da1cf7703"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adda76540a4a9d97a033b99f0bc42cf0b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d60/8259_8c.html#adda76540a4a9d97a033b99f0bc42cf0b">irqDisable_old</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#af7b042408b9b104606f8a9b5035329f3">u_int16_t</a> irqNo)</td></tr>
<tr class="memdesc:adda76540a4a9d97a033b99f0bc42cf0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">disable specified IRQ  <a href="../../d5/d60/8259_8c.html#adda76540a4a9d97a033b99f0bc42cf0b">More...</a><br /></td></tr>
<tr class="separator:adda76540a4a9d97a033b99f0bc42cf0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d628ae64fdc8f3433b4930cefa8ae4a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d60/8259_8c.html#a7d628ae64fdc8f3433b4930cefa8ae4a">irqEnable</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a> irqNo)</td></tr>
<tr class="separator:a7d628ae64fdc8f3433b4930cefa8ae4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2757e398a25b05d82816891d135d4af"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d60/8259_8c.html#aa2757e398a25b05d82816891d135d4af">irqEnable_old</a> (<a class="el" href="../../d0/d27/include_2sys_2types_8h.html#af7b042408b9b104606f8a9b5035329f3">u_int16_t</a> irqNo)</td></tr>
<tr class="memdesc:aa2757e398a25b05d82816891d135d4af"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable specified IRQ  <a href="../../d5/d60/8259_8c.html#aa2757e398a25b05d82816891d135d4af">More...</a><br /></td></tr>
<tr class="separator:aa2757e398a25b05d82816891d135d4af"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a8045101c57cc1791817412b1016794b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8045101c57cc1791817412b1016794b4">&#9670;&nbsp;</a></span>i8259_init()</h2>

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

<p>initialize the 8259 PIC </p>
<p>This will initialize both PICs for all of our IRQs </p>

<p class="definition">Definition at line <a class="el" href="../../d5/d60/8259_8c_source.html#l00041">41</a> of file <a class="el" href="../../d5/d60/8259_8c_source.html">8259.c</a>.</p>

<p class="reference">References <a class="el" href="../../d2/d68/8259_8h_source.html#l00039">icw1</a>, <a class="el" href="../../d2/d68/8259_8h_source.html#l00040">icw4</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../d2/d68/8259_8h_source.html#l00035">mImr</a>, <a class="el" href="../../d2/d68/8259_8h_source.html#l00034">mPic</a>, <a class="el" href="../../d2/d68/8259_8h_source.html#l00041">mVec</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00072">outportByte()</a>, <a class="el" href="../../d2/d68/8259_8h_source.html#l00037">sImr</a>, <a class="el" href="../../d2/d68/8259_8h_source.html#l00036">sPic</a>, and <a class="el" href="../../d2/d68/8259_8h_source.html#l00042">sVec</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d60/8259_8c_a8045101c57cc1791817412b1016794b4_cgraph.png" border="0" usemap="#d5/d60/8259_8c_a8045101c57cc1791817412b1016794b4_cgraph" alt=""/></div>
<map name="d5/d60/8259_8c_a8045101c57cc1791817412b1016794b4_cgraph" id="d5/d60/8259_8c_a8045101c57cc1791817412b1016794b4_cgraph">
<area shape="rect" title="initialize the 8259 PIC" alt="" coords="5,171,83,197"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="131,132,188,159"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="351,183,440,209"/>
<area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="242,56,297,83"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="238,107,301,133"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="236,157,303,184"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="355,5,436,32"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="363,56,427,83"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="361,107,430,133"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="488,107,563,133"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="611,81,702,108"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="611,132,703,159"/>
</map>
</div>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void irqDisable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a>&#160;</td>
          <td class="paramname"><em>irqNo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d60/8259_8c_source.html#l00104">104</a> of file <a class="el" href="../../d5/d60/8259_8c_source.html">8259.c</a>.</p>

<p class="reference">References <a class="el" href="../../df/d0a/io_8c_source.html#l00038">inportByte()</a>, <a class="el" href="../../d2/d68/8259_8h_source.html#l00035">mImr</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00072">outportByte()</a>, and <a class="el" href="../../d2/d68/8259_8h_source.html#l00037">sImr</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d60/8259_8c_ad53c4c3d65338bf63d4efd4da1cf7703_cgraph.png" border="0" usemap="#d5/d60/8259_8c_ad53c4c3d65338bf63d4efd4da1cf7703_cgraph" alt=""/></div>
<map name="d5/d60/8259_8c_ad53c4c3d65338bf63d4efd4da1cf7703_cgraph" id="d5/d60/8259_8c_ad53c4c3d65338bf63d4efd4da1cf7703_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,84,57"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="136,5,217,32"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="132,56,221,83"/>
</map>
</div>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void irqDisable_old </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#af7b042408b9b104606f8a9b5035329f3">u_int16_t</a>&#160;</td>
          <td class="paramname"><em>irqNo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>disable specified IRQ </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">irqNo</td><td>IRQ to disable </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d5/d60/8259_8c_source.html#l00095">95</a> of file <a class="el" href="../../d5/d60/8259_8c_source.html">8259.c</a>.</p>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void irqEnable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a281b4b5562236420969a830503b0ba19">uint16_t</a>&#160;</td>
          <td class="paramname"><em>irqNo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d60/8259_8c_source.html#l00075">75</a> of file <a class="el" href="../../d5/d60/8259_8c_source.html">8259.c</a>.</p>

<p class="reference">References <a class="el" href="../../df/d0a/io_8c_source.html#l00038">inportByte()</a>, <a class="el" href="../../d2/d68/8259_8h_source.html#l00035">mImr</a>, <a class="el" href="../../df/d0a/io_8c_source.html#l00072">outportByte()</a>, and <a class="el" href="../../d2/d68/8259_8h_source.html#l00037">sImr</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d60/8259_8c_a7d628ae64fdc8f3433b4930cefa8ae4a_cgraph.png" border="0" usemap="#d5/d60/8259_8c_a7d628ae64fdc8f3433b4930cefa8ae4a_cgraph" alt=""/></div>
<map name="d5/d60/8259_8c_a7d628ae64fdc8f3433b4930cefa8ae4a_cgraph" id="d5/d60/8259_8c_a7d628ae64fdc8f3433b4930cefa8ae4a_cgraph">
<area shape="rect" title=" " alt="" coords="5,31,81,57"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="133,5,215,32"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="129,56,219,83"/>
</map>
</div>

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

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void irqEnable_old </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d0/d27/include_2sys_2types_8h.html#af7b042408b9b104606f8a9b5035329f3">u_int16_t</a>&#160;</td>
          <td class="paramname"><em>irqNo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable specified IRQ </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">irqNo</td><td>IRQ to enable </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../d5/d60/8259_8c_source.html#l00066">66</a> of file <a class="el" href="../../d5/d60/8259_8c_source.html">8259.c</a>.</p>

</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_3072dafebbfa7892dc4725aed51ee84c.html">isa</a></li><li class="navelem"><a class="el" href="../../d5/d60/8259_8c.html">8259.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>