Newer
Older
ubixos / doc / html / 8259_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/isa/8259.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_2f8fc94d4f17c865dd63167e45dee9cf.html">isa</a></div>
<h1>8259.c File Reference</h1><code>#include &lt;<a class="el" href="8259_8h-source.html">isa/8259.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="kprintf_8h-source.html">lib/kprintf.h</a>&gt;</code><br>

<p>
Include dependency graph for 8259.c:<p><center><img src="8259_8c__incl.png" border="0" usemap="#src/sys/isa/8259.c_map" alt=""></center>
<map name="src/sys/isa/8259.c_map">
<area href="8259_8h.html" shape="rect" coords="200,6,294,32" alt="">
<area href="io_8h.html" shape="rect" coords="211,56,283,83" alt="">
<area href="kprintf_8h.html" shape="rect" coords="198,107,296,134" alt="">
<area href="types_8h.html" shape="rect" coords="346,56,466,83" alt="">
<area href="__types_8h.html" shape="rect" coords="516,56,620,83" alt="">
</map>

<p>
<a href="8259_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>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="8259_8c.html#8045101c57cc1791817412b1016794b4">i8259_init</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">initialize the 8259 PIC  <a href="#8045101c57cc1791817412b1016794b4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="8259_8c.html#371dc14d6686c2005baaa0be4b26ab87">irqDisable</a> (<a class="el" href="types_8h.html#f7b042408b9b104606f8a9b5035329f3">u_int16_t</a> irqNo)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">disable specified IRQ  <a href="#371dc14d6686c2005baaa0be4b26ab87"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="8259_8c.html#49b612db44e9e81ee7bad138264d6e32">irqEnable</a> (<a class="el" href="types_8h.html#f7b042408b9b104606f8a9b5035329f3">u_int16_t</a> irqNo)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">enable specified IRQ  <a href="#49b612db44e9e81ee7bad138264d6e32"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static unsigned int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="8259_8c.html#c1c08e908fa26e3c59fd4989c5290c58">irqMask</a> = 0xFFFF</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="8045101c57cc1791817412b1016794b4"></a><!-- doxytag: member="8259.c::i8259_init" ref="8045101c57cc1791817412b1016794b4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int i8259_init           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
initialize the 8259 PIC 
<p>
This will initialize both PICs for all of our IRQs 
<p>
Definition at line <a class="el" href="8259_8c-source.html#l00042">42</a> of file <a class="el" href="8259_8c-source.html">8259.c</a>.
<p>
References <a class="el" href="8259_8h-source.html#l00040">icw1</a>, <a class="el" href="8259_8h-source.html#l00041">icw4</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="8259_8h-source.html#l00036">mImr</a>, <a class="el" href="8259_8h-source.html#l00035">mPic</a>, <a class="el" href="8259_8h-source.html#l00042">mVec</a>, <a class="el" href="io_8c-source.html#l00073">outportByte()</a>, <a class="el" href="8259_8h-source.html#l00038">sImr</a>, <a class="el" href="8259_8h-source.html#l00037">sPic</a>, and <a class="el" href="8259_8h-source.html#l00043">sVec</a>.
<p>
Here is the call graph for this function:<p><center><img src="8259_8c_8045101c57cc1791817412b1016794b4_cgraph.png" border="0" usemap="#8259_8c_8045101c57cc1791817412b1016794b4_cgraph_map" alt=""></center>
<map name="8259_8c_8045101c57cc1791817412b1016794b4_cgraph_map">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="163,5,229,32" alt="">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="145,56,247,83" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="371dc14d6686c2005baaa0be4b26ab87"></a><!-- doxytag: member="8259.c::irqDisable" ref="371dc14d6686c2005baaa0be4b26ab87" args="(u_int16_t irqNo)" -->
<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="types_8h.html#f7b042408b9b104606f8a9b5035329f3">u_int16_t</a>&nbsp;</td>
          <td class="paramname"> <em>irqNo</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
disable specified IRQ 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>irqNo</em>&nbsp;</td><td>IRQ to disable </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="8259_8c-source.html#l00081">81</a> of file <a class="el" href="8259_8c-source.html">8259.c</a>.
<p>
References <a class="el" href="8259_8c-source.html#l00034">irqMask</a>, <a class="el" href="8259_8h-source.html#l00035">mPic</a>, <a class="el" href="io_8c-source.html#l00073">outportByte()</a>, and <a class="el" href="8259_8h-source.html#l00037">sPic</a>.
<p>
Here is the call graph for this function:<p><center><img src="8259_8c_371dc14d6686c2005baaa0be4b26ab87_cgraph.png" border="0" usemap="#8259_8c_371dc14d6686c2005baaa0be4b26ab87_cgraph_map" alt=""></center>
<map name="8259_8c_371dc14d6686c2005baaa0be4b26ab87_cgraph_map">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="145,5,247,32" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="49b612db44e9e81ee7bad138264d6e32"></a><!-- doxytag: member="8259.c::irqEnable" ref="49b612db44e9e81ee7bad138264d6e32" args="(u_int16_t irqNo)" -->
<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="types_8h.html#f7b042408b9b104606f8a9b5035329f3">u_int16_t</a>&nbsp;</td>
          <td class="paramname"> <em>irqNo</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
enable specified IRQ 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>irqNo</em>&nbsp;</td><td>IRQ to enable </td></tr>
  </table>
</dl>

<p>
Definition at line <a class="el" href="8259_8c-source.html#l00067">67</a> of file <a class="el" href="8259_8c-source.html">8259.c</a>.
<p>
References <a class="el" href="8259_8c-source.html#l00034">irqMask</a>, <a class="el" href="8259_8h-source.html#l00035">mPic</a>, <a class="el" href="io_8c-source.html#l00073">outportByte()</a>, and <a class="el" href="8259_8h-source.html#l00037">sPic</a>.
<p>
Here is the call graph for this function:<p><center><img src="8259_8c_49b612db44e9e81ee7bad138264d6e32_cgraph.png" border="0" usemap="#8259_8c_49b612db44e9e81ee7bad138264d6e32_cgraph_map" alt=""></center>
<map name="8259_8c_49b612db44e9e81ee7bad138264d6e32_cgraph_map">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="143,5,244,32" alt="">
</map>

</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="c1c08e908fa26e3c59fd4989c5290c58"></a><!-- doxytag: member="8259.c::irqMask" ref="c1c08e908fa26e3c59fd4989c5290c58" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="8259_8c.html#c1c08e908fa26e3c59fd4989c5290c58">irqMask</a> = 0xFFFF<code> [static]</code>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="8259_8c-source.html#l00034">34</a> of file <a class="el" href="8259_8c-source.html">8259.c</a>.
<p>
Referenced by <a class="el" href="8259_8c-source.html#l00081">irqDisable()</a>, and <a class="el" href="8259_8c-source.html#l00067">irqEnable()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:22:50 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>