Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > cc8cc92380afe5f7d24b47e42f17406c > files > 553

lib64hd-devel-13.57-1mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>libhd: types.h Source File</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.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>types.h</h1><a href="types_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment">*</span>
<a name="l00003"></a>00003 <span class="comment">*                                               Realmode X86 Emulator Library</span>
<a name="l00004"></a>00004 <span class="comment">*</span>
<a name="l00005"></a>00005 <span class="comment">*               Copyright (C) 1996-1999 SciTech Software, Inc.</span>
<a name="l00006"></a>00006 <span class="comment">*                                    Copyright (C) David Mosberger-Tang</span>
<a name="l00007"></a>00007 <span class="comment">*                                          Copyright (C) 1999 Egbert Eich</span>
<a name="l00008"></a>00008 <span class="comment">*</span>
<a name="l00009"></a>00009 <span class="comment">*  ========================================================================</span>
<a name="l00010"></a>00010 <span class="comment">*</span>
<a name="l00011"></a>00011 <span class="comment">*  Permission to use, copy, modify, distribute, and sell this software and</span>
<a name="l00012"></a>00012 <span class="comment">*  its documentation for any purpose is hereby granted without fee,</span>
<a name="l00013"></a>00013 <span class="comment">*  provided that the above copyright notice appear in all copies and that</span>
<a name="l00014"></a>00014 <span class="comment">*  both that copyright notice and this permission notice appear in</span>
<a name="l00015"></a>00015 <span class="comment">*  supporting documentation, and that the name of the authors not be used</span>
<a name="l00016"></a>00016 <span class="comment">*  in advertising or publicity pertaining to distribution of the software</span>
<a name="l00017"></a>00017 <span class="comment">*  without specific, written prior permission.  The authors makes no</span>
<a name="l00018"></a>00018 <span class="comment">*  representations about the suitability of this software for any purpose.</span>
<a name="l00019"></a>00019 <span class="comment">*  It is provided "as is" without express or implied warranty.</span>
<a name="l00020"></a>00020 <span class="comment">*</span>
<a name="l00021"></a>00021 <span class="comment">*  THE AUTHORS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,</span>
<a name="l00022"></a>00022 <span class="comment">*  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO</span>
<a name="l00023"></a>00023 <span class="comment">*  EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR</span>
<a name="l00024"></a>00024 <span class="comment">*  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF</span>
<a name="l00025"></a>00025 <span class="comment">*  USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR</span>
<a name="l00026"></a>00026 <span class="comment">*  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR</span>
<a name="l00027"></a>00027 <span class="comment">*  PERFORMANCE OF THIS SOFTWARE.</span>
<a name="l00028"></a>00028 <span class="comment">*</span>
<a name="l00029"></a>00029 <span class="comment">*  ========================================================================</span>
<a name="l00030"></a>00030 <span class="comment">*</span>
<a name="l00031"></a>00031 <span class="comment">* Language:             ANSI C</span>
<a name="l00032"></a>00032 <span class="comment">* Environment:  Any</span>
<a name="l00033"></a>00033 <span class="comment">* Developer:    Kendall Bennett</span>
<a name="l00034"></a>00034 <span class="comment">*</span>
<a name="l00035"></a>00035 <span class="comment">* Description:  Header file for x86 emulator type definitions.</span>
<a name="l00036"></a>00036 <span class="comment">*</span>
<a name="l00037"></a>00037 <span class="comment">****************************************************************************/</span>
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="comment">/* $XFree86: xc/extras/x86emu/include/x86emu/types.h,v 1.6 2003/06/12 14:12:26 eich Exp $ */</span>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="preprocessor">#ifndef __X86EMU_TYPES_H</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#define __X86EMU_TYPES_H</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span>
<a name="l00044"></a>00044 <span class="preprocessor">#ifndef IN_MODULE</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#include &lt;sys/types.h&gt;</span>
<a name="l00046"></a>00046 <span class="preprocessor">#endif</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span>
<a name="l00048"></a>00048 <span class="comment">/*</span>
<a name="l00049"></a>00049 <span class="comment"> * The following kludge is an attempt to work around typedef conflicts with</span>
<a name="l00050"></a>00050 <span class="comment"> * &lt;sys/types.h&gt;.</span>
<a name="l00051"></a>00051 <span class="comment"> */</span>
<a name="l00052"></a><a class="code" href="types_8h.html#f3b86d961da0a3575b4f99c9ffaf01fd">00052</a> <span class="preprocessor">#define u8   x86emuu8</span>
<a name="l00053"></a><a class="code" href="types_8h.html#2b19d553290a8d4a083d3c03280ea800">00053</a> <span class="preprocessor"></span><span class="preprocessor">#define u16  x86emuu16</span>
<a name="l00054"></a><a class="code" href="types_8h.html#332ccd83dfe2973e6cb2b61e4f3ab7e6">00054</a> <span class="preprocessor"></span><span class="preprocessor">#define u32  x86emuu32</span>
<a name="l00055"></a><a class="code" href="types_8h.html#969c7c1ebb4f70581e040a3034b14ee0">00055</a> <span class="preprocessor"></span><span class="preprocessor">#define u64  x86emuu64</span>
<a name="l00056"></a><a class="code" href="types_8h.html#543c9bcb4e7b83b40dd6ae7a024a63d2">00056</a> <span class="preprocessor"></span><span class="preprocessor">#define s8   x86emus8</span>
<a name="l00057"></a><a class="code" href="types_8h.html#d6aafede8a0cfa326715005e57f9d9f5">00057</a> <span class="preprocessor"></span><span class="preprocessor">#define s16  x86emus16</span>
<a name="l00058"></a><a class="code" href="types_8h.html#f0938d8dd13b4f7a595e78aacafd3323">00058</a> <span class="preprocessor"></span><span class="preprocessor">#define s32  x86emus32</span>
<a name="l00059"></a><a class="code" href="types_8h.html#a2049b7d943f40b2facb60b17e8a7199">00059</a> <span class="preprocessor"></span><span class="preprocessor">#define s64  x86emus64</span>
<a name="l00060"></a><a class="code" href="types_8h.html#d46b2ebcd4c426b06cda147ddc1001e7">00060</a> <span class="preprocessor"></span><span class="preprocessor">#define uint x86emuuint</span>
<a name="l00061"></a><a class="code" href="types_8h.html#e111dbb477e82267e6f59788dea8d1c4">00061</a> <span class="preprocessor"></span><span class="preprocessor">#define sint x86emusint</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00063"></a>00063 <span class="comment">/*---------------------- Macros and type definitions ----------------------*/</span>
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">/* Currently only for Linux/32bit */</span>
<a name="l00066"></a>00066 <span class="preprocessor">#undef  __HAS_LONG_LONG__</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#if defined(__GNUC__) &amp;&amp; !defined(NO_LONG_LONG)</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#define __HAS_LONG_LONG__</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>
<a name="l00071"></a>00071 <span class="comment">/* Taken from Xmd.h */</span>
<a name="l00072"></a>00072 <span class="preprocessor">#undef NUM32</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span><span class="preprocessor">#if defined (_LP64) || \</span>
<a name="l00074"></a>00074 <span class="preprocessor">    defined(__alpha) || defined(__alpha__) || \</span>
<a name="l00075"></a>00075 <span class="preprocessor">    defined(__ia64__) || defined(ia64) || \</span>
<a name="l00076"></a>00076 <span class="preprocessor">    defined(__sparc64__) || \</span>
<a name="l00077"></a>00077 <span class="preprocessor">    defined(__s390x__) || \</span>
<a name="l00078"></a>00078 <span class="preprocessor">    (defined(__hppa__) &amp;&amp; defined(__LP64)) || \</span>
<a name="l00079"></a>00079 <span class="preprocessor">    defined(__AMD64__) || defined(AMD64) || \</span>
<a name="l00080"></a>00080 <span class="preprocessor">    (defined(__sgi) &amp;&amp; (_MIPS_SZLONG == 64))</span>
<a name="l00081"></a>00081 <span class="preprocessor"></span><span class="preprocessor">#define NUM32 int</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00083"></a><a class="code" href="types_8h.html#4db94c4cd9190d1e392ad3a5dc556ac9">00083</a> <span class="preprocessor"></span><span class="preprocessor">#define NUM32 long</span>
<a name="l00084"></a>00084 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00085"></a>00085 <span class="preprocessor"></span>
<a name="l00086"></a><a class="code" href="types_8h.html#b9f930ae0484417a1883fd3f7cdb490e">00086</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>           <a class="code" href="net_8c.html#f3b86d961da0a3575b4f99c9ffaf01fd">u8</a>;
<a name="l00087"></a><a class="code" href="types_8h.html#8aa9149a22317014c683c48cebd8cfef">00087</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>          <a class="code" href="net_8c.html#2b19d553290a8d4a083d3c03280ea800">u16</a>;
<a name="l00088"></a><a class="code" href="types_8h.html#449a74b72ed931d627eca7efcc6f8c9d">00088</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <a class="code" href="types_8h.html#4db94c4cd9190d1e392ad3a5dc556ac9">NUM32</a>          <a class="code" href="net_8c.html#332ccd83dfe2973e6cb2b61e4f3ab7e6">u32</a>;
<a name="l00089"></a>00089 <span class="preprocessor">#ifdef __HAS_LONG_LONG__</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>      <a class="code" href="group__libhdInternals.html#g969c7c1ebb4f70581e040a3034b14ee0">u64</a>;
<a name="l00091"></a>00091 <span class="preprocessor">#endif</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span>
<a name="l00093"></a><a class="code" href="types_8h.html#2ff401e087cf786c38a6812723e94473">00093</a> <span class="keyword">typedef</span> <span class="keywordtype">char</span>                            <a class="code" href="types_8h.html#543c9bcb4e7b83b40dd6ae7a024a63d2">s8</a>;
<a name="l00094"></a><a class="code" href="types_8h.html#2e9bf6983da73775aa86158c825bf777">00094</a> <span class="keyword">typedef</span> <span class="keywordtype">short</span>                           <a class="code" href="types_8h.html#d6aafede8a0cfa326715005e57f9d9f5">s16</a>;
<a name="l00095"></a><a class="code" href="types_8h.html#aa3c7a2a1c63b422c082a1fd7efa1941">00095</a> <span class="keyword">typedef</span> <a class="code" href="types_8h.html#4db94c4cd9190d1e392ad3a5dc556ac9">NUM32</a>                           <a class="code" href="types_8h.html#f0938d8dd13b4f7a595e78aacafd3323">s32</a>;
<a name="l00096"></a>00096 <span class="preprocessor">#ifdef __HAS_LONG_LONG__</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="keyword">typedef</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>                       <a class="code" href="types_8h.html#a2049b7d943f40b2facb60b17e8a7199">s64</a>;
<a name="l00098"></a>00098 <span class="preprocessor">#endif</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span>
<a name="l00100"></a><a class="code" href="types_8h.html#91ad9478d81a7aaf2593e8d9c3d06a14">00100</a> <span class="keyword">typedef</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>                    <a class="code" href="types_8h.html#d46b2ebcd4c426b06cda147ddc1001e7">uint</a>;
<a name="l00101"></a><a class="code" href="types_8h.html#750c55362283b68707bfe58412a28155">00101</a> <span class="keyword">typedef</span> <span class="keywordtype">int</span>                             <a class="code" href="types_8h.html#e111dbb477e82267e6f59788dea8d1c4">sint</a>;
<a name="l00102"></a>00102 
<a name="l00103"></a><a class="code" href="types_8h.html#3764e0c24dcdc600327aeefea415f531">00103</a> <span class="keyword">typedef</span> <a class="code" href="net_8c.html#2b19d553290a8d4a083d3c03280ea800">u16</a> <a class="code" href="types_8h.html#3764e0c24dcdc600327aeefea415f531">X86EMU_pioAddr</a>;
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="preprocessor">#undef NUM32</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span>
<a name="l00107"></a>00107 <span class="preprocessor">#endif  </span><span class="comment">/* __X86EMU_TYPES_H */</span>
</pre></div></body></html>