| 
									
										
										
										
											2010-12-08 11:12:31 -06:00
										 |  |  | /******************************************************************************
 | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2012-01-07 20:46:42 -06:00
										 |  |  |  * Copyright(c) 2009-2012  Realtek Corporation. | 
					
						
							| 
									
										
										
										
											2010-12-08 11:12:31 -06:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2014-09-22 09:39:19 -05:00
										 |  |  |  * This program is free software; you can redistribute it and/or modify it | 
					
						
							| 
									
										
										
										
											2010-12-08 11:12:31 -06:00
										 |  |  |  * under the terms of version 2 of the GNU General Public License as | 
					
						
							|  |  |  |  * published by the Free Software Foundation. | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2014-09-22 09:39:19 -05:00
										 |  |  |  * This program is distributed in the hope that it will be useful, but WITHOUT | 
					
						
							| 
									
										
										
										
											2010-12-08 11:12:31 -06:00
										 |  |  |  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | 
					
						
							|  |  |  |  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for | 
					
						
							|  |  |  |  * more details. | 
					
						
							|  |  |  |  * | 
					
						
							| 
									
										
										
										
											2014-09-22 09:39:19 -05:00
										 |  |  |  * The full GNU General Public License is included in this distribution in the | 
					
						
							| 
									
										
										
										
											2010-12-08 11:12:31 -06:00
										 |  |  |  * file called LICENSE. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Contact Information: | 
					
						
							|  |  |  |  * wlanfae <wlanfae@realtek.com> | 
					
						
							|  |  |  |  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, | 
					
						
							|  |  |  |  * Hsinchu 300, Taiwan. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Larry Finger <Larry.Finger@lwfinger.net> | 
					
						
							| 
									
										
										
										
											2011-04-25 13:23:10 -05:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2010-12-08 11:12:31 -06:00
										 |  |  |  *****************************************************************************/ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef __RTL_CORE_H__
 | 
					
						
							|  |  |  | #define __RTL_CORE_H__
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define RTL_SUPPORTED_FILTERS		\
 | 
					
						
							|  |  |  | 	(FIF_PROMISC_IN_BSS | \ | 
					
						
							|  |  |  | 	FIF_ALLMULTI | FIF_CONTROL | \ | 
					
						
							|  |  |  | 	FIF_OTHER_BSS | \ | 
					
						
							|  |  |  | 	FIF_FCSFAIL | \ | 
					
						
							|  |  |  | 	FIF_BCN_PRBRESP_PROMISC) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define RTL_SUPPORTED_CTRL_FILTER	0xFF
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-06 09:58:04 -06:00
										 |  |  | #define DM_DIG_THRESH_HIGH		40
 | 
					
						
							|  |  |  | #define DM_DIG_THRESH_LOW		35
 | 
					
						
							|  |  |  | #define DM_FALSEALARM_THRESH_LOW	400
 | 
					
						
							|  |  |  | #define DM_FALSEALARM_THRESH_HIGH	1000
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #define DM_DIG_MAX			0x3e
 | 
					
						
							|  |  |  | #define DM_DIG_MIN			0x1e
 | 
					
						
							| 
									
										
										
										
											2015-01-06 09:58:12 -06:00
										 |  |  | #define DM_DIG_MAX_AP			0x32
 | 
					
						
							| 
									
										
										
										
											2015-01-06 09:58:04 -06:00
										 |  |  | #define DM_DIG_BACKOFF_MAX		12
 | 
					
						
							|  |  |  | #define DM_DIG_BACKOFF_MIN		-4
 | 
					
						
							|  |  |  | #define DM_DIG_BACKOFF_DEFAULT		10
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-06 09:58:06 -06:00
										 |  |  | enum cck_packet_detection_threshold { | 
					
						
							|  |  |  | 	CCK_PD_STAGE_LOWRSSI = 0, | 
					
						
							|  |  |  | 	CCK_PD_STAGE_HIGHRSSI = 1, | 
					
						
							|  |  |  | 	CCK_FA_STAGE_LOW = 2, | 
					
						
							|  |  |  | 	CCK_FA_STAGE_HIGH = 3, | 
					
						
							|  |  |  | 	CCK_PD_STAGE_MAX = 4, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | enum dm_dig_ext_port_alg_e { | 
					
						
							|  |  |  | 	DIG_EXT_PORT_STAGE_0 = 0, | 
					
						
							|  |  |  | 	DIG_EXT_PORT_STAGE_1 = 1, | 
					
						
							|  |  |  | 	DIG_EXT_PORT_STAGE_2 = 2, | 
					
						
							|  |  |  | 	DIG_EXT_PORT_STAGE_3 = 3, | 
					
						
							|  |  |  | 	DIG_EXT_PORT_STAGE_MAX = 4, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-01-06 09:58:04 -06:00
										 |  |  | enum dm_dig_connect_e { | 
					
						
							|  |  |  | 	DIG_STA_DISCONNECT, | 
					
						
							|  |  |  | 	DIG_STA_CONNECT, | 
					
						
							|  |  |  | 	DIG_STA_BEFORE_CONNECT, | 
					
						
							|  |  |  | 	DIG_MULTISTA_DISCONNECT, | 
					
						
							|  |  |  | 	DIG_MULTISTA_CONNECT, | 
					
						
							|  |  |  | 	DIG_AP_DISCONNECT, | 
					
						
							|  |  |  | 	DIG_AP_CONNECT, | 
					
						
							|  |  |  | 	DIG_AP_ADD_STATION, | 
					
						
							|  |  |  | 	DIG_CONNECT_MAX | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-12-08 11:12:31 -06:00
										 |  |  | extern const struct ieee80211_ops rtl_ops; | 
					
						
							| 
									
										
										
										
											2012-01-30 09:54:49 -06:00
										 |  |  | void rtl_fw_cb(const struct firmware *firmware, void *context); | 
					
						
							| 
									
										
										
										
											2014-12-18 03:05:25 -06:00
										 |  |  | void rtl_wowlan_fw_cb(const struct firmware *firmware, void *context); | 
					
						
							| 
									
										
										
										
											2014-03-04 16:53:48 -06:00
										 |  |  | void rtl_addr_delay(u32 addr); | 
					
						
							|  |  |  | void rtl_rfreg_delay(struct ieee80211_hw *hw, enum radio_path rfpath, u32 addr, | 
					
						
							|  |  |  | 		     u32 mask, u32 data); | 
					
						
							|  |  |  | void rtl_bb_delay(struct ieee80211_hw *hw, u32 addr, u32 data); | 
					
						
							| 
									
										
										
										
											2014-09-26 16:40:27 -05:00
										 |  |  | bool rtl_cmd_send_packet(struct ieee80211_hw *hw, struct sk_buff *skb); | 
					
						
							| 
									
										
										
										
											2014-10-29 23:17:08 -05:00
										 |  |  | bool rtl_btc_status_false(void); | 
					
						
							| 
									
										
										
										
											2015-01-06 09:58:04 -06:00
										 |  |  | void rtl_dm_diginit(struct ieee80211_hw *hw, u32 cur_igval); | 
					
						
							| 
									
										
										
										
											2012-01-30 09:54:49 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-12-08 11:12:31 -06:00
										 |  |  | #endif
 |