\hypertarget{r12a__rom_8c_source}{}\doxysection{r12a\+\_\+rom.\+c}
\label{r12a__rom_8c_source}\index{dev/rtwn/rtl8812a/r12a\_rom.c@{dev/rtwn/rtl8812a/r12a\_rom.c}}
\mbox{\hyperlink{r12a__rom_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00002}00002 \textcolor{comment}{ * Copyright (c) 2016 Andriy Voskoboinyk <avos@FreeBSD.org>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00003}00003 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00004}00004 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00005}00005 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00006}00006 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00007}00007 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00008}00008 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00009}00009 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00010}00010 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00012}00012 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00013}00013 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00014}00014 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00015}00015 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00016}00016 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00017}00017 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00018}00018 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00019}00019 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00020}00020 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00021}00021 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00022}00022 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00023}00023 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00024}00024 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00025}00025 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00026}00026 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00027}00027 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00028}\mbox{\hyperlink{r12a__rom_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00028}} \mbox{\hyperlink{r12a__rom_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00029}00029 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00030}00030 \textcolor{preprocessor}{\#include "{}opt\_wlan.h"{}}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00031}00031 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00032}00032 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00033}00033 \textcolor{preprocessor}{\#include <sys/lock.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/mutex.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00035}00035 \textcolor{preprocessor}{\#include <sys/mbuf.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00036}00036 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00037}00037 \textcolor{preprocessor}{\#include <sys/socket.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00038}00038 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00039}00039 \textcolor{preprocessor}{\#include <sys/malloc.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00040}00040 \textcolor{preprocessor}{\#include <sys/queue.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00041}00041 \textcolor{preprocessor}{\#include <sys/taskqueue.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00042}00042 \textcolor{preprocessor}{\#include <sys/bus.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00043}00043 \textcolor{preprocessor}{\#include <sys/endian.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00044}00044 \textcolor{preprocessor}{\#include <sys/linker.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00045}00045 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00046}00046 \textcolor{preprocessor}{\#include <net/if.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00047}00047 \textcolor{preprocessor}{\#include <net/ethernet.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00048}00048 \textcolor{preprocessor}{\#include <net/if\_media.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00049}00049 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00050}00050 \textcolor{preprocessor}{\#include <net80211/ieee80211\_var.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00051}00051 \textcolor{preprocessor}{\#include <net80211/ieee80211\_radiotap.h>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00052}00052 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00053}00053 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__rtwnreg_8h}{dev/rtwn/if\_rtwnreg.h}}>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00054}00054 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__rtwnvar_8h}{dev/rtwn/if\_rtwnvar.h}}>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00055}00055 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00056}00056 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{if__rtwn__debug_8h}{dev/rtwn/if\_rtwn\_debug.h}}>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00057}00057 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00058}00058 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{r12a_8h}{dev/rtwn/rtl8812a/r12a.h}}>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00059}00059 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{r12a__var_8h}{dev/rtwn/rtl8812a/r12a\_var.h}}>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00060}00060 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{r12a__rom__image_8h}{dev/rtwn/rtl8812a/r12a\_rom\_image.h}}>}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00061}00061 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00062}00062 \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00063}\mbox{\hyperlink{r12a_8h_aec62bcd3cc8c18bb45e4ff3a9f3877aa}{00063}} \mbox{\hyperlink{r12a__rom_8c_aa016e178e778396f10e9e3eeaf4c9339}{r12a\_parse\_rom\_common}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structrtwn__softc}{rtwn\_softc}} *sc, uint8\_t *buf)}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00064}00064 \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00065}00065         \textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__softc}{r12a\_softc}} *rs = sc-\/>\mbox{\hyperlink{structrtwn__softc_a1fc52267a564938f36dba08768ee524b}{sc\_priv}};}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00066}00066         \textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__rom}{r12a\_rom}} *rom = (\textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__rom}{r12a\_rom}} *)buf;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00067}00067         \textcolor{keywordtype}{int} i, j, k;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00068}00068 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00069}00069         sc-\/>\mbox{\hyperlink{structrtwn__softc_a855dafd4d28d2229f683f0e82fa29a2b}{thermal\_meter}} = rom-\/>\mbox{\hyperlink{structr12a__rom_acebc1b65ff470163635322b181320346}{thermal\_meter}};}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00070}00070         rs-\/>\mbox{\hyperlink{structr12a__softc_a03db57782045f213415b6df4d794b72c}{crystalcap}} = \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(rom-\/>\mbox{\hyperlink{structr12a__rom_ab2a4b9b63dbce1bde9a13cc0d44747e1}{crystalcap}},}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00071}00071             \mbox{\hyperlink{r12a__rom__image_8h_ab306234afa70ed7a2f83c47c052af9ad}{R12A\_ROM\_CRYSTALCAP\_DEF}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00072}00072         rs-\/>\mbox{\hyperlink{structr12a__softc_afee5573bbef26c2024b3732f0e455e75}{tx\_bbswing\_2g}} = \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(rom-\/>\mbox{\hyperlink{structr12a__rom_a6238c03a2ac08dd6757b3172c17ab685}{tx\_bbswing\_2g}}, 0);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00073}00073         rs-\/>\mbox{\hyperlink{structr12a__softc_a5b82837b553c9af856bc3d5f53076aee}{tx\_bbswing\_5g}} = \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(rom-\/>\mbox{\hyperlink{structr12a__rom_a9f129b75dd908722597e410770def567}{tx\_bbswing\_5g}}, 0);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00074}00074 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00075}00075         \textcolor{keywordflow}{for} (i = 0; i < sc-\/>\mbox{\hyperlink{structrtwn__softc_af7790f131c031f825b4f17a258912af0}{ntxchains}}; i++) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00076}00076                 \textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__tx__pwr__2g}{r12a\_tx\_pwr\_2g}} *pwr\_2g = \&rom-\/>\mbox{\hyperlink{structr12a__rom_a55e07ac6c85d5017242bdb501777b48b}{tx\_pwr}}[i].\mbox{\hyperlink{structr12a__tx__pwr_ac5d6b59205f8a5b25703800785f3876b}{pwr\_2g}};}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00077}00077                 \textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__tx__pwr__5g}{r12a\_tx\_pwr\_5g}} *pwr\_5g = \&rom-\/>\mbox{\hyperlink{structr12a__rom_a55e07ac6c85d5017242bdb501777b48b}{tx\_pwr}}[i].\mbox{\hyperlink{structr12a__tx__pwr_a9ddbe0906297fc18cf40fbffd88fc9d2}{pwr\_5g}};}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00078}00078                 \textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__tx__pwr__diff__2g}{r12a\_tx\_pwr\_diff\_2g}} *pwr\_diff\_2g =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00079}00079                     \&rom-\/>\mbox{\hyperlink{structr12a__rom_a55e07ac6c85d5017242bdb501777b48b}{tx\_pwr}}[i].\mbox{\hyperlink{structr12a__tx__pwr_a3de10c248e3face8913787c31d0477a4}{pwr\_diff\_2g}};}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00080}00080                 \textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__tx__pwr__diff__5g}{r12a\_tx\_pwr\_diff\_5g}} *pwr\_diff\_5g =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00081}00081                     \&rom-\/>\mbox{\hyperlink{structr12a__rom_a55e07ac6c85d5017242bdb501777b48b}{tx\_pwr}}[i].\mbox{\hyperlink{structr12a__tx__pwr_a23ae168cd989d3b0ce6652180cb0731f}{pwr\_diff\_5g}};}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00082}00082 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00083}00083                 \textcolor{keywordflow}{for} (j = 0; j < \mbox{\hyperlink{r12a__rom__defs_8h_a6e0c8a22709cd669c6592ae7cf753983}{R12A\_GROUP\_2G}} -\/ 1; j++) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00084}00084                         rs-\/>\mbox{\hyperlink{structr12a__softc_aee86422abe8bec7524bbed410ae5f97d}{cck\_tx\_pwr}}[i][j] =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00085}00085                             \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(pwr\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__2g_a5a9e9ae83f620caa389a9101f1f488db}{cck}}[j],}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00086}00086                                 \mbox{\hyperlink{r12a__rom__image_8h_a63f9f58de2d025c71835d7f0819927ff}{R12A\_DEF\_TX\_PWR\_2G}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00087}00087                         rs-\/>\mbox{\hyperlink{structr12a__softc_a9aa46c5c495cc7490b0af298d7af92ae}{ht40\_tx\_pwr\_2g}}[i][j] =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00088}00088                             \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(pwr\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__2g_a2fd21a03fa81add4a917933c92192a48}{ht40}}[j],}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00089}00089                                 \mbox{\hyperlink{r12a__rom__image_8h_a63f9f58de2d025c71835d7f0819927ff}{R12A\_DEF\_TX\_PWR\_2G}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00090}00090                 \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00091}00091                 rs-\/>\mbox{\hyperlink{structr12a__softc_aee86422abe8bec7524bbed410ae5f97d}{cck\_tx\_pwr}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(pwr\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__2g_a5a9e9ae83f620caa389a9101f1f488db}{cck}}[j],}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00092}00092                     \mbox{\hyperlink{r12a__rom__image_8h_a63f9f58de2d025c71835d7f0819927ff}{R12A\_DEF\_TX\_PWR\_2G}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00093}00093 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00094}00094                 rs-\/>\mbox{\hyperlink{structr12a__softc_a8f5d1720dd50a48474d7f94c5c81c491}{cck\_tx\_pwr\_diff\_2g}}[i][0] = 0;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00095}00095                 rs-\/>\mbox{\hyperlink{structr12a__softc_a1ac96d125097a0e419e1b19079fbdbd8}{ofdm\_tx\_pwr\_diff\_2g}}[i][0] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00096}00096                     \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_ab0491c365f09baa77494f8a4f9a1b93e}{ht20\_ofdm}}, LOW\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00097}00097                 rs-\/>\mbox{\hyperlink{structr12a__softc_ab9b9b0687cc1f040aae671833cc82664}{bw20\_tx\_pwr\_diff\_2g}}[i][0] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00098}00098                     \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_ab0491c365f09baa77494f8a4f9a1b93e}{ht20\_ofdm}}, HIGH\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00099}00099                 rs-\/>\mbox{\hyperlink{structr12a__softc_a27c0d7161c23759bb14d35cc8933e713}{bw40\_tx\_pwr\_diff\_2g}}[i][0] = 0;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00100}00100 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00101}00101                 \textcolor{keywordflow}{for} (j = 1, k = 0; k < nitems(pwr\_diff\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_aac31fa340712c98b4bf6760b26b3a45a}{diff123}}); j++, k++) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00102}00102                         rs-\/>\mbox{\hyperlink{structr12a__softc_a8f5d1720dd50a48474d7f94c5c81c491}{cck\_tx\_pwr\_diff\_2g}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00103}00103                             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_aac31fa340712c98b4bf6760b26b3a45a}{diff123}}[k].\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_a9ec1242dd0991fd24e7c206dd97a10e4}{ofdm\_cck}}, LOW\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00104}00104                         rs-\/>\mbox{\hyperlink{structr12a__softc_a1ac96d125097a0e419e1b19079fbdbd8}{ofdm\_tx\_pwr\_diff\_2g}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00105}00105                             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_aac31fa340712c98b4bf6760b26b3a45a}{diff123}}[k].\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_a9ec1242dd0991fd24e7c206dd97a10e4}{ofdm\_cck}}, HIGH\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00106}00106                         rs-\/>\mbox{\hyperlink{structr12a__softc_ab9b9b0687cc1f040aae671833cc82664}{bw20\_tx\_pwr\_diff\_2g}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00107}00107                             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_aac31fa340712c98b4bf6760b26b3a45a}{diff123}}[k].\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_ae6fae3cedc55320b7b10d1ec2f88302f}{ht40\_ht20}}, LOW\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00108}00108                         rs-\/>\mbox{\hyperlink{structr12a__softc_a27c0d7161c23759bb14d35cc8933e713}{bw40\_tx\_pwr\_diff\_2g}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00109}00109                             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_2g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_aac31fa340712c98b4bf6760b26b3a45a}{diff123}}[k].\mbox{\hyperlink{structr12a__tx__pwr__diff__2g_ae6fae3cedc55320b7b10d1ec2f88302f}{ht40\_ht20}}, HIGH\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00110}00110                 \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00111}00111 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00112}00112                 \textcolor{keywordflow}{for} (j = 0; j < \mbox{\hyperlink{r12a__rom__defs_8h_a5957b2585f44dbc106f42d81880ea8a4}{R12A\_GROUP\_5G}}; j++) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00113}00113                         rs-\/>\mbox{\hyperlink{structr12a__softc_a9ff23c312323ed1ef8a35c23ba645219}{ht40\_tx\_pwr\_5g}}[i][j] =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00114}00114                             \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(pwr\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__5g_aca2515a0bd3964fb9961bd8af83f0833}{ht40}}[j],}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00115}00115                                 \mbox{\hyperlink{r12a__rom__image_8h_a3aafbbc74d508563f4e226f35636483d}{R12A\_DEF\_TX\_PWR\_5G}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00116}00116                 \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00117}00117 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00118}00118                 rs-\/>\mbox{\hyperlink{structr12a__softc_ac9aa3ec71e9100af70afcfe3b379fcfe}{ofdm\_tx\_pwr\_diff\_5g}}[i][0] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00119}00119                     \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_a6e53e1ecbaf3394607ec9be10a4f6990}{ht20\_ofdm}}, LOW\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00120}00120                 rs-\/>\mbox{\hyperlink{structr12a__softc_ac9aa3ec71e9100af70afcfe3b379fcfe}{ofdm\_tx\_pwr\_diff\_5g}}[i][1] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00121}00121                     \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_a898e9c6af55a80dabc5ca7a6c8bb8605}{ofdm\_ofdm}}[0], HIGH\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00122}00122                 rs-\/>\mbox{\hyperlink{structr12a__softc_ac9aa3ec71e9100af70afcfe3b379fcfe}{ofdm\_tx\_pwr\_diff\_5g}}[i][2] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00123}00123                     \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_a898e9c6af55a80dabc5ca7a6c8bb8605}{ofdm\_ofdm}}[0], LOW\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00124}00124                 rs-\/>\mbox{\hyperlink{structr12a__softc_ac9aa3ec71e9100af70afcfe3b379fcfe}{ofdm\_tx\_pwr\_diff\_5g}}[i][3] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00125}00125                     \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_a898e9c6af55a80dabc5ca7a6c8bb8605}{ofdm\_ofdm}}[1], LOW\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00126}00126 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00127}00127                 rs-\/>\mbox{\hyperlink{structr12a__softc_abea22527931f1c84f20f7c7bd119295e}{bw20\_tx\_pwr\_diff\_5g}}[i][0] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00128}00128                     \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_a6e53e1ecbaf3394607ec9be10a4f6990}{ht20\_ofdm}}, HIGH\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00129}00129                 rs-\/>\mbox{\hyperlink{structr12a__softc_a063931f428881bf06505179ab137dbd4}{bw40\_tx\_pwr\_diff\_5g}}[i][0] = 0;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00130}00130                 \textcolor{keywordflow}{for} (j = 1, k = 0; k < nitems(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_a2c7eca9316a44d1f0743e679e2aed77b}{ht40\_ht20}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00131}00131                     j++, k++) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00132}00132                         rs-\/>\mbox{\hyperlink{structr12a__softc_abea22527931f1c84f20f7c7bd119295e}{bw20\_tx\_pwr\_diff\_5g}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00133}00133                             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_a2c7eca9316a44d1f0743e679e2aed77b}{ht40\_ht20}}[k], LOW\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00134}00134                         rs-\/>\mbox{\hyperlink{structr12a__softc_a063931f428881bf06505179ab137dbd4}{bw40\_tx\_pwr\_diff\_5g}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00135}00135                             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_a2c7eca9316a44d1f0743e679e2aed77b}{ht40\_ht20}}[k], HIGH\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00136}00136                 \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00137}00137 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00138}00138                 \textcolor{keywordflow}{for} (j = 0; j < nitems(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_abf769c8e532ab577f3de5a7db33da1b1}{ht80\_ht160}}); j++) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00139}00139                         rs-\/>\mbox{\hyperlink{structr12a__softc_a95550c120a3c67e0871b3af428fb6a11}{bw80\_tx\_pwr\_diff\_5g}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00140}00140                             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_abf769c8e532ab577f3de5a7db33da1b1}{ht80\_ht160}}[j], HIGH\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00141}00141                         rs-\/>\mbox{\hyperlink{structr12a__softc_afe8c62c2b07ccb7b7ab4b4e94b3dcfb7}{bw160\_tx\_pwr\_diff\_5g}}[i][j] = \mbox{\hyperlink{r92c__rom__defs_8h_a52f3c700edb0a49cf5e79eab10330ec0}{RTWN\_SIGN4TO8}}(}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00142}00142                             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(pwr\_diff\_5g-\/>\mbox{\hyperlink{structr12a__tx__pwr__diff__5g_abf769c8e532ab577f3de5a7db33da1b1}{ht80\_ht160}}[j], LOW\_PART));}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00143}00143                 \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00144}00144         \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00145}00145 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00146}00146         rs-\/>\mbox{\hyperlink{structr12a__softc_a753db6f73719e52be67c24f8b8fde07e}{regulatory}} = \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(rom-\/>\mbox{\hyperlink{structr12a__rom_a0b51694944b61d61e061ea9d7baa016e}{rf\_board\_opt}}, R92C\_ROM\_RF1\_REGULATORY);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00147}00147         rs-\/>\mbox{\hyperlink{structr12a__softc_aa2fb6c92bce52f53ae32a6262146e995}{board\_type}} =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00148}00148             \mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(\mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(rom-\/>\mbox{\hyperlink{structr12a__rom_a0b51694944b61d61e061ea9d7baa016e}{rf\_board\_opt}}, \mbox{\hyperlink{r92c__rom__defs_8h_a368d0c60ed74a35cbf617126dd86d568}{R92C\_BOARD\_TYPE\_DONGLE}}),}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00149}00149                 R92C\_ROM\_RF1\_BOARD\_TYPE);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00150}00150         \mbox{\hyperlink{if__rtwn__debug_8h_a6ca1eeaaeb8a9a7f515dd33e65e9c591}{RTWN\_DPRINTF}}(sc, RTWN\_DEBUG\_ROM, \textcolor{stringliteral}{"{}\%s: regulatory type=\%d\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00151}00151             \_\_func\_\_, rs-\/>\mbox{\hyperlink{structr12a__softc_a753db6f73719e52be67c24f8b8fde07e}{regulatory}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00152}00152 \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00153}00153 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00154}00154 \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00155}\mbox{\hyperlink{r12a_8h_a5c00c1bca889ab5b07903590702ae22f}{00155}} \mbox{\hyperlink{r12a__rom_8c_ae5de4d6933da0db1d72b13aa442e2445}{r12a\_parse\_rom}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structrtwn__softc}{rtwn\_softc}} *sc, uint8\_t *buf)}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00156}00156 \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00157}00157         \textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__softc}{r12a\_softc}} *rs = sc-\/>\mbox{\hyperlink{structrtwn__softc_a1fc52267a564938f36dba08768ee524b}{sc\_priv}};}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00158}00158         \textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__rom}{r12a\_rom}} *rom = (\textcolor{keyword}{struct }\mbox{\hyperlink{structr12a__rom}{r12a\_rom}} *)buf;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00159}00159         uint8\_t \mbox{\hyperlink{structr12a__rom_a4adaf3154aebf5612c3a64c16d4f45cc}{pa\_type}}, \mbox{\hyperlink{structr12a__rom_a61543eee71700570ef99a597275f6750}{lna\_type\_2g}}, \mbox{\hyperlink{structr12a__rom_a18ff3150e91e52c641554a78cb14da21}{lna\_type\_5g}};}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00160}00160 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00161}00161         \textcolor{comment}{/* Read PA/LNA types. */}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00162}00162         \mbox{\hyperlink{structr12a__rom_a4adaf3154aebf5612c3a64c16d4f45cc}{pa\_type}} = \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(rom-\/>\mbox{\hyperlink{structr12a__rom_a4adaf3154aebf5612c3a64c16d4f45cc}{pa\_type}}, 0);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00163}00163         \mbox{\hyperlink{structr12a__rom_a61543eee71700570ef99a597275f6750}{lna\_type\_2g}} = \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(rom-\/>\mbox{\hyperlink{structr12a__rom_a61543eee71700570ef99a597275f6750}{lna\_type\_2g}}, 0);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00164}00164         \mbox{\hyperlink{structr12a__rom_a18ff3150e91e52c641554a78cb14da21}{lna\_type\_5g}} = \mbox{\hyperlink{r92c__rom__defs_8h_aa684bfae782cefd651cd28a16d45716d}{RTWN\_GET\_ROM\_VAR}}(rom-\/>\mbox{\hyperlink{structr12a__rom_a18ff3150e91e52c641554a78cb14da21}{lna\_type\_5g}}, 0);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00165}00165 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00166}00166         rs-\/>\mbox{\hyperlink{structr12a__softc_ae5dc77e44d596723ed1f56cf95749889}{ext\_pa\_2g}} = \mbox{\hyperlink{r12a__rom__image_8h_a3a352d677fb68f9fd9c253db53b083a2}{R12A\_ROM\_IS\_PA\_EXT\_2GHZ}}(\mbox{\hyperlink{structr12a__rom_a4adaf3154aebf5612c3a64c16d4f45cc}{pa\_type}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00167}00167         rs-\/>\mbox{\hyperlink{structr12a__softc_addc926d7fc5e8f6c1b45b315de265d43}{ext\_pa\_5g}} = \mbox{\hyperlink{r12a__rom__image_8h_a09fb9fa77ee2e1c9624abfb2730563f1}{R12A\_ROM\_IS\_PA\_EXT\_5GHZ}}(\mbox{\hyperlink{structr12a__rom_a4adaf3154aebf5612c3a64c16d4f45cc}{pa\_type}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00168}00168         rs-\/>\mbox{\hyperlink{structr12a__softc_ad513c7502d2bd8673a7e10fa53acdf64}{ext\_lna\_2g}} = \mbox{\hyperlink{r12a__rom__image_8h_a615729557b35036afa8cfa2b905048d9}{R21A\_ROM\_IS\_LNA\_EXT}}(\mbox{\hyperlink{structr12a__rom_a61543eee71700570ef99a597275f6750}{lna\_type\_2g}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00169}00169         rs-\/>\mbox{\hyperlink{structr12a__softc_aaafd120593d36abe4b31b9085a2441a4}{ext\_lna\_5g}} = \mbox{\hyperlink{r12a__rom__image_8h_a615729557b35036afa8cfa2b905048d9}{R21A\_ROM\_IS\_LNA\_EXT}}(\mbox{\hyperlink{structr12a__rom_a18ff3150e91e52c641554a78cb14da21}{lna\_type\_5g}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00170}00170         rs-\/>\mbox{\hyperlink{structr12a__softc_a6061b7b78ad98ce2574c3aba06e404b4}{bt\_coex}} = (\mbox{\hyperlink{if__rtwnreg_8h_aa1f710025311c0169fbc5b1296d914b6}{MS}}(rom-\/>\mbox{\hyperlink{structr12a__rom_a0b51694944b61d61e061ea9d7baa016e}{rf\_board\_opt}}, R92C\_ROM\_RF1\_BOARD\_TYPE) ==}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00171}00171             \mbox{\hyperlink{r92c__rom__defs_8h_a7177f76cd0f50fff8a64dbd24483962f}{R92C\_BOARD\_TYPE\_HIGHPA}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00172}00172         rs-\/>\mbox{\hyperlink{structr12a__softc_ace81a876d4ceb5a686f4da0db283822e}{bt\_ant\_num}} = (rom-\/>\mbox{\hyperlink{structr12a__rom_ab1cb744ad91a48a9b1e338882c2584b6}{rf\_bt\_opt}} \& \mbox{\hyperlink{r12a__rom__image_8h_a091424eef6d03040865c4e21cb68645e}{R12A\_RF\_BT\_OPT\_ANT\_NUM}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00173}00173 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00174}00174         \textcolor{keywordflow}{if} (rs-\/>\mbox{\hyperlink{structr12a__softc_ae5dc77e44d596723ed1f56cf95749889}{ext\_pa\_2g}}) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00175}00175                 rs-\/>\mbox{\hyperlink{structr12a__softc_aff90ce6bd8134bd206ca551b14f181f0}{type\_pa\_2g}} =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00176}00176                     \mbox{\hyperlink{r12a__rom__image_8h_a61a111efa3f19e99f1e08c3dd8208476}{R12A\_GET\_ROM\_PA\_TYPE}}(\mbox{\hyperlink{structr12a__rom_a61543eee71700570ef99a597275f6750}{lna\_type\_2g}}, 0) |}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00177}00177                     (\mbox{\hyperlink{r12a__rom__image_8h_a61a111efa3f19e99f1e08c3dd8208476}{R12A\_GET\_ROM\_PA\_TYPE}}(\mbox{\hyperlink{structr12a__rom_a61543eee71700570ef99a597275f6750}{lna\_type\_2g}}, 1) << 2);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00178}00178         \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00179}00179         \textcolor{keywordflow}{if} (rs-\/>\mbox{\hyperlink{structr12a__softc_addc926d7fc5e8f6c1b45b315de265d43}{ext\_pa\_5g}}) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00180}00180                 rs-\/>\mbox{\hyperlink{structr12a__softc_acc8debdc5f78830c46644098e8a72e58}{type\_pa\_5g}} =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00181}00181                     \mbox{\hyperlink{r12a__rom__image_8h_a61a111efa3f19e99f1e08c3dd8208476}{R12A\_GET\_ROM\_PA\_TYPE}}(\mbox{\hyperlink{structr12a__rom_a18ff3150e91e52c641554a78cb14da21}{lna\_type\_5g}}, 0) |}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00182}00182                     (\mbox{\hyperlink{r12a__rom__image_8h_a61a111efa3f19e99f1e08c3dd8208476}{R12A\_GET\_ROM\_PA\_TYPE}}(\mbox{\hyperlink{structr12a__rom_a18ff3150e91e52c641554a78cb14da21}{lna\_type\_5g}}, 1) << 2);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00183}00183         \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00184}00184         \textcolor{keywordflow}{if} (rs-\/>\mbox{\hyperlink{structr12a__softc_ad513c7502d2bd8673a7e10fa53acdf64}{ext\_lna\_2g}}) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00185}00185                 rs-\/>\mbox{\hyperlink{structr12a__softc_a52bd3cbc13e0bde21de874aea97c1879}{type\_lna\_2g}} =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00186}00186                     \mbox{\hyperlink{r12a__rom__image_8h_a9641cdcd5ff194bc35d180c75e22d68f}{R12A\_GET\_ROM\_LNA\_TYPE}}(\mbox{\hyperlink{structr12a__rom_a61543eee71700570ef99a597275f6750}{lna\_type\_2g}}, 0) |}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00187}00187                     (\mbox{\hyperlink{r12a__rom__image_8h_a9641cdcd5ff194bc35d180c75e22d68f}{R12A\_GET\_ROM\_LNA\_TYPE}}(\mbox{\hyperlink{structr12a__rom_a61543eee71700570ef99a597275f6750}{lna\_type\_2g}}, 1) << 2);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00188}00188         \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00189}00189         \textcolor{keywordflow}{if} (rs-\/>\mbox{\hyperlink{structr12a__softc_aaafd120593d36abe4b31b9085a2441a4}{ext\_lna\_5g}}) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00190}00190                 rs-\/>\mbox{\hyperlink{structr12a__softc_a77d19efd493896baad72fe45ea3b09fb}{type\_lna\_5g}} =}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00191}00191                     \mbox{\hyperlink{r12a__rom__image_8h_a9641cdcd5ff194bc35d180c75e22d68f}{R12A\_GET\_ROM\_LNA\_TYPE}}(\mbox{\hyperlink{structr12a__rom_a18ff3150e91e52c641554a78cb14da21}{lna\_type\_5g}}, 0) |}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00192}00192                     (\mbox{\hyperlink{r12a__rom__image_8h_a9641cdcd5ff194bc35d180c75e22d68f}{R12A\_GET\_ROM\_LNA\_TYPE}}(\mbox{\hyperlink{structr12a__rom_a18ff3150e91e52c641554a78cb14da21}{lna\_type\_5g}}, 1) << 2);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00193}00193         \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00194}00194 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00195}00195         \textcolor{keywordflow}{if} (rom-\/>\mbox{\hyperlink{structr12a__rom_a7fcae0685d97608cd644d340a65819fe}{rfe\_option}} \& 0x80) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00196}00196                 \textcolor{keywordflow}{if} (rs-\/>\mbox{\hyperlink{structr12a__softc_aaafd120593d36abe4b31b9085a2441a4}{ext\_lna\_5g}}) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00197}00197                         \textcolor{keywordflow}{if} (rs-\/>\mbox{\hyperlink{structr12a__softc_addc926d7fc5e8f6c1b45b315de265d43}{ext\_pa\_5g}}) \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00198}00198                                 \textcolor{keywordflow}{if} (rs-\/>\mbox{\hyperlink{structr12a__softc_ae5dc77e44d596723ed1f56cf95749889}{ext\_pa\_2g}} \&\& rs-\/>\mbox{\hyperlink{structr12a__softc_ad513c7502d2bd8673a7e10fa53acdf64}{ext\_lna\_2g}})}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00199}00199                                         rs-\/>\mbox{\hyperlink{structr12a__softc_aa02f25bef2041ca82030067dee86ad3d}{rfe\_type}} = 3;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00200}00200                                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00201}00201                                         rs-\/>\mbox{\hyperlink{structr12a__softc_aa02f25bef2041ca82030067dee86ad3d}{rfe\_type}} = 0;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00202}00202                         \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00203}00203                                 rs-\/>\mbox{\hyperlink{structr12a__softc_aa02f25bef2041ca82030067dee86ad3d}{rfe\_type}} = 2;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00204}00204                 \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00205}00205                         rs-\/>\mbox{\hyperlink{structr12a__softc_aa02f25bef2041ca82030067dee86ad3d}{rfe\_type}} = 4;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00206}00206         \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00207}00207                 rs-\/>\mbox{\hyperlink{structr12a__softc_aa02f25bef2041ca82030067dee86ad3d}{rfe\_type}} = rom-\/>\mbox{\hyperlink{structr12a__rom_a7fcae0685d97608cd644d340a65819fe}{rfe\_option}} \& 0x3f;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00208}00208 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00209}00209                 \textcolor{comment}{/* workaround for incorrect EFUSE map */}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00210}00210                 \textcolor{keywordflow}{if} (rs-\/>\mbox{\hyperlink{structr12a__softc_aa02f25bef2041ca82030067dee86ad3d}{rfe\_type}} == 4 \&\&}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00211}00211                     rs-\/>\mbox{\hyperlink{structr12a__softc_ae5dc77e44d596723ed1f56cf95749889}{ext\_pa\_2g}} \&\& rs-\/>\mbox{\hyperlink{structr12a__softc_ad513c7502d2bd8673a7e10fa53acdf64}{ext\_lna\_2g}} \&\&}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00212}00212                     rs-\/>\mbox{\hyperlink{structr12a__softc_addc926d7fc5e8f6c1b45b315de265d43}{ext\_pa\_5g}} \&\& rs-\/>\mbox{\hyperlink{structr12a__softc_aaafd120593d36abe4b31b9085a2441a4}{ext\_lna\_5g}})}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00213}00213                         rs-\/>\mbox{\hyperlink{structr12a__softc_aa02f25bef2041ca82030067dee86ad3d}{rfe\_type}} = 0;}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00214}00214         \}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00215}00215 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00216}00216         \textcolor{comment}{/* Read MAC address. */}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00217}00217         IEEE80211\_ADDR\_COPY(sc-\/>\mbox{\hyperlink{structrtwn__softc_aae46e0994e804dc7e69e812d38c88b39}{sc\_ic}}.ic\_macaddr, rom-\/>\mbox{\hyperlink{structr12a__rom_ada7ebd80f3482b5c4dc48ab583341512}{macaddr\_12a}});}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00218}00218 }
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00219}00219         \textcolor{comment}{/* Execute common part of initialization. */}}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00220}00220         \mbox{\hyperlink{r12a__rom_8c_aa016e178e778396f10e9e3eeaf4c9339}{r12a\_parse\_rom\_common}}(sc, buf);}
\DoxyCodeLine{\Hypertarget{r12a__rom_8c_source_l00221}00221 \}}

\end{DoxyCode}
