\hypertarget{smb_8h_source}{}\doxysection{smb.\+h}
\label{smb_8h_source}\index{dev/smbus/smb.h@{dev/smbus/smb.h}}
\mbox{\hyperlink{smb_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/FreeBSD}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 1998 Nicolas Souchu}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00015}00015 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00016}00016 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00017}00017 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00018}00018 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00019}00019 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00020}00020 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00021}00021 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00022}00022 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00023}00023 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00024}00024 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00025}00025 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00026}00026 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00027}00027 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00028}00028 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00029}00029 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00030}00030 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00031}00031 \textcolor{preprocessor}{\#ifndef \_\_SMB\_H}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00032}00032 \textcolor{preprocessor}{\#define \_\_SMB\_H}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00033}00033 }
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/ioccom.h>}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00035}00035 }
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00036}\mbox{\hyperlink{structsmbcmd}{00036}} \textcolor{keyword}{struct }\mbox{\hyperlink{structsmbcmd}{smbcmd}} \{}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00037}\mbox{\hyperlink{structsmbcmd_ab71b5f43ac0a46473d5c96361473be4a}{00037}}         u\_char \mbox{\hyperlink{structsmbcmd_ab71b5f43ac0a46473d5c96361473be4a}{cmd}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00038}\mbox{\hyperlink{structsmbcmd_a0ea1440ec3219ae6657f69be24312b88}{00038}}         u\_char \mbox{\hyperlink{structsmbcmd_a0ea1440ec3219ae6657f69be24312b88}{reserved}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00039}\mbox{\hyperlink{structsmbcmd_a3221d507a8eeb6e086f28276c0f83b73}{00039}}         u\_short \mbox{\hyperlink{structsmbcmd_a3221d507a8eeb6e086f28276c0f83b73}{op}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00040}00040         \textcolor{keyword}{union }\{}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00041}\mbox{\hyperlink{structsmbcmd_a909d2065df1c2fb1252b4b797089db93}{00041}}                 \textcolor{keywordtype}{char}    \mbox{\hyperlink{structsmbcmd_a909d2065df1c2fb1252b4b797089db93}{byte}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00042}\mbox{\hyperlink{structsmbcmd_ad4953a2a54a6096fd3263ec5cb2f74b0}{00042}}                 \textcolor{keywordtype}{char}    \mbox{\hyperlink{structsmbcmd_ad4953a2a54a6096fd3263ec5cb2f74b0}{buf}}[2];}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00043}\mbox{\hyperlink{structsmbcmd_af8ab8841260ef0b20d24cea8df3d2f79}{00043}}                 \textcolor{keywordtype}{short}   \mbox{\hyperlink{structsmbcmd_af8ab8841260ef0b20d24cea8df3d2f79}{word}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00044}\mbox{\hyperlink{structsmbcmd_a190840bb8123cdb3186ae36400013162}{00044}}         \} \mbox{\hyperlink{structsmbcmd_a190840bb8123cdb3186ae36400013162}{wdata}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00045}00045         \textcolor{keyword}{union }\{}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00046}00046                 \textcolor{keywordtype}{char}    \mbox{\hyperlink{structsmbcmd_a909d2065df1c2fb1252b4b797089db93}{byte}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00047}00047                 \textcolor{keywordtype}{char}    \mbox{\hyperlink{structsmbcmd_ad4953a2a54a6096fd3263ec5cb2f74b0}{buf}}[2];}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00048}00048                 \textcolor{keywordtype}{short}   \mbox{\hyperlink{structsmbcmd_af8ab8841260ef0b20d24cea8df3d2f79}{word}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00049}\mbox{\hyperlink{structsmbcmd_ad80abec11ea8262b8bd7390ce87c2eab}{00049}}         \} \mbox{\hyperlink{structsmbcmd_ad80abec11ea8262b8bd7390ce87c2eab}{rdata}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00050}\mbox{\hyperlink{structsmbcmd_a66ed5e50ee4bd9ded6b0b4435225d9c0}{00050}}         \textcolor{keywordtype}{int}  \mbox{\hyperlink{structsmbcmd_a66ed5e50ee4bd9ded6b0b4435225d9c0}{slave}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00051}\mbox{\hyperlink{structsmbcmd_a2a978f4449c12f94e5edd656092dd01f}{00051}}         \textcolor{keywordtype}{char} *\mbox{\hyperlink{structsmbcmd_a2a978f4449c12f94e5edd656092dd01f}{wbuf}}; \textcolor{comment}{/* use wdata if NULL */}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00052}\mbox{\hyperlink{structsmbcmd_a34875106c569177370b9843fcc58ada8}{00052}}         \textcolor{keywordtype}{int}  \mbox{\hyperlink{structsmbcmd_a34875106c569177370b9843fcc58ada8}{wcount}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00053}\mbox{\hyperlink{structsmbcmd_a5018a34f2ea84c1fef38adee5607035c}{00053}}         \textcolor{keywordtype}{char} *\mbox{\hyperlink{structsmbcmd_a5018a34f2ea84c1fef38adee5607035c}{rbuf}}; \textcolor{comment}{/* use rdata if NULL */}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00054}\mbox{\hyperlink{structsmbcmd_aa4e3effee1e88061437cd05b8cad67ba}{00054}}         \textcolor{keywordtype}{int}  \mbox{\hyperlink{structsmbcmd_aa4e3effee1e88061437cd05b8cad67ba}{rcount}};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00055}00055 \};}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00056}00056 }
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00057}00057 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00058}00058 \textcolor{comment}{ * SMBus spec 2.0 says block transfers may be at most 32 bytes.}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00059}00059 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00060}\mbox{\hyperlink{smb_8h_a0b56f0e42679b8b8be1a8aeffc52caea}{00060}} \textcolor{preprocessor}{\#define SMB\_MAXBLOCKSIZE        32}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00061}00061 }
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00062}\mbox{\hyperlink{smb_8h_ad84ecc663ecc80c274515d9bfe80121f}{00062}} \textcolor{preprocessor}{\#define SMB\_QUICK\_WRITE \_IOW('i', 1, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00063}\mbox{\hyperlink{smb_8h_a79b36bfe16e4a43db06e314076371508}{00063}} \textcolor{preprocessor}{\#define SMB\_QUICK\_READ  \_IOW('i', 2, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00064}\mbox{\hyperlink{smb_8h_a2df70e1266e4fa84c2326623438d3a00}{00064}} \textcolor{preprocessor}{\#define SMB\_SENDB       \_IOW('i', 3, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00065}\mbox{\hyperlink{smb_8h_aed178f69f025e00f9c779a4e1d5a25c5}{00065}} \textcolor{preprocessor}{\#define SMB\_RECVB       \_IOWR('i', 4, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00066}\mbox{\hyperlink{smb_8h_a6fd224c2650f9995dec9e3703b17512e}{00066}} \textcolor{preprocessor}{\#define SMB\_WRITEB      \_IOW('i', 5, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00067}\mbox{\hyperlink{smb_8h_acbfbbddb2704ec6b1f600e94e8b439cd}{00067}} \textcolor{preprocessor}{\#define SMB\_WRITEW      \_IOW('i', 6, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00068}\mbox{\hyperlink{smb_8h_a2020010f9d67c8bd7c74d2b82a157785}{00068}} \textcolor{preprocessor}{\#define SMB\_READB       \_IOWR('i', 7, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00069}\mbox{\hyperlink{smb_8h_ac3a94025b628d115c2b6dc055576b69b}{00069}} \textcolor{preprocessor}{\#define SMB\_READW       \_IOWR('i', 8, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00070}\mbox{\hyperlink{smb_8h_a63e3ad891ba2d83ae59c2ba8a28678ed}{00070}} \textcolor{preprocessor}{\#define SMB\_PCALL       \_IOWR('i', 9, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00071}\mbox{\hyperlink{smb_8h_a7f211180dc9545e94700efed2d2957d7}{00071}} \textcolor{preprocessor}{\#define SMB\_BWRITE      \_IOW('i', 10, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00072}\mbox{\hyperlink{smb_8h_a52fb79dad5a84f5520e70dd715504bd4}{00072}} \textcolor{preprocessor}{\#define SMB\_BREAD       \_IOWR('i', 11, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00073}\mbox{\hyperlink{smb_8h_a7a834eb82a3e2d46d25d2d8bbe132ad5}{00073}} \textcolor{preprocessor}{\#define SMB\_OLD\_TRANS   \_IOWR('i', 12, struct smbcmd)}}
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00074}00074 }
\DoxyCodeLine{\Hypertarget{smb_8h_source_l00075}00075 \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
