\hypertarget{machdep_8h_source}{}\doxysection{machdep.\+h}
\label{machdep_8h_source}\index{dev/ce/machdep.h@{dev/ce/machdep.h}}
\mbox{\hyperlink{machdep_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00002}00002 \textcolor{comment}{ * Cronyx DDK: platform dependent definitions.}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (C) 1998-\/1999 Cronyx Engineering}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00005}00005 \textcolor{comment}{ * Author: Alexander Kvitchenko, <aak@cronyx.ru>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00007}00007 \textcolor{comment}{ * Copyright (C) 2001-\/2003 Cronyx Engineering.}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00008}00008 \textcolor{comment}{ * Author: Roman Kurakin, <rik@cronyx.ru>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00009}00009 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00010}00010 \textcolor{comment}{ * This software is distributed with NO WARRANTIES, not even the implied}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00011}00011 \textcolor{comment}{ * warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00012}00012 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00013}00013 \textcolor{comment}{ * Authors grant any other persons or organisations permission to use}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00014}00014 \textcolor{comment}{ * or modify this software as long as this message is kept with the software,}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00015}00015 \textcolor{comment}{ * all derivative works or modified versions.}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00016}00016 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00017}00017 \textcolor{comment}{ * Cronyx Id: machdep.h,v 1.3.4.3 2003/11/27 14:21:58 rik Exp \$}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00018}00018 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00019}00019 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00020}00020 }
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00021}00021 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00022}00022 \textcolor{comment}{ * DOS (Borland Turbo C++ 1.0)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00023}00023 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00024}00024 \textcolor{preprocessor}{\#if defined (MSDOS) || defined (\_\_MSDOS\_\_)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00025}00025 \textcolor{preprocessor}{\#   include <dos.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00026}00026 \textcolor{preprocessor}{\#   include <string.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00027}00027 \textcolor{preprocessor}{\#   define inb(port)            inportb(port)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00028}00028 \textcolor{preprocessor}{\#   define inw(port)            inport(port)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00029}00029 \textcolor{preprocessor}{\#   define outb(port,b)         outportb(port,b)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00030}00030 \textcolor{preprocessor}{\#   define outw(port,w)         outport(port,w)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00031}00031 \textcolor{preprocessor}{\#   define GETTICKS()           biostime(0,0L)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00032}00032 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00033}00033 }
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00034}00034 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00035}00035 \textcolor{comment}{ * Windows NT}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00036}00036 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00037}00037 \textcolor{preprocessor}{\#ifdef NDIS\_MINIPORT\_DRIVER}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00038}00038 \textcolor{preprocessor}{\#   include <string.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00039}00039 \textcolor{preprocessor}{\#   define inb(port)            inp((unsigned short)(port))}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00040}00040 \textcolor{preprocessor}{\#   define inw(port)            inpw((unsigned short)(port))}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00041}00041 \textcolor{preprocessor}{\#   define outb(port,b)         outp((unsigned short)(port),b)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00042}00042 \textcolor{preprocessor}{\#   define outw(port,w)         outpw((unsigned short)(port),(unsigned short)(w))}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00043}00043 \textcolor{preprocessor}{\#pragma warning (disable: 4761)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00044}00044 \textcolor{preprocessor}{\#pragma warning (disable: 4242)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00045}00045 \textcolor{preprocessor}{\#pragma warning (disable: 4244)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00046}00046 \textcolor{preprocessor}{\#define ulong64                 unsigned \_\_int64}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00047}00047 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00048}00048 }
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00049}00049 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00050}00050 \textcolor{comment}{ * Linux}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00051}00051 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00052}00052 \textcolor{preprocessor}{\#ifdef \_\_linux\_\_}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00053}00053 \textcolor{preprocessor}{\#   undef REALLY\_SLOW\_IO}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00054}00054 \textcolor{preprocessor}{\#   include <asm/io.h>}          \textcolor{comment}{/* should swap outb() arguments */}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00055}00055 \textcolor{preprocessor}{\#   include <linux/string.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00056}00056 \textcolor{preprocessor}{\#   include <linux/delay.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00057}00057     \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keywordtype}{void} \_\_ddk\_outb (\textcolor{keywordtype}{unsigned} port, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} \textcolor{keywordtype}{byte})}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00058}00058     \{ outb (\textcolor{keywordtype}{byte}, port); \}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00059}00059     \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keywordtype}{void} \_\_ddk\_outw (\textcolor{keywordtype}{unsigned} port, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{short} word)}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00060}00060     \{ outw (word, port); \}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00061}00061 \textcolor{preprocessor}{\#   undef outb}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00062}00062 \textcolor{preprocessor}{\#   undef outw}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00063}00063 \textcolor{preprocessor}{\#   define outb(port,val)       \_\_ddk\_outb(port, val)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00064}00064 \textcolor{preprocessor}{\#   define outw(port,val)       \_\_ddk\_outw(port, val)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00065}00065 \textcolor{preprocessor}{\#   define GETTICKS()           (jiffies * 200 / 11 / HZ)}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00066}00066 \textcolor{preprocessor}{\#else}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00067}00067 }
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00068}00068 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00069}00069 \textcolor{comment}{ * FreeBSD and BSD/OS}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00070}00070 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00071}00071 \textcolor{preprocessor}{\#ifdef \_\_FreeBSD\_\_}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00072}00072 \textcolor{preprocessor}{\#   include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00073}00073 \textcolor{preprocessor}{\#   include <machine/cpufunc.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00074}00074 \textcolor{preprocessor}{\#   include <sys/libkern.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00075}00075 \textcolor{preprocessor}{\#   include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00076}\mbox{\hyperlink{machdep_8h_ac63f38fdb993a58707d801c288e38c16}{00076}} \textcolor{preprocessor}{\#   define port\_t int}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00077}00077 }
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00078}00078 \textcolor{preprocessor}{\#ifndef \_SYS\_CDEFS\_H\_}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00079}00079 \textcolor{preprocessor}{\#error this file needs sys/cdefs.h as a prerequisite}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00080}00080 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00081}00081 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00082}00082 }
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00083}00083 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00084}00084 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00085}00085 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00086}00086 }
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00087}00087 \textcolor{preprocessor}{\#ifndef inline}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00088}00088 \textcolor{preprocessor}{\#   ifdef \_\_CC\_SUPPORTS\_\_\_INLINE\_\_}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00089}00089 \textcolor{preprocessor}{\#      define inline \_\_inline\_\_}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00090}00090 \textcolor{preprocessor}{\#   else}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00091}\mbox{\hyperlink{machdep_8h_a00d24c7231be28dbaf71f5408f30e44c}{00091}} \textcolor{preprocessor}{\#      define inline }}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00092}00092 \textcolor{preprocessor}{\#   endif}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00093}00093 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00094}00094 }
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00095}00095 \textcolor{preprocessor}{\#ifndef ulong64}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00096}\mbox{\hyperlink{machdep_8h_a69469ee712c750d897f55d3d52e74d0b}{00096}} \textcolor{preprocessor}{\#define ulong64 unsigned long long}}
\DoxyCodeLine{\Hypertarget{machdep_8h_source_l00097}00097 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
