Newer
Older
UbixOS / doc / html / mouse_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/mouse.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>mouse.c File Reference</h1><code>#include &lt;<a class="el" href="mouse_8h-source.html">isa/mouse.h</a>&gt;</code><br>
<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="idt_8h-source.html">sys/idt.h</a>&gt;</code><br>
<code>#include &lt;<a class="el" href="gdt_8h-source.html">sys/gdt.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>
<code>#include &lt;<a class="el" href="types_8h-source.html">ubixos/types.h</a>&gt;</code><br>

<p>
Include dependency graph for mouse.c:<p><center><img src="mouse_8c__incl.png" border="0" usemap="#src/sys/isa/mouse.c_map" alt=""></center>
<map name="src/sys/isa/mouse.c_map">
<area href="mouse_8h.html" shape="rect" coords="208,5,312,32" alt="">
<area href="8259_8h.html" shape="rect" coords="214,107,307,133" alt="">
<area href="types_8h.html" shape="rect" coords="362,132,482,159" alt="">
<area href="idt_8h.html" shape="rect" coords="222,208,299,235" alt="">
<area href="gdt_8h.html" shape="rect" coords="380,259,463,285" alt="">
<area href="io_8h.html" shape="rect" coords="224,259,296,285" alt="">
<area href="kprintf_8h.html" shape="rect" coords="211,56,310,83" alt="">
<area href="__types_8h.html" shape="rect" coords="532,132,636,159" alt="">
</map>

<p>
<a href="mouse_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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mouse_8c.html#6a4ad5b5e62c2d3d9398bd4ac9ea4c6c">asm</a> (&quot;.globl mouseISR \n&quot;&quot;mouseISR:       \n&quot;&quot;  pusha         \n&quot;&quot;  call mouseHandler \n&quot;&quot;  popa          \n&quot;&quot;  iret          \n&quot;)</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="mouse_8c.html#3cef921f56340e940a23cb8039cdfd4c">kbdRead</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mouse_8c.html#57d9b8c880e86f3c89741cf29602cd73">kbdWrite</a> (<a class="el" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> port, <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> data)</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="mouse_8c.html#3a404b999a39405486648473efc2aaa4">kbdWriteRead</a> (<a class="el" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> port, <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> data, const char *expect)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mouse_8c.html#db1403c2c7c25ea9b2826c504f8eb502">mouseHandler</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="mouse_8c.html#ddd388f29d13c841d76dbab30cdfa756">mouseInit</a> ()</td></tr>

