<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Ubixos: smp.h Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.3 --> <h1>smp.h</h1><a href="smp_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*****************************************************************************************</span> 00002 <span class="comment"> Copyright (c) 2002 The UbixOS Project</span> 00003 <span class="comment"> All rights reserved.</span> 00004 <span class="comment"></span> 00005 <span class="comment">Redistribution and use in source and binary forms, with or without modification, are</span> 00006 <span class="comment">permitted provided that the following conditions are met:</span> 00007 <span class="comment"></span> 00008 <span class="comment">Redistributions of source code must retain the above copyright notice, this list of</span> 00009 <span class="comment">conditions, the following disclaimer and the list of authors. Redistributions in binary</span> 00010 <span class="comment">form must reproduce the above copyright notice, this list of conditions, the following</span> 00011 <span class="comment">disclaimer and the list of authors in the documentation and/or other materials provided</span> 00012 <span class="comment">with the distribution. Neither the name of the UbixOS Project nor the names of its</span> 00013 <span class="comment">contributors may be used to endorse or promote products derived from this software</span> 00014 <span class="comment">without specific prior written permission.</span> 00015 <span class="comment"></span> 00016 <span class="comment">THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY</span> 00017 <span class="comment">EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF</span> 00018 <span class="comment">MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL</span> 00019 <span class="comment">THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span> 00020 <span class="comment">SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT</span> 00021 <span class="comment">OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)</span> 00022 <span class="comment">HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR</span> 00023 <span class="comment">TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span> 00024 <span class="comment">SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span> 00025 <span class="comment"></span> 00026 <span class="comment"> $Id$</span> 00027 <span class="comment"></span> 00028 <span class="comment">*****************************************************************************************/</span> 00029 00030 <span class="preprocessor">#ifndef _SMP_H</span> 00031 <span class="preprocessor"></span><span class="preprocessor">#define _SMP_H</span> 00032 <span class="preprocessor"></span> 00033 <span class="preprocessor">#include <<a class="code" href="types_8h.html">ubixos/types.h</a>></span> 00034 <a name="l00036"></a><a class="code" href="structcpuinfo__t.html">00036</a> <span class="keyword">struct </span><a class="code" href="structcpuinfo__t.html">cpuinfo_t</a> { <a name="l00037"></a><a class="code" href="structcpuinfo__t.html#o0">00037</a> <a class="code" href="types_8h.html#a1">uInt8</a> <a class="code" href="structcpuinfo__t.html#o0">id</a>; <a name="l00038"></a><a class="code" href="structcpuinfo__t.html#o1">00038</a> <a class="code" href="types_8h.html#a1">uInt8</a> <a class="code" href="structcpuinfo__t.html#o1">ok</a>; <a name="l00039"></a><a class="code" href="structcpuinfo__t.html#o3">00039</a> <a class="code" href="types_8h.html#a1">uInt8</a> <a class="code" href="structcpuinfo__t.html#o2">apic_id</a>,<a class="code" href="structcpuinfo__t.html#o3">apic_ver</a>; <a name="l00040"></a><a class="code" href="structcpuinfo__t.html#o4">00040</a> <a class="code" href="types_8h.html#a3">uInt32</a> <a class="code" href="structcpuinfo__t.html#o4">signature</a>; <a name="l00041"></a><a class="code" href="structcpuinfo__t.html#o5">00041</a> <a class="code" href="types_8h.html#a3">uInt32</a> <a class="code" href="structcpuinfo__t.html#o5">feature</a>; <a name="l00042"></a><a class="code" href="structcpuinfo__t.html#o6">00042</a> <a class="code" href="types_8h.html#a3">uInt32</a> <a class="code" href="structcpuinfo__t.html#o6">max</a>; <a name="l00043"></a><a class="code" href="structcpuinfo__t.html#o7">00043</a> <span class="keywordtype">char</span> <a class="code" href="structcpuinfo__t.html#o7">brand</a>[49]; <a name="l00044"></a><a class="code" href="structcpuinfo__t.html#o8">00044</a> <span class="keywordtype">char</span> <a class="code" href="structcpuinfo__t.html#o8">ident</a>[17]; 00045 }; 00046 00048 <span class="keywordtype">void</span> <a class="code" href="smp_8h.html#a0">smpInit</a>(); 00050 <span class="keywordtype">void</span> <a class="code" href="smp_8h.html#a1">cpuidDetect</a>(); 00051 <a class="code" href="types_8h.html#a1">uInt8</a> <a class="code" href="smp_8h.html#a2">cpuInfo</a>(); 00053 <a class="code" href="types_8h.html#a3">uInt32</a> <a class="code" href="smp_8h.html#a3">getEflags</a>(); 00055 <span class="keywordtype">void</span> <a class="code" href="smp_8h.html#a4">setEflags</a>(uInt32); 00057 <span class="keywordtype">void</span> <a class="code" href="smp_8h.html#a5">cpuid</a>(uInt32,uInt32 *); 00058 <span class="keywordtype">void</span> <a class="code" href="smp_8h.html#a6">apicMagic</a>(); 00059 00060 <span class="preprocessor">#endif</span> 00061 <span class="preprocessor"></span> 00062 <span class="comment">/***</span> 00063 <span class="comment"> END</span> 00064 <span class="comment"> ***/</span> 00065 </pre></div><hr size="1"><address style="align: right;"><small>Generated on Sat May 8 09:28:18 2004 for Ubixos by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> </body> </html>