<!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/include/sys/io.h 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 Page</span></a></li> <li><a href="classes.html"><span>Data 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> <u>S</u>earch for </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 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> » <a class="el" href="dir_832905b1f7f5feaf61a306b40c0ac817.html">sys</a> » <a class="el" href="dir_caf4200c438ae9601464168e21e8e4d8.html">include</a> » <a class="el" href="dir_d26f37d6397a53073c964316867e8d67.html">sys</a></div> <h1>io.h File Reference</h1> <p> This graph shows which files directly or indirectly include this file:<p><center><img src="io_8h__dep__incl.png" border="0" usemap="#src/sys/include/sys/io.hdep_map" alt=""></center> <map name="src/sys/include/sys/io.hdep_map"> <area href="time_8h.html" shape="rect" coords="232,107,451,133" alt=""> <area href="8259_8c.html" shape="rect" coords="271,157,412,184" alt=""> <area href="atkbd_8c.html" shape="rect" coords="268,208,415,235" alt=""> <area href="fdc_8c.html" shape="rect" coords="278,259,406,285" alt=""> <area href="mouse_8c.html" shape="rect" coords="266,309,418,336" alt=""> <area href="ne2k_8c.html" shape="rect" coords="271,360,412,387" alt=""> <area href="pit_8c.html" shape="rect" coords="279,411,404,437" alt=""> <area href="smp_8c.html" shape="rect" coords="263,461,420,488" alt=""> <area href="systemtask_8c.html" shape="rect" coords="239,512,444,539" alt=""> <area href="tty_8c.html" shape="rect" coords="268,563,415,589" alt=""> <area href="hd_8c.html" shape="rect" coords="279,613,404,640" alt=""> <area href="lnc_8c.html" shape="rect" coords="278,664,406,691" alt=""> <area href="pci_8c.html" shape="rect" coords="278,715,406,741" alt=""> <area href="dma_8c.html" shape="rect" coords="271,765,412,792" alt=""> <area href="idt_8c.html" shape="rect" coords="278,816,406,843" alt=""> <area href="io_8c.html" shape="rect" coords="280,867,403,893" alt=""> <area href="video_8c.html" shape="rect" coords="268,917,415,944" alt=""> <area href="vmm__memory_8c.html" shape="rect" coords="232,968,451,995" alt=""> <area href="init_8h.html" shape="rect" coords="520,5,728,32" alt=""> <area href="ubthread_8h.html" shape="rect" coords="500,56,748,83" alt=""> <area href="ubthread_8c.html" shape="rect" coords="798,81,990,108" alt=""> <area href="syscall_8c.html" shape="rect" coords="536,157,712,184" alt=""> <area href="time_8c.html" shape="rect" coords="544,208,704,235" alt=""> </map> <p> <a href="io_8h-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">unsigned char </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#77b934268de1b3ecdcf3f275413b3108">inportByte</a> (unsigned int)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">input one byte from specified port <a href="#77b934268de1b3ecdcf3f275413b3108"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned long </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#8d6617406b264c7f9e143adab8406791">inportDWord</a> (unsigned int)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">input one double word from specified port <a href="#8d6617406b264c7f9e143adab8406791"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">unsigned short </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#fb703b187feb4b92444454df6c3dd9e6">inportWord</a> (unsigned int)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">input one word from specified port <a href="#fb703b187feb4b92444454df6c3dd9e6"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#8acc1a06073db2e7b92ffbd00fbd0cf1">outportByte</a> (unsigned int, unsigned char)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">outputut one byte to specified port <a href="#8acc1a06073db2e7b92ffbd00fbd0cf1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#f0c1dd5717007bf73b6c5119dfe7eaf2">outportByteP</a> (unsigned int port, unsigned char value)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">outputut one byte to specified port with a delay <a href="#f0c1dd5717007bf73b6c5119dfe7eaf2"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#2e2ad8d744ae4b35ea37d39dcfea1296">outportDWord</a> (unsigned int port, unsigned long value)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">outputut one double word to specified port <a href="#2e2ad8d744ae4b35ea37d39dcfea1296"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="io_8h.html#243f6b6d22cc5948908b764d58efc2b0">outportWord</a> (unsigned int, unsigned short)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">outputut one word to specified port <a href="#243f6b6d22cc5948908b764d58efc2b0"></a><br></td></tr> </table> <hr><h2>Function Documentation</h2> <a class="anchor" name="77b934268de1b3ecdcf3f275413b3108"></a><!-- doxytag: member="io.h::inportByte" ref="77b934268de1b3ecdcf3f275413b3108" args="(unsigned int)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned char inportByte </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>port</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> input one byte from specified port <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>port</em> </td><td>address of port for reading </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>returns unsigned char value </dd></dl> <p> Definition at line <a class="el" href="io_8c-source.html#l00039">39</a> of file <a class="el" href="io_8c-source.html">io.c</a>. <p> Referenced by <a class="el" href="idt_8c-source.html#l00281">_int13()</a>, <a class="el" href="atkbd_8c-source.html#l00203">atkbd_scan()</a>, <a class="el" href="video_8c-source.html#l00040">backSpace()</a>, <a class="el" href="vmm__memory_8c-source.html#l00104">countMemory()</a>, <a class="el" href="ne2k_8c-source.html#l00223">dp_recv()</a>, <a class="el" href="fdc_8c-source.html#l00129">fdcRw()</a>, <a class="el" href="fdc_8c-source.html#l00116">getByte()</a>, <a class="el" href="hd_8c-source.html#l00145">hdInit()</a>, <a class="el" href="hd_8c-source.html#l00284">hdRead()</a>, <a class="el" href="hd_8c-source.html#l00222">hdWrite()</a>, <a class="el" href="lnc_8c-source.html#l00104">initLNC()</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="atkbd_8c-source.html#l00216">keyboardHandler()</a>, <a class="el" href="video_8c-source.html#l00062">kprint()</a>, <a class="el" href="ne2k_8c-source.html#l00070">ne2k_init()</a>, <a class="el" href="ne2k_8c-source.html#l00191">ne2kHandler()</a>, <a class="el" href="pci_8c-source.html#l00182">pciRead()</a>, <a class="el" href="ne2k_8c-source.html#l00115">PCtoNIC()</a>, <a class="el" href="fdc_8c-source.html#l00103">sendByte()</a>, <a class="el" href="atkbd_8c-source.html#l00321">setLED()</a>, <a class="el" href="systemtask_8c-source.html#l00048">systemTask()</a>, <a class="el" href="time_8c-source.html#l00051">timeCmosRead()</a>, <a class="el" href="tty_8c-source.html#l00042">tty_init()</a>, and <a class="el" href="fdc_8c-source.html#l00256">waitFdc()</a>. </div> </div><p> <a class="anchor" name="8d6617406b264c7f9e143adab8406791"></a><!-- doxytag: member="io.h::inportDWord" ref="8d6617406b264c7f9e143adab8406791" args="(unsigned int)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned long inportDWord </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>port</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> input one double word from specified port <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>port</em> </td><td>address of port for reading </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>returns unsigned double word value </dd></dl> <p> Definition at line <a class="el" href="io_8c-source.html#l00134">134</a> of file <a class="el" href="io_8c-source.html">io.c</a>. <p> Referenced by <a class="el" href="pci_8c-source.html#l00182">pciRead()</a>. </div> </div><p> <a class="anchor" name="fb703b187feb4b92444454df6c3dd9e6"></a><!-- doxytag: member="io.h::inportWord" ref="fb703b187feb4b92444454df6c3dd9e6" args="(unsigned int)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned short inportWord </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>port</em> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> input one word from specified port <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>port</em> </td><td>address of port for reading </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>returns unsigned short value </dd></dl> <p> Definition at line <a class="el" href="io_8c-source.html#l00056">56</a> of file <a class="el" href="io_8c-source.html">io.c</a>. <p> Referenced by <a class="el" href="idt_8c-source.html#l00281">_int13()</a>, <a class="el" href="ne2k_8c-source.html#l00279">getblock()</a>, <a class="el" href="hd_8c-source.html#l00145">hdInit()</a>, <a class="el" href="hd_8c-source.html#l00284">hdRead()</a>, <a class="el" href="lnc_8c-source.html#l00192">lanceProbe()</a>, <a class="el" href="lnc_8c-source.html#l00208">lncInt()</a>, <a class="el" href="ne2k_8c-source.html#l00164">NICtoPC()</a>, <a class="el" href="pci_8c-source.html#l00182">pciRead()</a>, <a class="el" href="lnc_8c-source.html#l00098">readBcr()</a>, and <a class="el" href="lnc_8c-source.html#l00088">readCsr()</a>. </div> </div><p> <a class="anchor" name="8acc1a06073db2e7b92ffbd00fbd0cf1"></a><!-- doxytag: member="io.h::outportByte" ref="8acc1a06073db2e7b92ffbd00fbd0cf1" args="(unsigned int, unsigned char)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void outportByte </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>port</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned char </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> outputut one byte to specified port <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>port</em> </td><td>address of port for writing </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>byte to output to port </td></tr> </table> </dl> <p> Definition at line <a class="el" href="io_8c-source.html#l00073">73</a> of file <a class="el" href="io_8c-source.html">io.c</a>. <p> Referenced by <a class="el" href="dma_8c-source.html#l00059">_dmaXfer()</a>, <a class="el" href="idt_8c-source.html#l00281">_int13()</a>, <a class="el" href="atkbd_8c-source.html#l00203">atkbd_scan()</a>, <a class="el" href="video_8c-source.html#l00040">backSpace()</a>, <a class="el" href="smp_8c-source.html#l00137">c_ap_boot()</a>, <a class="el" href="video_8c-source.html#l00115">clearScreen()</a>, <a class="el" href="vmm__memory_8c-source.html#l00104">countMemory()</a>, <a class="el" href="ne2k_8c-source.html#l00223">dp_recv()</a>, <a class="el" href="fdc_8c-source.html#l00129">fdcRw()</a>, <a class="el" href="fdc_8c-source.html#l00098">floppyIsrhndlr()</a>, <a class="el" href="ne2k_8c-source.html#l00279">getblock()</a>, <a class="el" href="hd_8c-source.html#l00145">hdInit()</a>, <a class="el" href="hd_8c-source.html#l00284">hdRead()</a>, <a class="el" href="hd_8c-source.html#l00222">hdWrite()</a>, <a class="el" href="8259_8c-source.html#l00042">i8259_init()</a>, <a class="el" href="8259_8c-source.html#l00081">irqDisable()</a>, <a class="el" href="8259_8c-source.html#l00067">irqEnable()</a>, <a class="el" href="mouse_8c-source.html#l00059">kbdWrite()</a>, <a class="el" href="atkbd_8c-source.html#l00216">keyboardHandler()</a>, <a class="el" href="video_8c-source.html#l00062">kprint()</a>, <a class="el" href="lnc_8c-source.html#l00208">lncInt()</a>, <a class="el" href="fdc_8c-source.html#l00207">motorOn()</a>, <a class="el" href="mouse_8c-source.html#l00141">mouseHandler()</a>, <a class="el" href="mouse_8c-source.html#l00094">mouseInit()</a>, <a class="el" href="ne2k_8c-source.html#l00070">ne2k_init()</a>, <a class="el" href="ne2k_8c-source.html#l00191">ne2kHandler()</a>, <a class="el" href="ne2k_8c-source.html#l00164">NICtoPC()</a>, <a class="el" href="pci_8c-source.html#l00210">pciWrite()</a>, <a class="el" href="ne2k_8c-source.html#l00115">PCtoNIC()</a>, <a class="el" href="pit_8c-source.html#l00064">pit_init()</a>, <a class="el" href="fdc_8c-source.html#l00288">reset()</a>, <a class="el" href="fdc_8c-source.html#l00103">sendByte()</a>, <a class="el" href="atkbd_8c-source.html#l00321">setLED()</a>, <a class="el" href="systemtask_8c-source.html#l00048">systemTask()</a>, <a class="el" href="tty_8c-source.html#l00087">tty_change()</a>, <a class="el" href="tty_8c-source.html#l00042">tty_init()</a>, and <a class="el" href="tty_8c-source.html#l00118">tty_print()</a>. </div> </div><p> <a class="anchor" name="f0c1dd5717007bf73b6c5119dfe7eaf2"></a><!-- doxytag: member="io.h::outportByteP" ref="f0c1dd5717007bf73b6c5119dfe7eaf2" args="(unsigned int port, unsigned char value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void outportByteP </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>port</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned char </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> outputut one byte to specified port with a delay <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>port</em> </td><td>address of port for writing </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>byte to output to port </td></tr> </table> </dl> <p> Definition at line <a class="el" href="io_8c-source.html#l00088">88</a> of file <a class="el" href="io_8c-source.html">io.c</a>. <p> Referenced by <a class="el" href="pit_8c-source.html#l00064">pit_init()</a>, and <a class="el" href="time_8c-source.html#l00051">timeCmosRead()</a>. </div> </div><p> <a class="anchor" name="2e2ad8d744ae4b35ea37d39dcfea1296"></a><!-- doxytag: member="io.h::outportDWord" ref="2e2ad8d744ae4b35ea37d39dcfea1296" args="(unsigned int port, unsigned long value)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void outportDWord </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>port</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned long </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> outputut one double word to specified port <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>port</em> </td><td>address of port for writing </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>double word to output to port </td></tr> </table> </dl> <p> Definition at line <a class="el" href="io_8c-source.html#l00119">119</a> of file <a class="el" href="io_8c-source.html">io.c</a>. <p> Referenced by <a class="el" href="pci_8c-source.html#l00182">pciRead()</a>, and <a class="el" href="pci_8c-source.html#l00210">pciWrite()</a>. </div> </div><p> <a class="anchor" name="243f6b6d22cc5948908b764d58efc2b0"></a><!-- doxytag: member="io.h::outportWord" ref="243f6b6d22cc5948908b764d58efc2b0" args="(unsigned int, unsigned short)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void outportWord </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>port</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned short </td> <td class="paramname"> <em>value</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> outputut one word to specified port <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>port</em> </td><td>address of port for writing </td></tr> <tr><td valign="top"></td><td valign="top"><em>value</em> </td><td>word to output to port </td></tr> </table> </dl> <p> Definition at line <a class="el" href="io_8c-source.html#l00104">104</a> of file <a class="el" href="io_8c-source.html">io.c</a>. <p> Referenced by <a class="el" href="idt_8c-source.html#l00281">_int13()</a>, <a class="el" href="hd_8c-source.html#l00222">hdWrite()</a>, <a class="el" href="lnc_8c-source.html#l00208">lncInt()</a>, <a class="el" href="pci_8c-source.html#l00210">pciWrite()</a>, <a class="el" href="ne2k_8c-source.html#l00115">PCtoNIC()</a>, <a class="el" href="lnc_8c-source.html#l00098">readBcr()</a>, <a class="el" href="lnc_8c-source.html#l00088">readCsr()</a>, <a class="el" href="lnc_8c-source.html#l00093">writeBcr()</a>, and <a class="el" href="lnc_8c-source.html#l00083">writeCsr()</a>. </div> </div><p> <hr size="1"><address style="align: right;"><small>Generated on Fri Dec 15 11:20:42 2006 for UbixOS V2 by <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>