\hypertarget{ah__osdep__ar9300_8c_source}{}\doxysection{ah\+\_\+osdep\+\_\+ar9300.\+c}
\label{ah__osdep__ar9300_8c_source}\index{dev/ath/ah\_osdep\_ar9300.c@{dev/ath/ah\_osdep\_ar9300.c}}
\mbox{\hyperlink{ah__osdep__ar9300_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00002}00002 \textcolor{comment}{ * Copyright 2017 Adrian Chadd <adrian@FreeBSD.org>.}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00004}00004 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00005}00005 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00006}00006 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00007}00007 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00008}00008 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00009}00009 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00010}00010 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00011}00011 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00012}00012 \textcolor{comment}{ * }}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00013}00013 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00014}00014 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00015}00015 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00016}00016 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00017}00017 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00018}00018 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00019}00019 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00020}00020 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00021}00021 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00022}00022 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00023}00023 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00024}00024 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00025}00025 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00026}00026 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00027}00027 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00028}00028 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00029}00029 \textcolor{preprocessor}{\#include "{}opt\_ah.h"{}}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00030}00030 \textcolor{preprocessor}{\#include "{}opt\_wlan.h"{}}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00031}00031 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00032}00032 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00033}00033 \textcolor{preprocessor}{\#include <sys/types.h>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00035}00035 \textcolor{preprocessor}{\#include <sys/conf.h>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00036}00036 \textcolor{preprocessor}{\#include <sys/errno.h>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00037}00037 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00038}00038 \textcolor{preprocessor}{\#include <sys/module.h>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00040}00040 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{ah_8h}{dev/ath/ath\_hal/ah.h}}>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00041}00041 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{ah__internal_8h}{dev/ath/ath\_hal/ah\_internal.h}}>}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00042}00042 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00043}00043 \textcolor{keyword}{extern} \textcolor{keyword}{struct }\mbox{\hyperlink{structath__hal__chip}{ath\_hal\_chip}} \mbox{\hyperlink{ah__osdep__ar9300_8c_aa551d0154d1fbde49429fb06df0a842e}{AR9300\_chip}};}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00044}00044 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00045}00045 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00046}\mbox{\hyperlink{ah__osdep__ar9300_8c_a3f1e4e92cc1ff8d3e806fda4b6da428d}{00046}} \mbox{\hyperlink{ah__osdep__ar9300_8c_a3f1e4e92cc1ff8d3e806fda4b6da428d}{ath\_hal\_ar9300\_modevent}}(module\_t mod \_\_unused, \textcolor{keywordtype}{int} type, \textcolor{keywordtype}{void} *data \_\_unused)}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00047}00047 \{}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00048}00048         \textcolor{keywordtype}{int} error = 0;}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00049}00049 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00050}00050         \textcolor{keywordflow}{switch} (type) \{}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00051}00051         \textcolor{keywordflow}{case} MOD\_LOAD:}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00052}00052                 \mbox{\hyperlink{ah__internal_8h_af4b53455f9ce7a033fbb2615360b55ea}{ath\_hal\_add\_chip}}(\&\mbox{\hyperlink{ah__osdep__ar9300_8c_aa551d0154d1fbde49429fb06df0a842e}{AR9300\_chip}});}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00053}00053                 printf(\textcolor{stringliteral}{"{}[ar9300] loaded\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00054}00054                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00055}00055 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00056}00056         \textcolor{keywordflow}{case} MOD\_UNLOAD:}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00057}00057                 \mbox{\hyperlink{ah_8c_ab64a134ccc7a2c9db51898e594282dcd}{ath\_hal\_remove\_chip}}(\&\mbox{\hyperlink{ah__osdep__ar9300_8c_aa551d0154d1fbde49429fb06df0a842e}{AR9300\_chip}});}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00058}00058                 printf(\textcolor{stringliteral}{"{}[ar9300] unloaded\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00059}00059                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00060}00060 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00061}00061         \textcolor{keywordflow}{case} MOD\_SHUTDOWN:}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00062}00062                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00063}00063 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00064}00064         \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00065}00065                 error = EOPNOTSUPP;}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00066}00066                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00067}00067         \}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00068}00068         \textcolor{keywordflow}{return} (error);}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00069}00069 \}}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00070}00070 }
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00071}\mbox{\hyperlink{ah__osdep__ar9300_8c_ab748f03a715230fdb70cd2feb5fecc23}{00071}} \mbox{\hyperlink{ah__osdep__ar9300_8c_ab748f03a715230fdb70cd2feb5fecc23}{DEV\_MODULE}}(ath\_hal\_ar9300, \mbox{\hyperlink{ah__osdep__ar9300_8c_a3f1e4e92cc1ff8d3e806fda4b6da428d}{ath\_hal\_ar9300\_modevent}}, NULL);}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00072}\mbox{\hyperlink{ah__osdep__ar9300_8c_ad90f4e3eff035680c1b6a69ce62bfdd4}{00072}} \mbox{\hyperlink{ah__osdep__ar9300_8c_ad90f4e3eff035680c1b6a69ce62bfdd4}{MODULE\_VERSION}}(ath\_hal\_ar9300, 1);}
\DoxyCodeLine{\Hypertarget{ah__osdep__ar9300_8c_source_l00073}\mbox{\hyperlink{ah__osdep__ar9300_8c_a139caa0606ec94c8107d4eab97b61a93}{00073}} \mbox{\hyperlink{ah__osdep__ar9300_8c_a139caa0606ec94c8107d4eab97b61a93}{MODULE\_DEPEND}}(ath\_hal\_ar9300, \mbox{\hyperlink{structath__hal}{ath\_hal}}, 1, 1, 1);}

\end{DoxyCode}
