<!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/kernel/tty.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 Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</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_7efffd2b1fae7bb6f2aa85845c863494.html">kernel</a></div>
<h1>tty.c File Reference</h1>
<p>
<code>#include <<a class="el" href="tty_8h-source.html">ubixos/tty.h</a>></code><br>
<code>#include <<a class="el" href="kpanic_8h-source.html">ubixos/kpanic.h</a>></code><br>
<code>#include <<a class="el" href="spinlock_8h-source.html">ubixos/spinlock.h</a>></code><br>
<code>#include <<a class="el" href="kprintf_8h-source.html">lib/kprintf.h</a>></code><br>
<code>#include <<a class="el" href="kmalloc_8h-source.html">lib/kmalloc.h</a>></code><br>
<code>#include <<a class="el" href="io_8h-source.html">sys/io.h</a>></code><br>
<code>#include <<a class="el" href="string_8h-source.html">string.h</a>></code><br>
<p>
<a href="tty_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 </td><td class="memItemRight" valign="bottom"><a class="el" href="tty_8c.html#52a11053c56546a0dcb568942ada9c72">tty_change</a> (<a class="el" href="include_2ubixos_2types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> tty)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structtty__termNode.html">tty_term</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="tty_8c.html#360dbff4aa208682a9943640a8696d66">tty_find</a> (<a class="el" href="include_2ubixos_2types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> tty)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="tty_8c.html#ab365abb615be7027fa0bdb2c09569cb">tty_init</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="tty_8c.html#b8811ced5425e47e4c5b0c8f086700ca">tty_print</a> (char *string, <a class="el" href="structtty__termNode.html">tty_term</a> *term)</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="structtty__termNode.html">tty_term</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="tty_8c.html#71910aae9a65de1b7375f236908f8a22">terms</a> = 0x0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="structtty__termNode.html">tty_term</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="tty_8c.html#afbb5679104334c34d7691b2de7d7a86">tty_foreground</a> = 0x0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="tty_8c.html#00b6c183f536a95df28a74c26816dc08">tty_spinLock</a> = SPIN_LOCK_INITIALIZER</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="52a11053c56546a0dcb568942ada9c72"></a><!-- doxytag: member="tty.c::tty_change" ref="52a11053c56546a0dcb568942ada9c72" args="(uInt16 tty)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int tty_change </td>
<td>(</td>
<td class="paramtype"><a class="el" href="include_2ubixos_2types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> </td>
<td class="paramname"> <em>tty</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="tty_8c-source.html#l00087">87</a> of file <a class="el" href="tty_8c-source.html">tty.c</a>.
<p>
References <a class="el" href="kpanic_8c-source.html#l00047">kpanic()</a>, <a class="el" href="string_8c-source.html#l00070">memcpy()</a>, <a class="el" href="io_8c-source.html#l00073">outportByte()</a>, <a class="el" href="tty_8c-source.html#l00038">terms</a>, <a class="el" href="tty_8h-source.html#l00038">tty_termNode::tty_buffer</a>, <a class="el" href="tty_8c-source.html#l00039">tty_foreground</a>, <a class="el" href="tty_8h-source.html#l00035">TTY_MAX_TERMS</a>, <a class="el" href="tty_8h-source.html#l00039">tty_termNode::tty_pointer</a>, <a class="el" href="tty_8h-source.html#l00041">tty_termNode::tty_x</a>, and <a class="el" href="tty_8h-source.html#l00042">tty_termNode::tty_y</a>.
<p>
Referenced by <a class="el" href="atkbd_8c-source.html#l00215">keyboardHandler()</a>.
</div>
</div><p>
<a class="anchor" name="360dbff4aa208682a9943640a8696d66"></a><!-- doxytag: member="tty.c::tty_find" ref="360dbff4aa208682a9943640a8696d66" args="(uInt16 tty)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structtty__termNode.html">tty_term</a>* tty_find </td>
<td>(</td>
<td class="paramtype"><a class="el" href="include_2ubixos_2types_8h.html#3b65128d2644e9b80cec9a69bfa7e094">uInt16</a> </td>
<td class="paramname"> <em>tty</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="tty_8c-source.html#l00170">170</a> of file <a class="el" href="tty_8c-source.html">tty.c</a>.
<p>
References <a class="el" href="tty_8c-source.html#l00038">terms</a>.
<p>
Referenced by <a class="el" href="exec_8c-source.html#l00142">execFile()</a>, <a class="el" href="video_8c-source.html#l00062">kprint()</a>, and <a class="el" href="systemtask_8c-source.html#l00048">systemTask()</a>.
</div>
</div><p>
<a class="anchor" name="ab365abb615be7027fa0bdb2c09569cb"></a><!-- doxytag: member="tty.c::tty_init" ref="ab365abb615be7027fa0bdb2c09569cb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int tty_init </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="tty_8c-source.html#l00042">42</a> of file <a class="el" href="tty_8c-source.html">tty.c</a>.
<p>
References <a class="el" href="io_8c-source.html#l00039">inportByte()</a>, <a class="el" href="kmalloc_8c-source.html#l00248">kmalloc()</a>, <a class="el" href="kpanic_8c-source.html#l00047">kpanic()</a>, <a class="el" href="kprintf_8c-source.html#l00038">kprintf()</a>, <a class="el" href="io_8c-source.html#l00073">outportByte()</a>, <a class="el" href="tty_8c-source.html#l00038">terms</a>, <a class="el" href="tty_8h-source.html#l00038">tty_termNode::tty_buffer</a>, <a class="el" href="tty_8h-source.html#l00040">tty_termNode::tty_colour</a>, <a class="el" href="tty_8c-source.html#l00039">tty_foreground</a>, <a class="el" href="tty_8h-source.html#l00035">TTY_MAX_TERMS</a>, <a class="el" href="tty_8h-source.html#l00039">tty_termNode::tty_pointer</a>, <a class="el" href="tty_8h-source.html#l00041">tty_termNode::tty_x</a>, and <a class="el" href="tty_8h-source.html#l00042">tty_termNode::tty_y</a>.
</div>
</div><p>
<a class="anchor" name="b8811ced5425e47e4c5b0c8f086700ca"></a><!-- doxytag: member="tty.c::tty_print" ref="b8811ced5425e47e4c5b0c8f086700ca" args="(char *string, tty_term *term)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int tty_print </td>
<td>(</td>
<td class="paramtype">char * </td>
<td class="paramname"> <em>string</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structtty__termNode.html">tty_term</a> * </td>
<td class="paramname"> <em>term</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>
<p>
Definition at line <a class="el" href="tty_8c-source.html#l00118">118</a> of file <a class="el" href="tty_8c-source.html">tty.c</a>.
<p>
References <a class="el" href="io_8c-source.html#l00073">outportByte()</a>, <a class="el" href="spinlock_8c-source.html#l00056">spinLock()</a>, <a class="el" href="spinlock_8c-source.html#l00037">spinUnlock()</a>, <a class="el" href="tty_8h-source.html#l00040">tty_termNode::tty_colour</a>, <a class="el" href="tty_8c-source.html#l00039">tty_foreground</a>, <a class="el" href="tty_8h-source.html#l00039">tty_termNode::tty_pointer</a>, <a class="el" href="tty_8c-source.html#l00040">tty_spinLock</a>, <a class="el" href="tty_8h-source.html#l00041">tty_termNode::tty_x</a>, <a class="el" href="tty_8h-source.html#l00042">tty_termNode::tty_y</a>, and <a class="el" href="start_8S-source.html#l00051">x20</a>.
<p>
Referenced by <a class="el" href="video_8c-source.html#l00062">kprint()</a>, and <a class="el" href="file_8c-source.html#l00049">sysFwrite()</a>.
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="71910aae9a65de1b7375f236908f8a22"></a><!-- doxytag: member="tty.c::terms" ref="71910aae9a65de1b7375f236908f8a22" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structtty__termNode.html">tty_term</a>* <a class="el" href="tty_8c.html#71910aae9a65de1b7375f236908f8a22">terms</a> = 0x0<code> [static]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="tty_8c-source.html#l00038">38</a> of file <a class="el" href="tty_8c-source.html">tty.c</a>.
<p>
Referenced by <a class="el" href="tty_8c-source.html#l00087">tty_change()</a>, <a class="el" href="tty_8c-source.html#l00170">tty_find()</a>, and <a class="el" href="tty_8c-source.html#l00042">tty_init()</a>.
</div>
</div><p>
<a class="anchor" name="afbb5679104334c34d7691b2de7d7a86"></a><!-- doxytag: member="tty.c::tty_foreground" ref="afbb5679104334c34d7691b2de7d7a86" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="structtty__termNode.html">tty_term</a>* <a class="el" href="tty_8c.html#afbb5679104334c34d7691b2de7d7a86">tty_foreground</a> = 0x0 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="tty_8c-source.html#l00039">39</a> of file <a class="el" href="tty_8c-source.html">tty.c</a>.
<p>
Referenced by <a class="el" href="video_8c-source.html#l00040">backSpace()</a>, <a class="el" href="atkbd_8c-source.html#l00328">getch()</a>, <a class="el" href="atkbd_8c-source.html#l00215">keyboardHandler()</a>, <a class="el" href="kpanic_8c-source.html#l00047">kpanic()</a>, <a class="el" href="video_8c-source.html#l00062">kprint()</a>, <a class="el" href="file_8c-source.html#l00059">sysFgetc()</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="00b6c183f536a95df28a74c26816dc08"></a><!-- doxytag: member="tty.c::tty_spinLock" ref="00b6c183f536a95df28a74c26816dc08" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="spinlock_8h.html#a240e9404b4ede1e0d714610080d1176">spinLock_t</a> <a class="el" href="tty_8c.html#00b6c183f536a95df28a74c26816dc08">tty_spinLock</a> = SPIN_LOCK_INITIALIZER<code> [static]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>
Definition at line <a class="el" href="tty_8c-source.html#l00040">40</a> of file <a class="el" href="tty_8c-source.html">tty.c</a>.
<p>
Referenced by <a class="el" href="tty_8c-source.html#l00118">tty_print()</a>.
</div>
</div><p>
<hr size="1"><address style="align: right;"><small>Generated on Sun Dec 3 02:38:09 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>