cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

rtl871x_rf.h (1359B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2/******************************************************************************
      3 *
      4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
      5 *
      6 * Modifications for inclusion into the Linux staging tree are
      7 * Copyright(c) 2010 Larry Finger. All rights reserved.
      8 *
      9 * Contact information:
     10 * WLAN FAE <wlanfae@realtek.com>
     11 * Larry Finger <Larry.Finger@lwfinger.net>
     12 *
     13 ******************************************************************************/
     14#ifndef	__RTL871X_RF_H_
     15#define __RTL871X_RF_H_
     16
     17#include "rtl871x_cmd.h"
     18#include "rtl871x_mp_phy_regdef.h"
     19
     20#define OFDM_PHY		1
     21#define MIXED_PHY		2
     22#define CCK_PHY		3
     23#define NumRates	(13)
     24#define RTL8711_RF_MAX_SENS 6
     25#define RTL8711_RF_DEF_SENS 4
     26#define NUM_CHANNELS	15
     27
     28struct	regulatory_class {
     29	u32	starting_freq;		/*MHz, */
     30	u8	channel_set[NUM_CHANNELS];
     31	u8	channel_cck_power[NUM_CHANNELS]; /*dbm*/
     32	u8	channel_ofdm_power[NUM_CHANNELS];/*dbm*/
     33	u8	txpower_limit;		/*dbm*/
     34	u8	channel_spacing;	/*MHz*/
     35	u8	modem;
     36};
     37
     38enum	_REG_PREAMBLE_MODE {
     39	PREAMBLE_LONG	= 1,
     40	PREAMBLE_AUTO	= 2,
     41	PREAMBLE_SHORT	= 3,
     42};
     43
     44enum {
     45	RTL8712_RFC_1T = 0x10,
     46	RTL8712_RFC_2T = 0x20,
     47	RTL8712_RFC_1R = 0x01,
     48	RTL8712_RFC_2R = 0x02,
     49	RTL8712_RFC_1T1R = 0x11,
     50	RTL8712_RFC_1T2R = 0x12,
     51	RTL8712_RFC_TURBO = 0x92,
     52	RTL8712_RFC_2T2R = 0x22
     53};
     54
     55#endif /*__RTL871X_RF_H_*/