\hypertarget{mvOs_8h_source}{}\doxysection{mv\+Os.\+h}
\label{mvOs_8h_source}\index{dev/hptmv/mvOs.h@{dev/hptmv/mvOs.h}}
\mbox{\hyperlink{mvOs_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/FreeBSD}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2004-\/2005 HighPoint Technologies, Inc.}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00015}00015 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00016}00016 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00017}00017 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00018}00018 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00019}00019 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00020}00020 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00021}00021 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00022}00022 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00023}00023 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00024}00024 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00025}00025 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00026}00026 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00027}00027 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00028}00028 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00029}00029 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00030}00030 \textcolor{preprocessor}{\#ifndef \_\_INCmvOsBsdh}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00031}00031 \textcolor{preprocessor}{\#define \_\_INCmvOsBsdh}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00033}00033 \textcolor{preprocessor}{\#ifdef DEBUG}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00034}00034 \textcolor{preprocessor}{\#define MV\_DEBUG\_LOG}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00035}00035 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00037}\mbox{\hyperlink{mvOs_8h_ace5e163a7fc7b3e6d76828451f30e9c2}{00037}} \textcolor{preprocessor}{\#define ENABLE\_READ\_AHEAD}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00038}\mbox{\hyperlink{mvOs_8h_ad5e85c7d7192f2c843863000c830b6fa}{00038}} \textcolor{preprocessor}{\#define ENABLE\_WRITE\_CACHE}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00040}00040 \textcolor{comment}{/* Typedefs    */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00041}00041 \textcolor{comment}{/*\#define HPTLIBAPI \_\_attribute\_\_((regparm(0))) */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00042}\mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{00042}} \textcolor{preprocessor}{\#define HPTLIBAPI }}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00043}\mbox{\hyperlink{mvOs_8h_aef060b3456fdcc093a7210a762d5f2ed}{00043}} \textcolor{preprocessor}{\#define FAR}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00044}\mbox{\hyperlink{mvOs_8h_a34bf02eeefc241b4fd43b427a066b809}{00044}} \textcolor{preprocessor}{\#define SS\_SEG}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00045}00045 \textcolor{preprocessor}{\#ifdef FASTCALL}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00046}00046 \textcolor{preprocessor}{\#undef FASTCALL}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00047}00047 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00048}\mbox{\hyperlink{mvOs_8h_a6f671bc94a3e87fcef3b36ec87d34bff}{00048}} \textcolor{preprocessor}{\#define FASTCALL HPTLIBAPI}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00049}\mbox{\hyperlink{mvOs_8h_acb51a7d076a1715f0397d192d1213646}{00049}} \textcolor{preprocessor}{\#define PASCAL HPTLIBAPI}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00050}00050 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00051}\mbox{\hyperlink{mvOs_8h_a5850d5316caf7f4cedd742fdf8cd7c02}{00051}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{short} \mbox{\hyperlink{mvOs_8h_a5850d5316caf7f4cedd742fdf8cd7c02}{USHORT}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00052}\mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{00052}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}  \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00053}\mbox{\hyperlink{mvOs_8h_a06c249fdad80e91872a47b11efbf963a}{00053}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char} *\mbox{\hyperlink{mvOs_8h_a06c249fdad80e91872a47b11efbf963a}{PUCHAR}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00054}\mbox{\hyperlink{mvOs_8h_ac40da190d67829aa8c035e79386c902d}{00054}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{short} *\mbox{\hyperlink{mvOs_8h_ac40da190d67829aa8c035e79386c902d}{PUSHORT}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00055}\mbox{\hyperlink{mvOs_8h_a112e3146cb38b6ee95e64d85842e380a}{00055}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}  \mbox{\hyperlink{mvOs_8h_a112e3146cb38b6ee95e64d85842e380a}{BOOLEAN}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00056}\mbox{\hyperlink{mvOs_8h_a197942eefa7db30960ae396d68339b97}{00056}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{short} \mbox{\hyperlink{mvOs_8h_a197942eefa7db30960ae396d68339b97}{WORD}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00057}\mbox{\hyperlink{mvOs_8h_ac3247c51e4e3de674affb32998e133e2}{00057}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}   \mbox{\hyperlink{mvOs_8h_a36cb3b01d81ffd844bbbfb54003e06ec}{UINT}}, \mbox{\hyperlink{mvOs_8h_ac3247c51e4e3de674affb32998e133e2}{BOOL}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00058}\mbox{\hyperlink{mvOs_8h_a4ae1dab0fb4b072a66584546209e7d58}{00058}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}  \mbox{\hyperlink{mvOs_8h_a4ae1dab0fb4b072a66584546209e7d58}{BYTE}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00059}\mbox{\hyperlink{mvOs_8h_a7573f92a7eaec2f75696c6a57c114e74}{00059}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{void} *\mbox{\hyperlink{mvOs_8h_a2b5e00c0c5a5aa5199ba9f28ec3e8caa}{PVOID}}, *\mbox{\hyperlink{mvOs_8h_a7573f92a7eaec2f75696c6a57c114e74}{LPVOID}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00060}\mbox{\hyperlink{mvOs_8h_ace4c2d81e27f62826d40d0d547b37ea8}{00060}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{void} *\mbox{\hyperlink{mvOs_8h_ace4c2d81e27f62826d40d0d547b37ea8}{ADDRESS}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00061}00061 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00062}\mbox{\hyperlink{mvOs_8h_a9154c0d0c21af4686624543215b4e5f2}{00062}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{int}  \mbox{\hyperlink{mvOs_8h_a9154c0d0c21af4686624543215b4e5f2}{LONG}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00063}\mbox{\hyperlink{mvOs_8h_a4784124618b12f930d1e1d793f1c9624}{00063}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{mvOs_8h_abe09d1bea023be6a07cbadde8e955435}{ULONG}}, *\mbox{\hyperlink{mvOs_8h_a4784124618b12f930d1e1d793f1c9624}{PULONG}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00064}\mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{00064}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}}, *\mbox{\hyperlink{mvOs_8h_ab2736ce439fad5e7eeb01493448ce6a4}{LPDWORD}}, *\mbox{\hyperlink{mvOs_8h_a4acb2f6880407bbe0bea1e45b5b3238d}{PDWORD}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00065}\mbox{\hyperlink{mvOs_8h_ace7c234b7596b607e358262afbbdba00}{00065}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} \mbox{\hyperlink{mvOs_8h_ac87b166e5dce7fa7bf3fa6dee25e1c19}{ULONG\_PTR}}, \mbox{\hyperlink{mvOs_8h_aa628ccda6c4558728bcf298e4170e7bb}{UINT\_PTR}}, \mbox{\hyperlink{mvOs_8h_ace7c234b7596b607e358262afbbdba00}{BUS\_ADDR}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00066}\mbox{\hyperlink{mvOs_8h_a7d8bf24cd82dda3ad8a576ba45a53005}{00066}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{long} \textcolor{keywordtype}{long} \mbox{\hyperlink{mvOs_8h_a7d8bf24cd82dda3ad8a576ba45a53005}{HPT\_U64}}, \mbox{\hyperlink{mvOs_8h_a5ce8093dd5df77304e3d860e3f34c876}{LBA\_T}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00067}00067 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00068}\mbox{\hyperlink{mvOs_8h_a53ce48f8eb489de1c74a7249e747b5b4}{00068}} \textcolor{keyword}{typedef} \textcolor{keyword}{enum} \mbox{\hyperlink{mvOs_8h_a44a430ccaf81b252687aa640db739a6f}{mvBoolean}}\{\mbox{\hyperlink{mvOs_8h_a44a430ccaf81b252687aa640db739a6fafb9a7f785c52178dda91cf943020c359}{MV\_FALSE}}, \mbox{\hyperlink{mvOs_8h_a44a430ccaf81b252687aa640db739a6faa0b6b377d40c650f24230a0be95a1b3c}{MV\_TRUE}}\} \mbox{\hyperlink{mvOs_8h_a53ce48f8eb489de1c74a7249e747b5b4}{MV\_BOOLEAN}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00069}00069 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00070}\mbox{\hyperlink{mvOs_8h_aa93f0eb578d23995850d61f7d61c55c1}{00070}} \textcolor{preprocessor}{\#define FALSE 0}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00071}\mbox{\hyperlink{mvOs_8h_aa8cecfc5c5c054d2875c03e77b7be15d}{00071}} \textcolor{preprocessor}{\#define TRUE  1}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00072}00072 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00073}00073 \textcolor{preprocessor}{\#ifndef NULL}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00074}\mbox{\hyperlink{mvOs_8h_a070d2ce7b6bb7e5c05602aa8c308d0c4}{00074}} \textcolor{preprocessor}{\#define NULL  0}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00075}00075 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00076}00076 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00077}00077 \textcolor{comment}{/* System dependent typedefs */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00078}\mbox{\hyperlink{mvOs_8h_afe95269a0ac8639a8651cd23e569c2e9}{00078}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{void}                    \mbox{\hyperlink{mvOs_8h_afe95269a0ac8639a8651cd23e569c2e9}{MV\_VOID}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00079}\mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{00079}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}    \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00080}\mbox{\hyperlink{mvOs_8h_a0e7911d44520fea5d57da5a0d242e900}{00080}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{short}  \mbox{\hyperlink{mvOs_8h_a0e7911d44520fea5d57da5a0d242e900}{MV\_U16}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00081}\mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{00081}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{char}   \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00082}\mbox{\hyperlink{mvOs_8h_a8e5b7f825ed9e1d3161298def16ae682}{00082}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{void}                    *\mbox{\hyperlink{mvOs_8h_a8e5b7f825ed9e1d3161298def16ae682}{MV\_VOID\_PTR}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00083}\mbox{\hyperlink{mvOs_8h_ad7a960a52378abe19b074c7a823e35af}{00083}} \textcolor{keyword}{typedef} \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}}                    *\mbox{\hyperlink{mvOs_8h_ad7a960a52378abe19b074c7a823e35af}{MV\_U32\_PTR}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00084}\mbox{\hyperlink{mvOs_8h_a56637c4116a245541c97cffa3a427fa5}{00084}} \textcolor{keyword}{typedef} \mbox{\hyperlink{mvOs_8h_a0e7911d44520fea5d57da5a0d242e900}{MV\_U16}}                    *\mbox{\hyperlink{mvOs_8h_a56637c4116a245541c97cffa3a427fa5}{MV\_U16\_PTR}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00085}\mbox{\hyperlink{mvOs_8h_a28f678b9aae32e7c668e5bbd2c3a7639}{00085}} \textcolor{keyword}{typedef} \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}                      *\mbox{\hyperlink{mvOs_8h_a28f678b9aae32e7c668e5bbd2c3a7639}{MV\_U8\_PTR}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00086}\mbox{\hyperlink{mvOs_8h_afaff7732116254efd68f94294b81d732}{00086}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{char}                    *\mbox{\hyperlink{mvOs_8h_afaff7732116254efd68f94294b81d732}{MV\_CHAR\_PTR}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00087}\mbox{\hyperlink{mvOs_8h_a702d7b8dbb12c586bc4ff73f8b281d30}{00087}} \textcolor{keyword}{typedef} \textcolor{keywordtype}{void}                    *\mbox{\hyperlink{mvOs_8h_a702d7b8dbb12c586bc4ff73f8b281d30}{MV\_BUS\_ADDR\_T}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00088}00088 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00089}00089 \textcolor{comment}{/* System dependent macro for flushing CPU write cache */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00090}\mbox{\hyperlink{mvOs_8h_add438b6b504221a1cd7d3c8248d9bee4}{00090}} \textcolor{preprocessor}{\#define MV\_CPU\_WRITE\_BUFFER\_FLUSH()}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00091}00091 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00092}00092 \textcolor{comment}{/* System dependent little endian from / to CPU conversions */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00093}\mbox{\hyperlink{mvOs_8h_a15f35b579d176fd4c61b9c050c4bf6be}{00093}} \textcolor{preprocessor}{\#define MV\_CPU\_TO\_LE16(x)       (x)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00094}\mbox{\hyperlink{mvOs_8h_a74ba68d1f414ed65c044d1c111c115d6}{00094}} \textcolor{preprocessor}{\#define MV\_CPU\_TO\_LE32(x)       (x)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00095}00095 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00096}\mbox{\hyperlink{mvOs_8h_ae60c1e3d0856a3283764dc5565d8c91f}{00096}} \textcolor{preprocessor}{\#define MV\_LE16\_TO\_CPU(x)       (x)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00097}\mbox{\hyperlink{mvOs_8h_a1557ce7da8ec02304c3972d39458ce7b}{00097}} \textcolor{preprocessor}{\#define MV\_LE32\_TO\_CPU(x)       (x)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00098}00098 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00099}00099 \textcolor{comment}{/* System dependent register read / write in byte/word/dword variants */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00100}00100 \textcolor{keyword}{extern} \textcolor{keywordtype}{void} \mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{HPTLIBAPI}} \mbox{\hyperlink{mvOs_8h_ae79055f859b4b591b411778a984a5002}{MV\_REG\_WRITE\_BYTE}}(\mbox{\hyperlink{mvOs_8h_a702d7b8dbb12c586bc4ff73f8b281d30}{MV\_BUS\_ADDR\_T}} base, \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}} offset, \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}} val);}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00101}00101 \textcolor{keyword}{extern} \textcolor{keywordtype}{void} \mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{HPTLIBAPI}} \mbox{\hyperlink{mvOs_8h_a586ffcd2accffd4f3fd19f6ad6792a63}{MV\_REG\_WRITE\_WORD}}(\mbox{\hyperlink{mvOs_8h_a702d7b8dbb12c586bc4ff73f8b281d30}{MV\_BUS\_ADDR\_T}} base, \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}} offset, \mbox{\hyperlink{mvOs_8h_a0e7911d44520fea5d57da5a0d242e900}{MV\_U16}} val);}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00102}00102 \textcolor{keyword}{extern} \textcolor{keywordtype}{void} \mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{HPTLIBAPI}} \mbox{\hyperlink{mvOs_8h_ab51b9849fc6f9b516c2fdfe5983de66e}{MV\_REG\_WRITE\_DWORD}}(\mbox{\hyperlink{mvOs_8h_a702d7b8dbb12c586bc4ff73f8b281d30}{MV\_BUS\_ADDR\_T}} base, \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}} offset, \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}} val);}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00103}00103 \textcolor{keyword}{extern} \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}  \mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{HPTLIBAPI}} \mbox{\hyperlink{mvOs_8h_a8cd403f52262a07ecefd1e00e86d9737}{MV\_REG\_READ\_BYTE}}(\mbox{\hyperlink{mvOs_8h_a702d7b8dbb12c586bc4ff73f8b281d30}{MV\_BUS\_ADDR\_T}} base, \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}} offset);}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00104}00104 \textcolor{keyword}{extern} \mbox{\hyperlink{mvOs_8h_a0e7911d44520fea5d57da5a0d242e900}{MV\_U16}} \mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{HPTLIBAPI}} \mbox{\hyperlink{mvOs_8h_a7bf9387bb51c20244fef32bde1eecc74}{MV\_REG\_READ\_WORD}}(\mbox{\hyperlink{mvOs_8h_a702d7b8dbb12c586bc4ff73f8b281d30}{MV\_BUS\_ADDR\_T}} base, \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}} offset);}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00105}00105 \textcolor{keyword}{extern} \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}} \mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{HPTLIBAPI}} \mbox{\hyperlink{mvOs_8h_a5750264cb3a0dd1c256f71fbe0356fdc}{MV\_REG\_READ\_DWORD}}(\mbox{\hyperlink{mvOs_8h_a702d7b8dbb12c586bc4ff73f8b281d30}{MV\_BUS\_ADDR\_T}} base, \mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}} offset);}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00106}00106 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00107}00107 \textcolor{comment}{/* System dependent structure */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00108}\mbox{\hyperlink{structmvOsSemaphore}{00108}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{structmvOsSemaphore}{mvOsSemaphore}}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00109}00109 \{}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00110}\mbox{\hyperlink{structmvOsSemaphore_a19ee7eaca81e4f08a61d2b9b57ade97d}{00110}}         \textcolor{keywordtype}{int} \mbox{\hyperlink{structmvOsSemaphore_a19ee7eaca81e4f08a61d2b9b57ade97d}{notused}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00111}\mbox{\hyperlink{mvOs_8h_aedb41fd0cd5166171941eae86e9e97a3}{00111}} \} \mbox{\hyperlink{mvOs_8h_aedb41fd0cd5166171941eae86e9e97a3}{MV\_OS\_SEMAPHORE}};}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00112}00112 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00113}00113 \textcolor{comment}{/* Functions (User implemented)*/}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00114}00114 \mbox{\hyperlink{mvOs_8h_ac87b166e5dce7fa7bf3fa6dee25e1c19}{ULONG\_PTR}} \mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{HPTLIBAPI}} \mbox{\hyperlink{mvOs_8h_a2f919a8048894b971d4ab82e87416823}{fOsPhysicalAddress}}(\textcolor{keywordtype}{void} *addr);}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00115}00115 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00116}00116 \textcolor{comment}{/* Semaphore init, take and release */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00117}\mbox{\hyperlink{mvOs_8h_ab2cf6f14a8d96b4444e1332be45deb78}{00117}} \textcolor{preprocessor}{\#define mvOsSemInit(p)          (MV\_TRUE)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00118}\mbox{\hyperlink{mvOs_8h_ab2804aea46c2f79e244a4ae3ffb9c0fb}{00118}} \textcolor{preprocessor}{\#define mvOsSemTake(p)          (MV\_TRUE)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00119}\mbox{\hyperlink{mvOs_8h_a259afaad81d4fde51e51d1c98e954275}{00119}} \textcolor{preprocessor}{\#define mvOsSemRelease(p)       (MV\_TRUE)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00120}00120 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00121}00121 \textcolor{comment}{/* Delay function in micro seconds resolution */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00122}00122 \textcolor{keywordtype}{void} \mbox{\hyperlink{mvOs_8h_a500760f366dc41a1e734d6aaf4f4b5a7}{HPTLIBAPI}} \mbox{\hyperlink{mvOs_8h_afe633bcfdf7d05476da1e2556dd71cec}{mvMicroSecondsDelay}}(\mbox{\hyperlink{mvOs_8h_a81e3e34ff0b350af062af9a6b768f369}{MV\_U32}});}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00123}00123 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00124}00124 \textcolor{comment}{/* System logging function */}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00125}00125 \textcolor{preprocessor}{\#ifdef MV\_DEBUG\_LOG}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00126}00126 \textcolor{keywordtype}{int} \mbox{\hyperlink{mvOs_8h_a5572f784445dfefc1d916f9472b02de6}{mvLogMsg}}(\mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}, \mbox{\hyperlink{mvOs_8h_afaff7732116254efd68f94294b81d732}{MV\_CHAR\_PTR}}, ...);}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00127}00127 \textcolor{preprocessor}{\#define \_mvLogMsg(x) mvLogMsg x}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00128}00128 \textcolor{preprocessor}{\#else }}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00129}\mbox{\hyperlink{mvOs_8h_a5572f784445dfefc1d916f9472b02de6}{00129}} \textcolor{preprocessor}{\#define mvLogMsg(x...) }}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00130}\mbox{\hyperlink{mvOs_8h_a46a065dc163d822817f1b08f3117c71d}{00130}} \textcolor{preprocessor}{\#define \_mvLogMsg(x)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00131}00131 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00132}00132 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00133}00133 \textcolor{comment}{/*************************************************************************}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00134}00134 \textcolor{comment}{ * Debug support}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00135}00135 \textcolor{comment}{ *************************************************************************/}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00136}00136 \textcolor{preprocessor}{\#ifdef DEBUG}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00137}00137 \textcolor{preprocessor}{\#define HPT\_ASSERT(x) do \{ if (!(x)) \{ \(\backslash\)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00138}00138 \textcolor{preprocessor}{                                                printf("{}ASSERT fail at \%s line \%d"{}}, \_\_FILE\_\_, \_\_LINE\_\_); \(\backslash\)}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00139}00139                                                 while (1); \(\backslash\)}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00140}00140                                           \}\} while (0)}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00141}00141 \textcolor{keyword}{extern} \textcolor{keywordtype}{int} hpt\_dbg\_level;}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00142}00142 \textcolor{preprocessor}{\#define KdPrintI(\_x\_) do\{ if (hpt\_dbg\_level>2) printf \_x\_; \}while(0)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00143}00143 \textcolor{preprocessor}{\#define KdPrintW(\_x\_) do\{ if (hpt\_dbg\_level>1) printf \_x\_; \}while(0)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00144}00144 \textcolor{preprocessor}{\#define KdPrintE(\_x\_) do\{ if (hpt\_dbg\_level>0) printf \_x\_; \}while(0)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00145}00145 \textcolor{preprocessor}{\#define KdPrint(x) KdPrintI(x)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00146}00146 \textcolor{preprocessor}{\#else }}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00147}\mbox{\hyperlink{mvOs_8h_a5a44cc12da8d266dbbd101598eedf64d}{00147}} \textcolor{preprocessor}{\#define HPT\_ASSERT(x)}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00148}\mbox{\hyperlink{mvOs_8h_a133ce0e6493302ec03be196ebc1ca36e}{00148}} \textcolor{preprocessor}{\#define KdPrint(x) }}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00149}\mbox{\hyperlink{mvOs_8h_ac1742867f96f2c5e9ea6dc6dae6d9def}{00149}} \textcolor{preprocessor}{\#define KdPrintI(x) }}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00150}\mbox{\hyperlink{mvOs_8h_aad1d9d55a28e0b5b8fd210b5f9d45e99}{00150}} \textcolor{preprocessor}{\#define KdPrintW(x) }}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00151}\mbox{\hyperlink{mvOs_8h_abceb2a1db342e08233a35e50fa803b83}{00151}} \textcolor{preprocessor}{\#define KdPrintE(x) }}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00152}00152 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00153}00153 }
\DoxyCodeLine{\Hypertarget{mvOs_8h_source_l00154}00154 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
