\hypertarget{r88e__led_8c_source}{}\doxysection{r88e\+\_\+led.\+c}
\label{r88e__led_8c_source}\index{dev/rtwn/rtl8188e/r88e\_led.c@{dev/rtwn/rtl8188e/r88e\_led.c}}
\mbox{\hyperlink{r88e__led_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00001}00001 \textcolor{comment}{/*      \$OpenBSD: if\_urtwn.c,v 1.16 2011/02/10 17:26:40 jakemsr Exp \$   */}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00002}00002 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00003}00003 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00005}00005 \textcolor{comment}{ * Copyright (c) 2014 Kevin Lo <kevlo@FreeBSD.org>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00006}00006 \textcolor{comment}{ * Copyright (c) 2016 Andriy Voskoboinyk <avos@FreeBSD.org>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00007}00007 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00008}00008 \textcolor{comment}{ * Permission to use, copy, modify, and distribute this software for any}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00009}00009 \textcolor{comment}{ * purpose with or without fee is hereby granted, provided that the above}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00010}00010 \textcolor{comment}{ * copyright notice and this permission notice appear in all copies.}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00011}00011 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00012}00012 \textcolor{comment}{ * THE SOFTWARE IS PROVIDED "{}AS IS"{} AND THE AUTHOR DISCLAIMS ALL WARRANTIES}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00013}00013 \textcolor{comment}{ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00014}00014 \textcolor{comment}{ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00015}00015 \textcolor{comment}{ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00016}00016 \textcolor{comment}{ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00017}00017 \textcolor{comment}{ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00018}00018 \textcolor{comment}{ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00019}00019 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00020}00020 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00021}00021 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00022}\mbox{\hyperlink{r88e__led_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00022}} \mbox{\hyperlink{r88e__led_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00023}00023 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00024}00024 \textcolor{preprocessor}{\#include "{}opt\_wlan.h"{}}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00025}00025 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00026}00026 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00027}00027 \textcolor{preprocessor}{\#include <sys/lock.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00028}00028 \textcolor{preprocessor}{\#include <sys/mutex.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00029}00029 \textcolor{preprocessor}{\#include <sys/mbuf.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00030}00030 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00031}00031 \textcolor{preprocessor}{\#include <sys/socket.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00032}00032 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00033}00033 \textcolor{preprocessor}{\#include <sys/malloc.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/queue.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00035}00035 \textcolor{preprocessor}{\#include <sys/taskqueue.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00036}00036 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00037}00037 \textcolor{preprocessor}{\#include <sys/endian.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00038}00038 \textcolor{preprocessor}{\#include <sys/linker.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00039}00039 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00040}00040 \textcolor{preprocessor}{\#include <net/if.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00041}00041 \textcolor{preprocessor}{\#include <net/ethernet.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00042}00042 \textcolor{preprocessor}{\#include <net/if\_media.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00044}00044 \textcolor{preprocessor}{\#include <net80211/ieee80211\_var.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00045}00045 \textcolor{preprocessor}{\#include <net80211/ieee80211\_radiotap.h>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00047}00047 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__rtwnvar_8h}{dev/rtwn/if\_rtwnvar.h}}>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00048}00048 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00049}00049 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{r88e_8h}{dev/rtwn/rtl8188e/r88e.h}}>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00050}00050 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{r88e__reg_8h}{dev/rtwn/rtl8188e/r88e\_reg.h}}>}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00051}00051 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00052}00052 \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00053}\mbox{\hyperlink{r88e_8h_a6ceeb600a6a07b419a39727268c305b4}{00053}} \mbox{\hyperlink{r88e__led_8c_a2157cdc75e225e76b82f22cf717bbcec}{r88e\_set\_led}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structrtwn__softc}{rtwn\_softc}} *sc, \textcolor{keywordtype}{int} led, \textcolor{keywordtype}{int} on)}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00054}00054 \{}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00055}00055 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00056}00056         \textcolor{keywordflow}{if} (led == \mbox{\hyperlink{if__rtwnvar_8h_acc4a4e9e637d289de9442e52c629472b}{RTWN\_LED\_LINK}}) \{}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00057}00057                 \textcolor{keywordflow}{if} (!on) \{}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00058}00058                         \mbox{\hyperlink{if__rtwnvar_8h_a7884b9ec832912e02680a76200618a74}{rtwn\_setbits\_1}}(sc, \mbox{\hyperlink{r92c__reg_8h_a2dcedf8bca69996dc911e397abef07eb}{R92C\_LEDCFG2}}, 0x6f,}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00059}00059                             \mbox{\hyperlink{r92c__reg_8h_ad55db433062e168de3579332fb6b5af2}{R92C\_LEDCFG0\_DIS}});}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00060}00060                         \mbox{\hyperlink{if__rtwnvar_8h_a7884b9ec832912e02680a76200618a74}{rtwn\_setbits\_1}}(sc, \mbox{\hyperlink{r92c__reg_8h_a0e6c2bb4446cca8bd5d565fb7077de34}{R92C\_MAC\_PINMUX\_CFG}}, 0x01, 0);}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00061}00061                 \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00062}00062                         \mbox{\hyperlink{if__rtwnvar_8h_a7884b9ec832912e02680a76200618a74}{rtwn\_setbits\_1}}(sc, \mbox{\hyperlink{r92c__reg_8h_a2dcedf8bca69996dc911e397abef07eb}{R92C\_LEDCFG2}}, 0x0f, 0x60);}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00063}00063                 sc-\/>\mbox{\hyperlink{structrtwn__softc_a3a187dc3da1d3a9b49a757107859dbbe}{ledlink}} = on;        \textcolor{comment}{/* Save LED state. */}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00064}00064         \}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00065}00065 }
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00066}00066         \textcolor{comment}{/* XXX led \#1? */}}
\DoxyCodeLine{\Hypertarget{r88e__led_8c_source_l00067}00067 \}}

\end{DoxyCode}
