Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6] / drivers / staging / rtl8187se / r8180_sa2400.h
1 /*
2         This is part of rtl8180 OpenSource driver - v 0.7
3         Copyright (C) Andrea Merello 2004  <andreamrl@tiscali.it>
4         Released under the terms of GPL (General Public Licence)
5
6         Parts of this driver are based on the GPL part of the official realtek driver
7         Parts of this driver are based on the rtl8180 driver skeleton from Patric Schenke & Andres Salomon
8         Parts of this driver are based on the Intel Pro Wireless 2100 GPL driver
9
10         We want to tanks the Authors of such projects and the Ndiswrapper project Authors.
11 */
12
13 #define SA2400_ANTENNA 0x91
14 #define SA2400_DIG_ANAPARAM_PWR1_ON 0x8
15 #define SA2400_ANA_ANAPARAM_PWR1_ON 0x28
16 #define SA2400_ANAPARAM_PWR0_ON 0x3
17
18 #define SA2400_RF_MAX_SENS 85
19 #define SA2400_RF_DEF_SENS 80
20
21 #define SA2400_REG4_FIRDAC_SHIFT 7
22
23 void sa2400_rf_init(struct net_device *dev);
24 void sa2400_rf_set_chan(struct net_device *dev,short ch);
25 short sa2400_rf_set_sens(struct net_device *dev,short sens);
26 void sa2400_rf_close(struct net_device *dev);