</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="6a4ad5b5e62c2d3d9398bd4ac9ea4c6c"></a><!-- doxytag: member="mouse.c::asm" ref="6a4ad5b5e62c2d3d9398bd4ac9ea4c6c" args="(&quot;.globl mouseISR \n&quot;&quot;mouseISR:       \n&quot;&quot;  pusha         \n&quot;&quot;  call mouseHandler \n&quot;&quot;  popa          \n&quot;&quot;  iret          \n&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">asm           </td>
          <td>(</td>
          <td class="paramtype">&quot;.globl mouseISR \n&quot;&quot;mouseISR: \n&quot;&quot; pusha \n&quot;&quot; call mouseHandler \n&quot;&quot; popa \n&quot;&quot; iret \n&quot;&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<a class="anchor" name="3cef921f56340e940a23cb8039cdfd4c"></a><!-- doxytag: member="mouse.c::kbdRead" ref="3cef921f56340e940a23cb8039cdfd4c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> kbdRead           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="mouse_8c-source.html#l00038">38</a> of file <a class="el" href="mouse_8c-source.html">mouse.c</a>.
<p>
References <a class="el" href="io_8c-source.html#l00039">inportByte()</a>.
<p>
Referenced by <a class="el" href="mouse_8c-source.html#l00075">kbdWriteRead()</a>, and <a class="el" href="mouse_8c-source.html#l00094">mouseInit()</a>.
<p>
Here is the call graph for this function:<p><center><img src="mouse_8c_3cef921f56340e940a23cb8039cdfd4c_cgraph.png" border="0" usemap="#mouse_8c_3cef921f56340e940a23cb8039cdfd4c_cgraph_map" alt=""></center>
<map name="mouse_8c_3cef921f56340e940a23cb8039cdfd4c_cgraph_map">
<area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="136,5,230,32" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="57d9b8c880e86f3c89741cf29602cd73"></a><!-- doxytag: member="mouse.c::kbdWrite" ref="57d9b8c880e86f3c89741cf29602cd73" args="(uInt16 port, uInt8 data)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void kbdWrite           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a>&nbsp;</td>
          <td class="paramname"> <em>port</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>data</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="mouse_8c-source.html#l00059">59</a> of file <a class="el" href="mouse_8c-source.html">mouse.c</a>.
<p>
References <a class="el" href="io_8c-source.html#l00039">inportByte()</a>, and <a class="el" href="io_8c-source.html#l00073">outportByte()</a>.
<p>
Referenced by <a class="el" href="mouse_8c-source.html#l00075">kbdWriteRead()</a>, and <a class="el" href="mouse_8c-source.html#l00094">mouseInit()</a>.
<p>
Here is the call graph for this function:<p><center><img src="mouse_8c_57d9b8c880e86f3c89741cf29602cd73_cgraph.png" border="0" usemap="#mouse_8c_57d9b8c880e86f3c89741cf29602cd73_cgraph_map" alt=""></center>
<map name="mouse_8c_57d9b8c880e86f3c89741cf29602cd73_cgraph_map">
<area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="141,5,235,32" alt="">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="137,56,239,83" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="3a404b999a39405486648473efc2aaa4"></a><!-- doxytag: member="mouse.c::kbdWriteRead" ref="3a404b999a39405486648473efc2aaa4" args="(uInt16 port, uInt8 data, const char *expect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="types_8h.html#a4e0f27a9aca905e340c06d2dcae843c">uInt8</a> kbdWriteRead           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a>&nbsp;</td>
          <td class="paramname"> <em>port</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>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>expect</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="mouse_8c-source.html#l00075">75</a> of file <a class="el" href="mouse_8c-source.html">mouse.c</a>.
<p>
References <a class="el" href="mouse_8c-source.html#l00038">kbdRead()</a>, and <a class="el" href="mouse_8c-source.html#l00059">kbdWrite()</a>.
<p>
Referenced by <a class="el" href="mouse_8c-source.html#l00094">mouseInit()</a>.
<p>
Here is the call graph for this function:<p><center><img src="mouse_8c_3a404b999a39405486648473efc2aaa4_cgraph.png" border="0" usemap="#mouse_8c_3a404b999a39405486648473efc2aaa4_cgraph_map" alt=""></center>
<map name="mouse_8c_3a404b999a39405486648473efc2aaa4_cgraph_map">
<area href="mouse_8c.html#3cef921f56340e940a23cb8039cdfd4c" shape="rect" coords="172,5,252,32" alt="">
<area href="mouse_8c.html#57d9b8c880e86f3c89741cf29602cd73" shape="rect" coords="171,56,254,83" alt="">
<area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="307,5,400,32" alt="">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="303,56,404,83" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="db1403c2c7c25ea9b2826c504f8eb502"></a><!-- doxytag: member="mouse.c::mouseHandler" ref="db1403c2c7c25ea9b2826c504f8eb502" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mouseHandler           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="mouse_8c-source.html#l00141">141</a> of file <a class="el" href="mouse_8c-source.html">mouse.c</a>.
<p>
References <a class="el" href="8259_8h-source.html#l00039">eoi</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</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="mouse_8c_db1403c2c7c25ea9b2826c504f8eb502_cgraph.png" border="0" usemap="#mouse_8c_db1403c2c7c25ea9b2826c504f8eb502_cgraph_map" alt=""></center>
<map name="mouse_8c_db1403c2c7c25ea9b2826c504f8eb502_cgraph_map">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="195,5,261,32" alt="">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="177,56,279,83" alt="">
</map>

</div>
</div><p>
<a class="anchor" name="ddd388f29d13c841d76dbab30cdfa756"></a><!-- doxytag: member="mouse.c::mouseInit" ref="ddd388f29d13c841d76dbab30cdfa756" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int mouseInit           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

<p>
Definition at line <a class="el" href="mouse_8c-source.html#l00094">94</a> of file <a class="el" href="mouse_8c-source.html">mouse.c</a>.
<p>
References <a class="el" href="gdt_8h-source.html#l00044">dDpl3</a>, <a class="el" href="gdt_8h-source.html#l00037">dInt</a>, <a class="el" href="gdt_8h-source.html#l00048">dPresent</a>, <a class="el" href="8259_8h-source.html#l00039">eoi</a>, <a class="el" href="8259_8h.html#0ac079c4d770f02e505f4d8569a6960a">irqEnable()</a>, <a class="el" href="mouse_8c-source.html#l00038">kbdRead()</a>, <a class="el" href="mouse_8c-source.html#l00059">kbdWrite()</a>, <a class="el" href="mouse_8c-source.html#l00075">kbdWriteRead()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="mouse_8h.html#589718a005c965a29093980c1bdb62e1">mouseISR()</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="idt_8c-source.html#l00156">setVector()</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="mouse_8c_ddd388f29d13c841d76dbab30cdfa756_cgraph.png" border="0" usemap="#mouse_8c_ddd388f29d13c841d76dbab30cdfa756_cgraph_map" alt=""></center>
<map name="mouse_8c_ddd388f29d13c841d76dbab30cdfa756_cgraph_map">
<area href="8259_8h.html#0ac079c4d770f02e505f4d8569a6960a" shape="rect" coords="160,5,245,32" alt="">
<area href="mouse_8c.html#3cef921f56340e940a23cb8039cdfd4c" shape="rect" coords="311,107,391,133" alt="">
<area href="mouse_8c.html#57d9b8c880e86f3c89741cf29602cd73" shape="rect" coords="309,157,392,184" alt="">
<area href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1" shape="rect" coords="441,183,543,209" alt="">
<area href="mouse_8c.html#3a404b999a39405486648473efc2aaa4" shape="rect" coords="145,107,260,133" alt="">
<area href="kprint_8h.html#b2761bdf0cca73ad0fb5880895210cd8" shape="rect" coords="169,259,236,285" alt="">
<area href="mouse_8h.html#589718a005c965a29093980c1bdb62e1" shape="rect" coords="159,309,247,336" alt="">
<area href="idt_8h.html#174a47ed653fc64fff6b5bb1b895c2cf" shape="rect" coords="160,360,245,387" alt="">
<area href="io_8h.html#77b934268de1b3ecdcf3f275413b3108" shape="rect" coords="445,132,539,159" alt="">
</map>

</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:23:09 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>