\hypertarget{osbsd_8h_source}{}\doxysection{osbsd.\+h}
\label{osbsd_8h_source}\index{dev/hptmv/osbsd.h@{dev/hptmv/osbsd.h}}
\mbox{\hyperlink{osbsd_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/FreeBSD}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2004-\/2005 HighPoint Technologies, Inc.}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00015}00015 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00016}00016 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00017}00017 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00018}00018 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00019}00019 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00020}00020 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00021}00021 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00022}00022 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00023}00023 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00024}00024 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00025}00025 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00026}00026 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00027}00027 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00028}00028 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00029}00029 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00030}00030 \textcolor{preprocessor}{\#ifndef \_OSBSD\_H\_}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00031}00031 \textcolor{preprocessor}{\#define \_OSBSD\_H\_}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00033}00033 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/resource.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00035}00035 \textcolor{preprocessor}{\#include <sys/eventhandler.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00036}00036 \textcolor{preprocessor}{\#include <sys/devicestat.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00037}00037 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00038}00038 \textcolor{preprocessor}{\#include <vm/vm.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00039}00039 \textcolor{preprocessor}{\#include <vm/pmap.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00040}00040 \textcolor{preprocessor}{\#include <vm/vm\_extern.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00041}00041 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00042}00042 \textcolor{preprocessor}{\#include <machine/bus.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00043}00043 \textcolor{preprocessor}{\#include <machine/resource.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00044}00044 \textcolor{preprocessor}{\#include <machine/bus.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00045}00045 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00046}00046 \textcolor{preprocessor}{\#include <sys/rman.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00047}00047 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00048}00048 \textcolor{preprocessor}{\#include <cam/cam.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00049}00049 \textcolor{preprocessor}{\#include <cam/cam\_ccb.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00050}00050 \textcolor{preprocessor}{\#include <cam/cam\_debug.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00051}00051 \textcolor{preprocessor}{\#include <cam/cam\_sim.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00052}00052 \textcolor{preprocessor}{\#include <cam/cam\_xpt\_sim.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00053}00053 \textcolor{preprocessor}{\#include <cam/cam\_periph.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00054}00054 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00055}00055 \textcolor{preprocessor}{\#include <cam/scsi/scsi\_all.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00056}00056 \textcolor{preprocessor}{\#include <cam/scsi/scsi\_message.h>}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00057}00057 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00058}00058 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00059}00059 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00060}\mbox{\hyperlink{structpartition}{00060}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00061}00061 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00062}\mbox{\hyperlink{structpartition_af4bbcfef0e3fed78be2bb3ce17131e67}{00062}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}}              \mbox{\hyperlink{structpartition_af4bbcfef0e3fed78be2bb3ce17131e67}{status}};                   \textcolor{comment}{/* 0 nonbootable; 80h bootable */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00063}\mbox{\hyperlink{structpartition_a2841f8ac391370b19de70b23e48bd0f6}{00063}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}}              \mbox{\hyperlink{structpartition_a2841f8ac391370b19de70b23e48bd0f6}{start\_head}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00064}\mbox{\hyperlink{structpartition_afce3450c135c957622d98b7dcb757fd7}{00064}}         \mbox{\hyperlink{mvOs_8h_a5850d5316caf7f4cedd742fdf8cd7c02}{USHORT}}            \mbox{\hyperlink{structpartition_afce3450c135c957622d98b7dcb757fd7}{start\_sector}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00065}\mbox{\hyperlink{structpartition_a09834a9bc20ecf47e671f878a11143c5}{00065}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}}              \mbox{\hyperlink{structpartition_a09834a9bc20ecf47e671f878a11143c5}{type}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00066}\mbox{\hyperlink{structpartition_ae1e2b0e926c5d15a8a3d9aea87a63509}{00066}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}}              \mbox{\hyperlink{structpartition_ae1e2b0e926c5d15a8a3d9aea87a63509}{end\_head}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00067}\mbox{\hyperlink{structpartition_a19bd553cbc184b7c65dbbd9b261a87a4}{00067}}         \mbox{\hyperlink{mvOs_8h_a5850d5316caf7f4cedd742fdf8cd7c02}{USHORT}}            \mbox{\hyperlink{structpartition_a19bd553cbc184b7c65dbbd9b261a87a4}{end\_sector}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00068}\mbox{\hyperlink{structpartition_afe355031931301aebd8248d9c6f251b7}{00068}}         \mbox{\hyperlink{mvOs_8h_abe09d1bea023be6a07cbadde8e955435}{ULONG}}              \mbox{\hyperlink{structpartition_afe355031931301aebd8248d9c6f251b7}{start\_abs\_sector}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00069}\mbox{\hyperlink{structpartition_afd74eb80afecf165528063bb49501c99}{00069}}         \mbox{\hyperlink{mvOs_8h_abe09d1bea023be6a07cbadde8e955435}{ULONG}}              \mbox{\hyperlink{structpartition_afd74eb80afecf165528063bb49501c99}{num\_of\_sector}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00070}00070 \} \mbox{\hyperlink{structpartition}{partition}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00071}00071 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00072}\mbox{\hyperlink{struct__INQUIRYDATA}{00072}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__INQUIRYDATA}{\_INQUIRYDATA}} \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00073}\mbox{\hyperlink{struct__INQUIRYDATA_ad34d58236ab79bef717d60960ab99e9e}{00073}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_ad34d58236ab79bef717d60960ab99e9e}{DeviceType}} : 5;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00074}\mbox{\hyperlink{struct__INQUIRYDATA_ae19bc649fc048bb6b655a6773c4a68f1}{00074}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_ae19bc649fc048bb6b655a6773c4a68f1}{DeviceTypeQualifier}} : 3;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00075}\mbox{\hyperlink{struct__INQUIRYDATA_a641cb312c14b9f61e2a41a2308bd53ff}{00075}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a641cb312c14b9f61e2a41a2308bd53ff}{DeviceTypeModifier}} : 7;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00076}\mbox{\hyperlink{struct__INQUIRYDATA_a2f3d5d8478456251f2215fa371d3d497}{00076}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a2f3d5d8478456251f2215fa371d3d497}{RemovableMedia}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00077}\mbox{\hyperlink{struct__INQUIRYDATA_a026849a70134f863ca45d23b620d266e}{00077}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a026849a70134f863ca45d23b620d266e}{Versions}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00078}\mbox{\hyperlink{struct__INQUIRYDATA_ac8c72b6aadd8e0824693ea099dcc9b36}{00078}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_ac8c72b6aadd8e0824693ea099dcc9b36}{ResponseDataFormat}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00079}\mbox{\hyperlink{struct__INQUIRYDATA_af963dc6f1e13a24ccec05b3fdf15be2b}{00079}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_af963dc6f1e13a24ccec05b3fdf15be2b}{AdditionalLength}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00080}\mbox{\hyperlink{struct__INQUIRYDATA_a21a193173c81efaf2f3968e73fdfea94}{00080}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a21a193173c81efaf2f3968e73fdfea94}{Reserved}}[2];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00081}\mbox{\hyperlink{struct__INQUIRYDATA_af91020eea9c2dd4229b1f31d15bec2e6}{00081}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_af91020eea9c2dd4229b1f31d15bec2e6}{SoftReset}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00082}\mbox{\hyperlink{struct__INQUIRYDATA_a0556eb36e8ffd338820ed3914e0339ca}{00082}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a0556eb36e8ffd338820ed3914e0339ca}{CommandQueue}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00083}\mbox{\hyperlink{struct__INQUIRYDATA_a28b734afc7ce53fedc221afdfda5ec1f}{00083}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a28b734afc7ce53fedc221afdfda5ec1f}{Reserved2}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00084}\mbox{\hyperlink{struct__INQUIRYDATA_a4abbd0bf387f62c322bdf3f3a9d8d914}{00084}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a4abbd0bf387f62c322bdf3f3a9d8d914}{LinkedCommands}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00085}\mbox{\hyperlink{struct__INQUIRYDATA_a24b3c53b456c13356152ffcdac157bd2}{00085}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a24b3c53b456c13356152ffcdac157bd2}{Synchronous}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00086}\mbox{\hyperlink{struct__INQUIRYDATA_ab73df93b95ee2f8701e9701d9658b55b}{00086}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_ab73df93b95ee2f8701e9701d9658b55b}{Wide16Bit}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00087}\mbox{\hyperlink{struct__INQUIRYDATA_abda733840b77ee9255dab7308da624a8}{00087}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_abda733840b77ee9255dab7308da624a8}{Wide32Bit}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00088}\mbox{\hyperlink{struct__INQUIRYDATA_aad17253e1700a68b79703599d406d8cf}{00088}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_aad17253e1700a68b79703599d406d8cf}{RelativeAddressing}} : 1;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00089}\mbox{\hyperlink{struct__INQUIRYDATA_ae46a7d394ef132cd63fce989f2c6685b}{00089}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_ae46a7d394ef132cd63fce989f2c6685b}{VendorId}}[8];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00090}\mbox{\hyperlink{struct__INQUIRYDATA_a9cd97897176c058a0f507b51923e2eb5}{00090}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a9cd97897176c058a0f507b51923e2eb5}{ProductId}}[16];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00091}\mbox{\hyperlink{struct__INQUIRYDATA_a2e60fa35df721f4cc296a860d852f7cb}{00091}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a2e60fa35df721f4cc296a860d852f7cb}{ProductRevisionLevel}}[4];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00092}\mbox{\hyperlink{struct__INQUIRYDATA_aa42cfd37fa321d446387cc89e1e5aeea}{00092}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_aa42cfd37fa321d446387cc89e1e5aeea}{VendorSpecific}}[20];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00093}\mbox{\hyperlink{struct__INQUIRYDATA_a912ee690b3e0bfcbd9a35080c5d092ae}{00093}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__INQUIRYDATA_a912ee690b3e0bfcbd9a35080c5d092ae}{Reserved3}}[40];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00094}\mbox{\hyperlink{osbsd_8h_acbf3ae078a7c67e292dc539529bea290}{00094}} \} \mbox{\hyperlink{osbsd_8h_acbf3ae078a7c67e292dc539529bea290}{INQUIRYDATA}}, *\mbox{\hyperlink{osbsd_8h_a0eacbcae3c839f2a0247e9bfdc10be88}{PINQUIRYDATA}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00095}00095 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00096}\mbox{\hyperlink{osbsd_8h_aec0aca1914db1b39d93ef00846a04965}{00096}} \textcolor{preprocessor}{\#define MV\_IAL\_HT\_SACOALT\_DEFAULT       1}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00097}\mbox{\hyperlink{osbsd_8h_a2555819b691e2fb655e3fb102d535207}{00097}} \textcolor{preprocessor}{\#define MV\_IAL\_HT\_SAITMTH\_DEFAULT       1}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00098}00098 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00099}00099 \textcolor{comment}{/****************************************/}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00100}00100 \textcolor{comment}{/*          GENERAL Definitions         */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00101}00101 \textcolor{comment}{/****************************************/}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00102}00102 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00103}00103 \textcolor{comment}{/* Bits for HD\_ERROR */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00104}\mbox{\hyperlink{osbsd_8h_a1b6ade841a9022c486a4dd6ba4ee5741}{00104}} \textcolor{preprocessor}{\#define NM\_ERR                  0x02    }\textcolor{comment}{/* media present */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00105}\mbox{\hyperlink{osbsd_8h_a89498e6c0002c85c58e0300283dcf2db}{00105}} \textcolor{preprocessor}{\#define ABRT\_ERR                0x04    }\textcolor{comment}{/* Command aborted */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00106}\mbox{\hyperlink{osbsd_8h_aa1d6d055dbdaefc77862d3817ad0777e}{00106}} \textcolor{preprocessor}{\#define MCR\_ERR         0x08    }\textcolor{comment}{/* media change request */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00107}\mbox{\hyperlink{osbsd_8h_a0ef10ad53609843581f6e41e1f55dffb}{00107}} \textcolor{preprocessor}{\#define IDNF\_ERR        0x10    }\textcolor{comment}{/* ID field not found */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00108}\mbox{\hyperlink{osbsd_8h_a2c4d39bec45987e1bf94087240004a83}{00108}} \textcolor{preprocessor}{\#define MC\_ERR          0x20    }\textcolor{comment}{/* media changed */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00109}\mbox{\hyperlink{osbsd_8h_acc2e4fc59504378af4af818b4aef0002}{00109}} \textcolor{preprocessor}{\#define UNC\_ERR         0x40    }\textcolor{comment}{/* Uncorrect data */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00110}\mbox{\hyperlink{osbsd_8h_a608d5cb3a482150c4cd420192f2afbe4}{00110}} \textcolor{preprocessor}{\#define WP\_ERR          0x40    }\textcolor{comment}{/* write protect */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00111}\mbox{\hyperlink{osbsd_8h_a57aa614d62aaef46ac6e8ad11956ee04}{00111}} \textcolor{preprocessor}{\#define ICRC\_ERR        0x80    }\textcolor{comment}{/* new meaning:  CRC error during transfer */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00112}00112 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00113}\mbox{\hyperlink{osbsd_8h_aa27eb92423cf3760c1d39ebd5d4e232f}{00113}} \textcolor{preprocessor}{\#define REQUESTS\_ARRAY\_SIZE                     (9 * MV\_EDMA\_REQUEST\_QUEUE\_SIZE) }\textcolor{comment}{/* 9 K bytes */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00114}\mbox{\hyperlink{osbsd_8h_a2ff4107c68653e30b8d938d7d6173734}{00114}} \textcolor{preprocessor}{\#define RESPONSES\_ARRAY\_SIZE            (12 * MV\_EDMA\_RESPONSE\_QUEUE\_SIZE) }\textcolor{comment}{/* 3 K bytes */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00115}00115 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00116}\mbox{\hyperlink{osbsd_8h_ab899901d6ba87d04a3431c01ed180943}{00116}} \textcolor{preprocessor}{\#define PRD\_ENTRIES\_PER\_CMD         (MAX\_SG\_DESCRIPTORS+1)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00117}\mbox{\hyperlink{osbsd_8h_ae25d4331541b77ef10559497ce455550}{00117}} \textcolor{preprocessor}{\#define PRD\_ENTRIES\_SIZE            (MV\_EDMA\_PRD\_ENTRY\_SIZE*PRD\_ENTRIES\_PER\_CMD)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00118}\mbox{\hyperlink{osbsd_8h_ad5d20ac7da0646c4537fe070ea869ce1}{00118}} \textcolor{preprocessor}{\#define PRD\_TABLES\_FOR\_VBUS         (MV\_SATA\_CHANNELS\_NUM*MV\_EDMA\_QUEUE\_LENGTH)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00119}00119 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00120}\mbox{\hyperlink{osbsd_8h_af2845fb0bbd6cccd6921337b76ef7543}{00120}} \textcolor{keyword}{typedef} \textcolor{keyword}{enum} \mbox{\hyperlink{osbsd_8h_af2845fb0bbd6cccd6921337b76ef7543}{\_SataEvent}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00121}00121 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00122}\mbox{\hyperlink{osbsd_8h_af2845fb0bbd6cccd6921337b76ef7543ae8cd839b915b5b683bef26abd68e2ba5}{00122}}     \mbox{\hyperlink{osbsd_8h_af2845fb0bbd6cccd6921337b76ef7543ae8cd839b915b5b683bef26abd68e2ba5}{SATA\_EVENT\_NO\_CHANGE}} = 0,}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00123}\mbox{\hyperlink{osbsd_8h_af2845fb0bbd6cccd6921337b76ef7543a5e424dc926091318cfd7faf45959b74c}{00123}}         \mbox{\hyperlink{osbsd_8h_af2845fb0bbd6cccd6921337b76ef7543a5e424dc926091318cfd7faf45959b74c}{SATA\_EVENT\_CHANNEL\_CONNECTED}},}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00124}00124         \mbox{\hyperlink{osbsd_8h_af2845fb0bbd6cccd6921337b76ef7543a3d4ff4c6c9dae0fa11eddb99a67fd271}{SATA\_EVENT\_CHANNEL\_DISCONNECTED}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00125}\mbox{\hyperlink{osbsd_8h_a2b173d689ba81b908b1e75c764f44363}{00125}} \} \mbox{\hyperlink{osbsd_8h_a2b173d689ba81b908b1e75c764f44363}{SATA\_EVENT}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00126}00126 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00127}\mbox{\hyperlink{osbsd_8h_ab34dcfe5d2c215c83f25c9feac16267b}{00127}} \textcolor{keyword}{typedef} \mbox{\hyperlink{mvOs_8h_ac87b166e5dce7fa7bf3fa6dee25e1c19}{ULONG\_PTR}} \mbox{\hyperlink{osbsd_8h_ab34dcfe5d2c215c83f25c9feac16267b}{dma\_addr\_t}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00128}00128 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00129}\mbox{\hyperlink{struct__MV__CHANNEL}{00129}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__MV__CHANNEL}{\_MV\_CHANNEL}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00130}00130 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00131}\mbox{\hyperlink{struct__MV__CHANNEL_a7d3e02c2638c4d005f1a94a5a83b2495}{00131}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}            \mbox{\hyperlink{struct__MV__CHANNEL_a7d3e02c2638c4d005f1a94a5a83b2495}{maxUltraDmaModeSupported}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00132}\mbox{\hyperlink{struct__MV__CHANNEL_aa18e74b46713299b4454352c83736057}{00132}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}            \mbox{\hyperlink{struct__MV__CHANNEL_aa18e74b46713299b4454352c83736057}{maxDmaModeSupported}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00133}\mbox{\hyperlink{struct__MV__CHANNEL_ae4dbc0e655a67112410a5b0b8d04f9ee}{00133}}         \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int}            \mbox{\hyperlink{struct__MV__CHANNEL_ae4dbc0e655a67112410a5b0b8d04f9ee}{maxPioModeSupported}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00134}\mbox{\hyperlink{struct__MV__CHANNEL_ab825c09142179fc0b0f5dcdb8ff4bc5a}{00134}}         \mbox{\hyperlink{mvOs_8h_a53ce48f8eb489de1c74a7249e747b5b4}{MV\_BOOLEAN}}            \mbox{\hyperlink{struct__MV__CHANNEL_ab825c09142179fc0b0f5dcdb8ff4bc5a}{online}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00135}\mbox{\hyperlink{struct__MV__CHANNEL_ac48e27b112b933c6fff4b4d608fe99a1}{00135}}         \mbox{\hyperlink{mvOs_8h_a53ce48f8eb489de1c74a7249e747b5b4}{MV\_BOOLEAN}}            \mbox{\hyperlink{struct__MV__CHANNEL_ac48e27b112b933c6fff4b4d608fe99a1}{writeCacheSupported}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00136}\mbox{\hyperlink{struct__MV__CHANNEL_abf696b80cb5bc6769f8d2a2484568067}{00136}}         \mbox{\hyperlink{mvOs_8h_a53ce48f8eb489de1c74a7249e747b5b4}{MV\_BOOLEAN}}            \mbox{\hyperlink{struct__MV__CHANNEL_abf696b80cb5bc6769f8d2a2484568067}{writeCacheEnabled}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00137}\mbox{\hyperlink{struct__MV__CHANNEL_a75dd238f7764cecbc9e974d586ff7bd6}{00137}}         \mbox{\hyperlink{mvOs_8h_a53ce48f8eb489de1c74a7249e747b5b4}{MV\_BOOLEAN}}            \mbox{\hyperlink{struct__MV__CHANNEL_a75dd238f7764cecbc9e974d586ff7bd6}{readAheadSupported}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00138}\mbox{\hyperlink{struct__MV__CHANNEL_aee4cb34a04a20cc1d40a4ac7768e2223}{00138}}         \mbox{\hyperlink{mvOs_8h_a53ce48f8eb489de1c74a7249e747b5b4}{MV\_BOOLEAN}}            \mbox{\hyperlink{struct__MV__CHANNEL_aee4cb34a04a20cc1d40a4ac7768e2223}{readAheadEnabled}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00139}\mbox{\hyperlink{struct__MV__CHANNEL_acb9f45d0abf0206d8a651926b744fdf3}{00139}}         \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}                      \mbox{\hyperlink{struct__MV__CHANNEL_acb9f45d0abf0206d8a651926b744fdf3}{queueDepth}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00140}00140         }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00141}\mbox{\hyperlink{osbsd_8h_a1fe39811ce6ddeee670199eac27c1a5a}{00141}} \} \mbox{\hyperlink{osbsd_8h_a1fe39811ce6ddeee670199eac27c1a5a}{MV\_CHANNEL}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00142}00142 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00143}\mbox{\hyperlink{struct__BUS__DMAMAP}{00143}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__BUS__DMAMAP}{\_BUS\_DMAMAP}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00144}\mbox{\hyperlink{struct__BUS__DMAMAP_ae0069ef96b9031dfb05bc35258e7da44}{00144}} \{       \textcolor{keyword}{struct }\mbox{\hyperlink{struct__BUS__DMAMAP}{\_BUS\_DMAMAP}}           *\mbox{\hyperlink{struct__BUS__DMAMAP_ae0069ef96b9031dfb05bc35258e7da44}{next}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00145}\mbox{\hyperlink{struct__BUS__DMAMAP_abc406e6a8e5b73698c7d926486842863}{00145}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structIALAdapter}{IALAdapter}}                     *\mbox{\hyperlink{struct__BUS__DMAMAP_abc406e6a8e5b73698c7d926486842863}{pAdapter}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00146}\mbox{\hyperlink{struct__BUS__DMAMAP_a7bbb09672fe826409f0268a0534f89a9}{00146}}         bus\_dmamap\_t                    \mbox{\hyperlink{struct__BUS__DMAMAP_a7bbb09672fe826409f0268a0534f89a9}{dma\_map}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00147}\mbox{\hyperlink{struct__BUS__DMAMAP_a4d7be2474d4ebef876555ac0544b5ca8}{00147}}         \textcolor{keyword}{struct }callout          \mbox{\hyperlink{struct__BUS__DMAMAP_a4d7be2474d4ebef876555ac0544b5ca8}{timeout}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00148}\mbox{\hyperlink{struct__BUS__DMAMAP_a547c47c502a5d415c5a7ed163a1e0634}{00148}}         \mbox{\hyperlink{struct__SCAT__GATH}{SCAT\_GATH}}                              \mbox{\hyperlink{struct__BUS__DMAMAP_a547c47c502a5d415c5a7ed163a1e0634}{psg}}[\mbox{\hyperlink{global_8h_ac39e3ca6ce5116a9c78f1a482a9b52dd}{MAX\_SG\_DESCRIPTORS}}];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00149}\mbox{\hyperlink{osbsd_8h_a47bd640f5bcda3212ea547d23ef40823}{00149}} \} \mbox{\hyperlink{osbsd_8h_a47bd640f5bcda3212ea547d23ef40823}{BUS\_DMAMAP}}, *\mbox{\hyperlink{osbsd_8h_a0834710a2329c65d6cf9beece3e3d756}{PBUS\_DMAMAP}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00150}00150 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00151}\mbox{\hyperlink{structIALAdapter}{00151}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{structIALAdapter}{IALAdapter}} }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00152}00152 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00153}\mbox{\hyperlink{structIALAdapter_a26291bdcb72c00dbce0b1eadc0d0a211}{00153}}         \textcolor{keyword}{struct }cam\_path         *\mbox{\hyperlink{structIALAdapter_a26291bdcb72c00dbce0b1eadc0d0a211}{path}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00154}\mbox{\hyperlink{structIALAdapter_a85e61666bbfc7a52b05e2453144ef924}{00154}}         \textcolor{keyword}{struct }mtx              \mbox{\hyperlink{structIALAdapter_a85e61666bbfc7a52b05e2453144ef924}{lock}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00155}00155 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00156}\mbox{\hyperlink{structIALAdapter_a289ffb160e60e66424bca2fe1670ca08}{00156}}         bus\_dma\_tag\_t     \mbox{\hyperlink{structIALAdapter_a289ffb160e60e66424bca2fe1670ca08}{io\_dma\_parent}}; \textcolor{comment}{/* I/O buffer DMA tag */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00157}\mbox{\hyperlink{structIALAdapter_a4c09166015458786dbcbbb6afc73be26}{00157}}         \mbox{\hyperlink{struct__BUS__DMAMAP}{PBUS\_DMAMAP}}    \mbox{\hyperlink{structIALAdapter_a4c09166015458786dbcbbb6afc73be26}{pbus\_dmamap\_list}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00158}\mbox{\hyperlink{structIALAdapter_ac7e28390edeeb5635cc63343cb769ba1}{00158}}         \mbox{\hyperlink{struct__BUS__DMAMAP}{PBUS\_DMAMAP}}    \mbox{\hyperlink{structIALAdapter_ac7e28390edeeb5635cc63343cb769ba1}{pbus\_dmamap}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00159}00159 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00160}\mbox{\hyperlink{structIALAdapter_a76fe5e9d36a249277862ecfa93908b76}{00160}}         device\_t                        \mbox{\hyperlink{structIALAdapter_a76fe5e9d36a249277862ecfa93908b76}{hpt\_dev}};                         \textcolor{comment}{/* bus device */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00161}\mbox{\hyperlink{structIALAdapter_a50a417b25c15ae8cb3a199b2fd0145a5}{00161}}         \textcolor{keyword}{struct }resource         *\mbox{\hyperlink{structIALAdapter_a50a417b25c15ae8cb3a199b2fd0145a5}{hpt\_irq}};                                        \textcolor{comment}{/* interrupt */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00162}\mbox{\hyperlink{structIALAdapter_aeababed4fefadd0985396c9f0adaed12}{00162}}         \textcolor{keyword}{struct }resource         *\mbox{\hyperlink{structIALAdapter_aeababed4fefadd0985396c9f0adaed12}{mem\_res}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00163}\mbox{\hyperlink{structIALAdapter_a0174e8fd9919461ab76f4cf5071f062e}{00163}}         \textcolor{keywordtype}{void}                            *\mbox{\hyperlink{structIALAdapter_a0174e8fd9919461ab76f4cf5071f062e}{hpt\_intr}};                              \textcolor{comment}{/* interrupt handle */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00164}\mbox{\hyperlink{structIALAdapter_a308108292dd7a477b05936a3d670192f}{00164}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structIALAdapter}{IALAdapter}}   *\mbox{\hyperlink{structIALAdapter_a308108292dd7a477b05936a3d670192f}{next}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00165}00165 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00166}\mbox{\hyperlink{structIALAdapter_a99a2a27f6eeb067ba164516784f6d45a}{00166}}         \mbox{\hyperlink{structmvSataAdapter}{MV\_SATA\_ADAPTER}}     \mbox{\hyperlink{structIALAdapter_a99a2a27f6eeb067ba164516784f6d45a}{mvSataAdapter}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00167}\mbox{\hyperlink{structIALAdapter_a19969f8d5af328e2bcb945b8a3a140d0}{00167}}         \mbox{\hyperlink{struct__MV__CHANNEL}{MV\_CHANNEL}}          \mbox{\hyperlink{structIALAdapter_a19969f8d5af328e2bcb945b8a3a140d0}{mvChannel}}[\mbox{\hyperlink{mvSata_8h_af967f7e010dd5269b85359b76dc2aa24}{MV\_SATA\_CHANNELS\_NUM}}];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00168}\mbox{\hyperlink{structIALAdapter_a0e904434b0c595c63c5524043360cc51}{00168}}         \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}                              *\mbox{\hyperlink{structIALAdapter_a0e904434b0c595c63c5524043360cc51}{requestsArrayBaseAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00169}\mbox{\hyperlink{structIALAdapter_a1b5a7bf08a08ae1c639095bdca43823a}{00169}}         \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}                              *\mbox{\hyperlink{structIALAdapter_a1b5a7bf08a08ae1c639095bdca43823a}{requestsArrayBaseAlignedAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00170}\mbox{\hyperlink{structIALAdapter_af52a29bae66846e383c8cae5289fab8e}{00170}}         \mbox{\hyperlink{osbsd_8h_ab34dcfe5d2c215c83f25c9feac16267b}{dma\_addr\_t}}                    \mbox{\hyperlink{structIALAdapter_af52a29bae66846e383c8cae5289fab8e}{requestsArrayBaseDmaAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00171}\mbox{\hyperlink{structIALAdapter_a180b01df07ec4164114b269f5981bd03}{00171}}         \mbox{\hyperlink{osbsd_8h_ab34dcfe5d2c215c83f25c9feac16267b}{dma\_addr\_t}}                    \mbox{\hyperlink{structIALAdapter_a180b01df07ec4164114b269f5981bd03}{requestsArrayBaseDmaAlignedAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00172}\mbox{\hyperlink{structIALAdapter_a1ea702cb377f3c3718c36d76ed9920df}{00172}}         \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}                              *\mbox{\hyperlink{structIALAdapter_a1ea702cb377f3c3718c36d76ed9920df}{responsesArrayBaseAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00173}\mbox{\hyperlink{structIALAdapter_a9b8bea943c3555661dc91fd291720f31}{00173}}         \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}                              *\mbox{\hyperlink{structIALAdapter_a9b8bea943c3555661dc91fd291720f31}{responsesArrayBaseAlignedAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00174}\mbox{\hyperlink{structIALAdapter_a9d03ee466630722e15206a3e33255914}{00174}}         \mbox{\hyperlink{osbsd_8h_ab34dcfe5d2c215c83f25c9feac16267b}{dma\_addr\_t}}                    \mbox{\hyperlink{structIALAdapter_a9d03ee466630722e15206a3e33255914}{responsesArrayBaseDmaAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00175}\mbox{\hyperlink{structIALAdapter_afbe969f6e2322dcb840bb9f30c02cc91}{00175}}         \mbox{\hyperlink{osbsd_8h_ab34dcfe5d2c215c83f25c9feac16267b}{dma\_addr\_t}}                    \mbox{\hyperlink{structIALAdapter_afbe969f6e2322dcb840bb9f30c02cc91}{responsesArrayBaseDmaAlignedAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00176}\mbox{\hyperlink{structIALAdapter_a248f4bc95fcdfb360666664c2c1df3ce}{00176}}         \mbox{\hyperlink{osbsd_8h_a2b173d689ba81b908b1e75c764f44363}{SATA\_EVENT}}                    \mbox{\hyperlink{structIALAdapter_a248f4bc95fcdfb360666664c2c1df3ce}{sataEvents}}[\mbox{\hyperlink{mvSata_8h_af967f7e010dd5269b85359b76dc2aa24}{MV\_SATA\_CHANNELS\_NUM}}];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00177}00177         }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00178}\mbox{\hyperlink{structIALAdapter_a0884ac692823260f061881bc7a239dd3}{00178}}         \textcolor{keyword}{struct  }callout \mbox{\hyperlink{structIALAdapter_a0884ac692823260f061881bc7a239dd3}{event\_timer\_connect}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00179}\mbox{\hyperlink{structIALAdapter_afd57f7afb6f92868f85c4eab596961d6}{00179}}         \textcolor{keyword}{struct  }callout \mbox{\hyperlink{structIALAdapter_afd57f7afb6f92868f85c4eab596961d6}{event\_timer\_disconnect}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00180}00180 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00181}\mbox{\hyperlink{structIALAdapter_a6c36e8be6ca79a7d2e862cbeac112805}{00181}}         \textcolor{keyword}{struct }\mbox{\hyperlink{struct__VBus}{\_VBus}}        \mbox{\hyperlink{struct__VBus}{VBus}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00182}\mbox{\hyperlink{structIALAdapter_a71ae792b5a35084c680406eb441f316f}{00182}}         \textcolor{keyword}{struct }\mbox{\hyperlink{struct__VDevice}{\_VDevice}}     \mbox{\hyperlink{structIALAdapter_a71ae792b5a35084c680406eb441f316f}{VDevices}}[\mbox{\hyperlink{mvSata_8h_af967f7e010dd5269b85359b76dc2aa24}{MV\_SATA\_CHANNELS\_NUM}}];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00183}\mbox{\hyperlink{structIALAdapter_ad8aa158a62cfc5189402fab612905e5e}{00183}}         \mbox{\hyperlink{struct__Command}{PCommand}}                        \mbox{\hyperlink{structIALAdapter_ad8aa158a62cfc5189402fab612905e5e}{pCommandBlocks}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00184}\mbox{\hyperlink{structIALAdapter_a2251f82529a290f396bed44c2ca8130a}{00184}}         \mbox{\hyperlink{mvOs_8h_a06c249fdad80e91872a47b11efbf963a}{PUCHAR}}                            \mbox{\hyperlink{structIALAdapter_a2251f82529a290f396bed44c2ca8130a}{prdTableAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00185}\mbox{\hyperlink{structIALAdapter_a62993db1e0893a02b1a0022b9163b7f6}{00185}}         \mbox{\hyperlink{mvOs_8h_a06c249fdad80e91872a47b11efbf963a}{PUCHAR}}                            \mbox{\hyperlink{structIALAdapter_a62993db1e0893a02b1a0022b9163b7f6}{prdTableAlignedAddr}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00186}\mbox{\hyperlink{structIALAdapter_a682a327e543f715e43490d0b227fc609}{00186}}         \textcolor{keywordtype}{void}*                           \mbox{\hyperlink{structIALAdapter_a682a327e543f715e43490d0b227fc609}{pFreePRDLink}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00187}00187 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00188}\mbox{\hyperlink{structIALAdapter_ae60bd1489fed8bbc76dfe8e9f6c04ddc}{00188}}         \textcolor{keyword}{union }ccb           *\mbox{\hyperlink{structIALAdapter_ae60bd1489fed8bbc76dfe8e9f6c04ddc}{pending\_Q}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00189}00189 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00190}\mbox{\hyperlink{structIALAdapter_a9302719d453709d5e8b0f1d38c764694}{00190}}         \mbox{\hyperlink{mvOs_8h_a8c1e8b7194275a3895f05502e50c124a}{MV\_U8}}                      \mbox{\hyperlink{structIALAdapter_a9302719d453709d5e8b0f1d38c764694}{outstandingCommands}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00191}00191 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00192}\mbox{\hyperlink{structIALAdapter_a0110aafc3620ef1308c39048d43b3cd9}{00192}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}}               \mbox{\hyperlink{structIALAdapter_a0110aafc3620ef1308c39048d43b3cd9}{status}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00193}\mbox{\hyperlink{structIALAdapter_a107c0aefaeb9322bb62de8dd91fd3ee5}{00193}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}}               \mbox{\hyperlink{structIALAdapter_a107c0aefaeb9322bb62de8dd91fd3ee5}{ver\_601}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00194}\mbox{\hyperlink{structIALAdapter_a8c2c9481805df2d34cde6ee9a531d9b6}{00194}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}}               \mbox{\hyperlink{structIALAdapter_a8c2c9481805df2d34cde6ee9a531d9b6}{beeping}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00195}00195 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00196}\mbox{\hyperlink{structIALAdapter_a26f43405fbfb13bb49260beb6b04f126}{00196}}         eventhandler\_tag        \mbox{\hyperlink{structIALAdapter_a26f43405fbfb13bb49260beb6b04f126}{eh}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00197}00197 \}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00198}\mbox{\hyperlink{osbsd_8h_a464326d2be803527866bcc3453602f31}{00198}} \mbox{\hyperlink{osbsd_8h_a464326d2be803527866bcc3453602f31}{IAL\_ADAPTER\_T}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00199}00199 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00200}00200 \textcolor{keyword}{extern} \mbox{\hyperlink{structIALAdapter}{IAL\_ADAPTER\_T}} *\mbox{\hyperlink{osbsd_8h_abd736b5d41b4509506d8dbf07828f7e0}{gIal\_Adapter}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00201}00201 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00202}00202 \textcolor{comment}{/*entry.c*/}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00203}\mbox{\hyperlink{osbsd_8h_a961c4c148687b9b84b387c2df92afc88}{00203}} \textcolor{keyword}{typedef} void (*\mbox{\hyperlink{osbsd_8h_a961c4c148687b9b84b387c2df92afc88}{HPT\_DPC}})(\mbox{\hyperlink{structIALAdapter}{IAL\_ADAPTER\_T}} *,\textcolor{keywordtype}{void}*,\mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}});}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00204}00204 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00205}00205 \textcolor{keywordtype}{int} \mbox{\hyperlink{osbsd_8h_acaea24bff1d9dcadfdc684deee3950c9}{hpt\_queue\_dpc}}(\mbox{\hyperlink{osbsd_8h_a961c4c148687b9b84b387c2df92afc88}{HPT\_DPC}} dpc, \mbox{\hyperlink{structIALAdapter}{IAL\_ADAPTER\_T}} *pAdapter, \textcolor{keywordtype}{void} *arg, \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} flags);}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00206}00206 \textcolor{keywordtype}{void} \mbox{\hyperlink{osbsd_8h_a60f51ef5cd79773823697b9087556587}{hpt\_rebuild\_data\_block}}(\mbox{\hyperlink{structIALAdapter}{IAL\_ADAPTER\_T}} *pAdapter, \mbox{\hyperlink{struct__VDevice}{PVDevice}} pArray, \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} flags);}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00207}00207 \textcolor{keywordtype}{void} \mbox{\hyperlink{osbsd_8h_aa62d69bd1b393eecb9ff915948381d44}{Check\_Idle\_Call}}(\mbox{\hyperlink{structIALAdapter}{IAL\_ADAPTER\_T}} *pAdapter);}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00208}00208 \textcolor{keywordtype}{void} \mbox{\hyperlink{osbsd_8h_ab86347ff2be7445a335de7a87c9ebf83}{fRescanAllDevice}}(\mbox{\hyperlink{global_8h_a53bf683897a41509daa394f2106a994a}{\_VBUS\_ARG0}});}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00209}\mbox{\hyperlink{osbsd_8h_a33727cee4e230c913f0894e6b9755d45}{00209}} \textcolor{keywordtype}{int} \mbox{\hyperlink{osbsd_8h_a33727cee4e230c913f0894e6b9755d45}{hpt\_add\_disk\_to\_array}}(\mbox{\hyperlink{global_8h_ad7d17cfe4eeb62e5e19239af053728d3}{\_VBUS\_ARG}} \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}} idArray, \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}} idDisk);}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00210}00210 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00211}00211 \textcolor{keywordtype}{int} \mbox{\hyperlink{osbsd_8h_a7511d58462a6ae863059e86751252e42}{Kernel\_DeviceIoControl}}(\mbox{\hyperlink{global_8h_ad7d17cfe4eeb62e5e19239af053728d3}{\_VBUS\_ARG}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00212}00212                                                         \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}} dwIoControlCode,             \textcolor{comment}{/* operation control code */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00213}00213                                                         \mbox{\hyperlink{mvOs_8h_a2b5e00c0c5a5aa5199ba9f28ec3e8caa}{PVOID}} lpInBuffer,                  \textcolor{comment}{/* input data buffer */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00214}00214                                                         \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}} nInBufferSize,               \textcolor{comment}{/* size of input data buffer */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00215}00215                                                         \mbox{\hyperlink{mvOs_8h_a2b5e00c0c5a5aa5199ba9f28ec3e8caa}{PVOID}} lpOutBuffer,                 \textcolor{comment}{/* output data buffer */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00216}00216                                                         \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}} nOutBufferSize,              \textcolor{comment}{/* size of output data buffer */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00217}00217                                                         \mbox{\hyperlink{mvOs_8h_a4acb2f6880407bbe0bea1e45b5b3238d}{PDWORD}} lpBytesReturned            \textcolor{comment}{/* byte count */}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00218}00218                                                 );}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00219}00219 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00220}00220 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00221}\mbox{\hyperlink{osbsd_8h_a2f40f36acd6fdd2bf9befeada4809750}{00221}} \textcolor{preprocessor}{\#define \_\_str\_direct(x) \#x}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00222}\mbox{\hyperlink{osbsd_8h_a49bad77c916e9418758b69286c943e8c}{00222}} \textcolor{preprocessor}{\#define \_\_str(x) \_\_str\_direct(x)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00223}\mbox{\hyperlink{osbsd_8h_a9410810d6b75f0417d0b209017e8f842}{00223}} \textcolor{preprocessor}{\#define KMSG\_LEADING \_\_str(PROC\_DIR\_NAME) "{}: "{}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00224}\mbox{\hyperlink{osbsd_8h_ae8af74f3ba3b3f759af9043d20e23995}{00224}} \textcolor{preprocessor}{\#define hpt\_printk(\_x\_) do \{ printf(KMSG\_LEADING); printf \_x\_ ; \} while (0)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00225}00225 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00226}\mbox{\hyperlink{osbsd_8h_a69ecc2a23196292ef2c155154ae15819}{00226}} \textcolor{preprocessor}{\#define DUPLICATE      0}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00227}\mbox{\hyperlink{osbsd_8h_a54d9d5275789304c07d2d9a570a0b439}{00227}} \textcolor{preprocessor}{\#define INITIALIZE     1}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00228}\mbox{\hyperlink{osbsd_8h_aafaf204d78a43d05a5a52efcdd01be5c}{00228}} \textcolor{preprocessor}{\#define REBUILD\_PARITY 2}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00229}\mbox{\hyperlink{osbsd_8h_ab64044259d5a2440725279dc7801f33e}{00229}} \textcolor{preprocessor}{\#define VERIFY         3}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00230}00230 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00231}00231 \textcolor{comment}{/***********************************************************/}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00232}00232 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00233}00233 \textcolor{keyword}{static} \_\_inline \textcolor{keyword}{struct }cam\_periph *}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00234}\mbox{\hyperlink{osbsd_8h_a4dcb8ed6aa858a683add6238752e1777}{00234}} \mbox{\hyperlink{osbsd_8h_a4dcb8ed6aa858a683add6238752e1777}{hpt\_get\_periph}}(\textcolor{keywordtype}{int} path\_id,\textcolor{keywordtype}{int} target\_id)}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00235}00235 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00236}00236         \textcolor{keyword}{struct }cam\_periph       *periph = \mbox{\hyperlink{mvOs_8h_a070d2ce7b6bb7e5c05602aa8c308d0c4}{NULL}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00237}00237     \textcolor{keyword}{struct }cam\_path     *path;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00238}00238     \textcolor{keywordtype}{int}                 status;}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00239}00239 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00240}00240     status = xpt\_create\_path(\&path, \mbox{\hyperlink{mvOs_8h_a070d2ce7b6bb7e5c05602aa8c308d0c4}{NULL}}, path\_id, target\_id, 0);}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00241}00241     \textcolor{keywordflow}{if} (status == CAM\_REQ\_CMP) \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00242}00242                 periph = cam\_periph\_find(path, \textcolor{stringliteral}{"{}da"{}});}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00243}00243                 xpt\_free\_path(path);}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00244}00244                         }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00245}00245     \}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00246}00246         \textcolor{keywordflow}{return} periph;  }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00247}00247 \}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00248}00248 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00249}00249 \textcolor{preprocessor}{\#ifdef \_\_i386\_\_}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00250}00250 \textcolor{preprocessor}{\#define BITS\_PER\_LONG 32}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00251}00251 \textcolor{preprocessor}{\#define VDEV\_TO\_ID(pVDev) (DEVICEID)(pVDev)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00252}00252 \textcolor{preprocessor}{\#define ID\_TO\_VDEV(id) (PVDevice)(id)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00253}00253 \textcolor{preprocessor}{\#else }\textcolor{comment}{/*Only support x86\_64(AMD64 and EM64T)*/}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00254}\mbox{\hyperlink{osbsd_8h_a2f660aa23a5dbc0f4b8df48b4302b8c3}{00254}} \textcolor{preprocessor}{\#define BITS\_PER\_LONG 64}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00255}\mbox{\hyperlink{osbsd_8h_ae5f2a2a916b6cd223ef7c23e39ee7a64}{00255}} \textcolor{preprocessor}{\#define VDEV\_TO\_ID(pVDev) (DEVICEID)(ULONG\_PTR)(pVDev)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00256}\mbox{\hyperlink{osbsd_8h_a23b7655ea228b4b2008b0b601f3bb50b}{00256}} \textcolor{preprocessor}{\#define ID\_TO\_VDEV(id) (PVDevice)(((ULONG\_PTR)gIal\_Adapter \& 0xffffffff00000000) | (id))}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00257}00257 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00258}00258 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00259}\mbox{\hyperlink{osbsd_8h_a2bd0d4e35edaa2f03c9ecc2f0628d9e4}{00259}} \textcolor{preprocessor}{\#define INVALID\_DEVICEID                (-\/1)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00260}\mbox{\hyperlink{osbsd_8h_a9697171659f2c8fcd555bcaec96e1524}{00260}} \textcolor{preprocessor}{\#define INVALID\_STRIPSIZE               (-\/1)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00261}00261 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00262}\mbox{\hyperlink{osbsd_8h_a9a7f9120381ef1e28180f81f213ee66f}{00262}} \textcolor{preprocessor}{\#define shortswap(w) ((WORD)((w)>>8 | ((w) \& 0xFF)<<8))}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00263}00263 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00264}00264 \textcolor{preprocessor}{\#ifndef MinBlockSizeShift}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00265}\mbox{\hyperlink{osbsd_8h_a52c59fbc9afe64859e694cba3d155a77}{00265}} \textcolor{preprocessor}{\#define MinBlockSizeShift 5}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00266}\mbox{\hyperlink{osbsd_8h_a441243b490ae6a48f289010fa8fff126}{00266}} \textcolor{preprocessor}{\#define MaxBlockSizeShift 12}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00267}00267 \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00268}00268 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00269}00269 \textcolor{preprocessor}{\#pragma pack(1)}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00270}\mbox{\hyperlink{struct__HPT__IOCTL__TRANSFER__PARAM}{00270}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__HPT__IOCTL__TRANSFER__PARAM}{\_HPT\_IOCTL\_TRANSFER\_PARAM}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00271}00271 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00272}\mbox{\hyperlink{struct__HPT__IOCTL__TRANSFER__PARAM_ab703d4b37f400d43caef66eb3cfde930}{00272}}         \mbox{\hyperlink{mvOs_8h_abe09d1bea023be6a07cbadde8e955435}{ULONG}} \mbox{\hyperlink{struct__HPT__IOCTL__TRANSFER__PARAM_ab703d4b37f400d43caef66eb3cfde930}{nInBufferSize}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00273}\mbox{\hyperlink{struct__HPT__IOCTL__TRANSFER__PARAM_a93d8a944b458489fefc09fb140545c3f}{00273}}         \mbox{\hyperlink{mvOs_8h_abe09d1bea023be6a07cbadde8e955435}{ULONG}} \mbox{\hyperlink{struct__HPT__IOCTL__TRANSFER__PARAM_a93d8a944b458489fefc09fb140545c3f}{nOutBufferSize}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00274}\mbox{\hyperlink{struct__HPT__IOCTL__TRANSFER__PARAM_a013be8475470f2ee56e4d4f9a3c75f65}{00274}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}} \mbox{\hyperlink{struct__HPT__IOCTL__TRANSFER__PARAM_a013be8475470f2ee56e4d4f9a3c75f65}{buffer}}[0];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00275}\mbox{\hyperlink{osbsd_8h_a33dd041c072b19fdd910643e04dd2524}{00275}} \}\mbox{\hyperlink{osbsd_8h_a33dd041c072b19fdd910643e04dd2524}{HPT\_IOCTL\_TRANSFER\_PARAM}}, *\mbox{\hyperlink{osbsd_8h_a98d7309486538e7acc9e895aca658bd7}{PHPT\_IOCTL\_TRANSFER\_PARAM}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00276}00276 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00277}\mbox{\hyperlink{struct__HPT__SET__STATE__PARAM}{00277}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__HPT__SET__STATE__PARAM}{\_HPT\_SET\_STATE\_PARAM}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00278}00278 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00279}\mbox{\hyperlink{struct__HPT__SET__STATE__PARAM_a53ad46e49a2137fa26eb7f3aca725744}{00279}}         \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}} \mbox{\hyperlink{struct__HPT__SET__STATE__PARAM_a53ad46e49a2137fa26eb7f3aca725744}{idArray}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00280}\mbox{\hyperlink{struct__HPT__SET__STATE__PARAM_ab5c64742fb06b6dd8021266a250b2f5b}{00280}}         \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}} \mbox{\hyperlink{struct__HPT__SET__STATE__PARAM_ab5c64742fb06b6dd8021266a250b2f5b}{state}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00281}\mbox{\hyperlink{osbsd_8h_a198eb5aac6df0786266161db36f8fdf7}{00281}} \} \mbox{\hyperlink{osbsd_8h_a198eb5aac6df0786266161db36f8fdf7}{HPT\_SET\_STATE\_PARAM}}, *\mbox{\hyperlink{osbsd_8h_a42116a1a275c13b72a7797df02180b6c}{PHPT\_SET\_STATE\_PARAM}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00282}00282 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00283}\mbox{\hyperlink{struct__HPT__SET__ARRAY__INFO}{00283}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__HPT__SET__ARRAY__INFO}{\_HPT\_SET\_ARRAY\_INFO}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00284}00284 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00285}\mbox{\hyperlink{struct__HPT__SET__ARRAY__INFO_a87e434551635d85f093789ace18eba65}{00285}}         \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}} \mbox{\hyperlink{struct__HPT__SET__ARRAY__INFO_a87e434551635d85f093789ace18eba65}{idArray}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00286}\mbox{\hyperlink{struct__HPT__SET__ARRAY__INFO_a2a194ff17641edaf6c1f173674ed4518}{00286}}         \mbox{\hyperlink{struct__ALTERABLE__ARRAY__INFO}{ALTERABLE\_ARRAY\_INFO}} \mbox{\hyperlink{struct__HPT__SET__ARRAY__INFO_a2a194ff17641edaf6c1f173674ed4518}{Info}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00287}\mbox{\hyperlink{osbsd_8h_abe556feae478d153b634ccc890aaf442}{00287}} \} \mbox{\hyperlink{osbsd_8h_abe556feae478d153b634ccc890aaf442}{HPT\_SET\_ARRAY\_INFO}}, *\mbox{\hyperlink{osbsd_8h_a4d598a7b4d84968709d001212a0657f1}{PHPT\_SET\_ARRAY\_INFO}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00288}00288 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00289}\mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO}{00289}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO}{\_HPT\_SET\_DEVICE\_INFO}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00290}00290 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00291}\mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO_a36d40c7263f4d933553ca325684b4fc3}{00291}}         \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}} \mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO_a36d40c7263f4d933553ca325684b4fc3}{idDisk}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00292}\mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO_ab9bbb073f0a926d86e65ffd7080f6578}{00292}}         \mbox{\hyperlink{struct__ALTERABLE__DEVICE__INFO}{ALTERABLE\_DEVICE\_INFO}} \mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO_ab9bbb073f0a926d86e65ffd7080f6578}{Info}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00293}\mbox{\hyperlink{osbsd_8h_a16981938862494d30228305bfaa26b48}{00293}} \} \mbox{\hyperlink{osbsd_8h_a16981938862494d30228305bfaa26b48}{HPT\_SET\_DEVICE\_INFO}}, *\mbox{\hyperlink{osbsd_8h_a7b266e792a1f8c432677e2f027a1f068}{PHPT\_SET\_DEVICE\_INFO}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00294}00294 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00295}\mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO__V2}{00295}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO__V2}{\_HPT\_SET\_DEVICE\_INFO\_V2}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00296}00296 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00297}\mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO__V2_a17ee2dff2caa9303c736e7ddb1623b24}{00297}}         \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}} \mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO__V2_a17ee2dff2caa9303c736e7ddb1623b24}{idDisk}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00298}\mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO__V2_a4d4b4ff17a567371ad7f85280e5de7ac}{00298}}         \mbox{\hyperlink{struct__ALTERABLE__DEVICE__INFO__V2}{ALTERABLE\_DEVICE\_INFO\_V2}} \mbox{\hyperlink{struct__HPT__SET__DEVICE__INFO__V2_a4d4b4ff17a567371ad7f85280e5de7ac}{Info}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00299}\mbox{\hyperlink{osbsd_8h_a86a84d25e25a7a09aa29c62240aea755}{00299}} \} \mbox{\hyperlink{osbsd_8h_a86a84d25e25a7a09aa29c62240aea755}{HPT\_SET\_DEVICE\_INFO\_V2}}, *\mbox{\hyperlink{osbsd_8h_aa458224bbcf8d0699bf5dda87a2664f5}{PHPT\_SET\_DEVICE\_INFO\_V2}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00300}00300 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00301}\mbox{\hyperlink{struct__HPT__ADD__DISK__TO__ARRAY}{00301}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__HPT__ADD__DISK__TO__ARRAY}{\_HPT\_ADD\_DISK\_TO\_ARRAY}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00302}00302 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00303}\mbox{\hyperlink{struct__HPT__ADD__DISK__TO__ARRAY_a1c0915b50b38d7caa55badd1f3f8cfa9}{00303}}         \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}} \mbox{\hyperlink{struct__HPT__ADD__DISK__TO__ARRAY_a1c0915b50b38d7caa55badd1f3f8cfa9}{idArray}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00304}\mbox{\hyperlink{struct__HPT__ADD__DISK__TO__ARRAY_a98b9fcfb6f39213e41030b9d0bcf7066}{00304}}         \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}} \mbox{\hyperlink{struct__HPT__ADD__DISK__TO__ARRAY_a98b9fcfb6f39213e41030b9d0bcf7066}{idDisk}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00305}\mbox{\hyperlink{osbsd_8h_a7f89c6611444778dcb5a00330d42be88}{00305}} \} \mbox{\hyperlink{osbsd_8h_a7f89c6611444778dcb5a00330d42be88}{HPT\_ADD\_DISK\_TO\_ARRAY}}, *\mbox{\hyperlink{osbsd_8h_af49fe76c1aa2e0568d3f2174bf1cb3db}{PHPT\_ADD\_DISK\_TO\_ARRAY}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00306}00306 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00307}\mbox{\hyperlink{struct__HPT__DEVICE__IO}{00307}} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\mbox{\hyperlink{struct__HPT__DEVICE__IO}{\_HPT\_DEVICE\_IO}}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00308}00308 \{}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00309}\mbox{\hyperlink{struct__HPT__DEVICE__IO_a5e0b22fa184509d48d760a7d655ebcae}{00309}}         \mbox{\hyperlink{hptintf_8h_aa0c5d62ca9f6fe26b57ea045e79a1c96}{DEVICEID}}        \mbox{\hyperlink{struct__HPT__DEVICE__IO_a5e0b22fa184509d48d760a7d655ebcae}{id}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00310}\mbox{\hyperlink{struct__HPT__DEVICE__IO_a1c9b58a78dbe38a1197ca6fa2dd5bc67}{00310}}         \textcolor{keywordtype}{int}                     \mbox{\hyperlink{struct__HPT__DEVICE__IO_a1c9b58a78dbe38a1197ca6fa2dd5bc67}{cmd}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00311}\mbox{\hyperlink{struct__HPT__DEVICE__IO_a4d75562ed54ea390840db5fe18c17cc5}{00311}}         \mbox{\hyperlink{mvOs_8h_abe09d1bea023be6a07cbadde8e955435}{ULONG}}              \mbox{\hyperlink{struct__HPT__DEVICE__IO_a4d75562ed54ea390840db5fe18c17cc5}{lba}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00312}\mbox{\hyperlink{struct__HPT__DEVICE__IO_a0d4b821554d0f7f8211942c62e7f5962}{00312}}         \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}}              \mbox{\hyperlink{struct__HPT__DEVICE__IO_a0d4b821554d0f7f8211942c62e7f5962}{nSector}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00313}\mbox{\hyperlink{struct__HPT__DEVICE__IO_af86c68be261ddc515d4731e722a2cb64}{00313}}         \mbox{\hyperlink{mvOs_8h_a4f4bb67531a9bf6f0b9c6ad76aeba587}{UCHAR}}              \mbox{\hyperlink{struct__HPT__DEVICE__IO_af86c68be261ddc515d4731e722a2cb64}{buffer}}[0];}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00314}\mbox{\hyperlink{osbsd_8h_a4f54bdd6642219df1628e18e1db259e1}{00314}} \} \mbox{\hyperlink{osbsd_8h_a4f54bdd6642219df1628e18e1db259e1}{HPT\_DEVICE\_IO}}, *\mbox{\hyperlink{osbsd_8h_a16ebd618644fc8fbfa512a8ab8617db4}{PHPT\_DEVICE\_IO}};}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00315}00315 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00316}00316 \textcolor{keywordtype}{int} \mbox{\hyperlink{osbsd_8h_abb1cd7891be78845ec7f8230fb1dc91d}{check\_VDevice\_valid}}(\mbox{\hyperlink{struct__VDevice}{PVDevice}});}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00317}00317 \textcolor{keywordtype}{int} \mbox{\hyperlink{osbsd_8h_a91a76c7953a36c0db070b3591c89a870}{hpt\_default\_ioctl}}(\mbox{\hyperlink{global_8h_ad7d17cfe4eeb62e5e19239af053728d3}{\_VBUS\_ARG}} \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}}, \mbox{\hyperlink{mvOs_8h_a2b5e00c0c5a5aa5199ba9f28ec3e8caa}{PVOID}}, \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}}, \mbox{\hyperlink{mvOs_8h_a2b5e00c0c5a5aa5199ba9f28ec3e8caa}{PVOID}}, \mbox{\hyperlink{mvOs_8h_a798af1e30bc65f319c1a246cecf59e39}{DWORD}}, \mbox{\hyperlink{mvOs_8h_a4acb2f6880407bbe0bea1e45b5b3238d}{PDWORD}});}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00318}00318 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00319}\mbox{\hyperlink{osbsd_8h_accf0155cdd311f70a7e2e8c19ab5d062}{00319}} \textcolor{preprocessor}{\#define HPT\_NULL\_ID 0}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00320}00320 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00321}00321 \textcolor{preprocessor}{\#pragma pack()}}
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00322}00322 }
\DoxyCodeLine{\Hypertarget{osbsd_8h_source_l00323}00323 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
