Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278138
b: refs/heads/master
c: e2ebc83
h: refs/heads/master
v: v3
  • Loading branch information
Stanislaw Gruszka committed Nov 15, 2011
1 parent bcff2a0 commit 5e74176
Show file tree
Hide file tree
Showing 53 changed files with 7,038 additions and 7,038 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fee005e5dd82a43546c1b1beb187e82415360940
refs/heads/master: e2ebc8337d116acdc25469ec8547ae665f50a4c1
32 changes: 16 additions & 16 deletions trunk/drivers/net/wireless/iwlegacy/iwl-3945-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "iwl-3945-debugfs.h"


static int iwl3945_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz)
static int il3945_statistics_flag(struct il_priv *priv, char *buf, int bufsz)
{
int p = 0;

Expand All @@ -50,11 +50,11 @@ static int iwl3945_statistics_flag(struct iwl_priv *priv, char *buf, int bufsz)
return p;
}

ssize_t iwl3945_ucode_rx_stats_read(struct file *file,
ssize_t il3945_ucode_rx_stats_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{
struct iwl_priv *priv = file->private_data;
struct il_priv *priv = file->private_data;
int pos = 0;
char *buf;
int bufsz = sizeof(struct iwl39_statistics_rx_phy) * 40 +
Expand All @@ -66,12 +66,12 @@ ssize_t iwl3945_ucode_rx_stats_read(struct file *file,
struct iwl39_statistics_rx_non_phy *general, *accum_general;
struct iwl39_statistics_rx_non_phy *delta_general, *max_general;

if (!iwl_legacy_is_alive(priv))
if (!il_is_alive(priv))
return -EAGAIN;

buf = kzalloc(bufsz, GFP_KERNEL);
if (!buf) {
IWL_ERR(priv, "Can not allocate Buffer\n");
IL_ERR(priv, "Can not allocate Buffer\n");
return -ENOMEM;
}

Expand All @@ -93,7 +93,7 @@ ssize_t iwl3945_ucode_rx_stats_read(struct file *file,
max_cck = &priv->_3945.max_delta.rx.cck;
max_general = &priv->_3945.max_delta.rx.general;

pos += iwl3945_statistics_flag(priv, buf, bufsz);
pos += il3945_statistics_flag(priv, buf, bufsz);
pos += scnprintf(buf + pos, bufsz - pos, "%-32s current"
"acumulative delta max\n",
"Statistics_Rx - OFDM:");
Expand Down Expand Up @@ -325,23 +325,23 @@ ssize_t iwl3945_ucode_rx_stats_read(struct file *file,
return ret;
}

ssize_t iwl3945_ucode_tx_stats_read(struct file *file,
ssize_t il3945_ucode_tx_stats_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{
struct iwl_priv *priv = file->private_data;
struct il_priv *priv = file->private_data;
int pos = 0;
char *buf;
int bufsz = (sizeof(struct iwl39_statistics_tx) * 48) + 250;
ssize_t ret;
struct iwl39_statistics_tx *tx, *accum_tx, *delta_tx, *max_tx;

if (!iwl_legacy_is_alive(priv))
if (!il_is_alive(priv))
return -EAGAIN;

buf = kzalloc(bufsz, GFP_KERNEL);
if (!buf) {
IWL_ERR(priv, "Can not allocate Buffer\n");
IL_ERR(priv, "Can not allocate Buffer\n");
return -ENOMEM;
}

Expand All @@ -354,7 +354,7 @@ ssize_t iwl3945_ucode_tx_stats_read(struct file *file,
accum_tx = &priv->_3945.accum_statistics.tx;
delta_tx = &priv->_3945.delta_statistics.tx;
max_tx = &priv->_3945.max_delta.tx;
pos += iwl3945_statistics_flag(priv, buf, bufsz);
pos += il3945_statistics_flag(priv, buf, bufsz);
pos += scnprintf(buf + pos, bufsz - pos, "%-32s current"
"acumulative delta max\n",
"Statistics_Tx:");
Expand Down Expand Up @@ -421,11 +421,11 @@ ssize_t iwl3945_ucode_tx_stats_read(struct file *file,
return ret;
}

ssize_t iwl3945_ucode_general_stats_read(struct file *file,
ssize_t il3945_ucode_general_stats_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{
struct iwl_priv *priv = file->private_data;
struct il_priv *priv = file->private_data;
int pos = 0;
char *buf;
int bufsz = sizeof(struct iwl39_statistics_general) * 10 + 300;
Expand All @@ -435,12 +435,12 @@ ssize_t iwl3945_ucode_general_stats_read(struct file *file,
struct statistics_dbg *dbg, *accum_dbg, *delta_dbg, *max_dbg;
struct iwl39_statistics_div *div, *accum_div, *delta_div, *max_div;

if (!iwl_legacy_is_alive(priv))
if (!il_is_alive(priv))
return -EAGAIN;

buf = kzalloc(bufsz, GFP_KERNEL);
if (!buf) {
IWL_ERR(priv, "Can not allocate Buffer\n");
IL_ERR(priv, "Can not allocate Buffer\n");
return -ENOMEM;
}

Expand All @@ -461,7 +461,7 @@ ssize_t iwl3945_ucode_general_stats_read(struct file *file,
accum_div = &priv->_3945.accum_statistics.general.div;
delta_div = &priv->_3945.delta_statistics.general.div;
max_div = &priv->_3945.max_delta.general.div;
pos += iwl3945_statistics_flag(priv, buf, bufsz);
pos += il3945_statistics_flag(priv, buf, bufsz);
pos += scnprintf(buf + pos, bufsz - pos, "%-32s current"
"acumulative delta max\n",
"Statistics_General:");
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/iwlegacy/iwl-3945-debugfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,27 @@
#include "iwl-debug.h"

#ifdef CONFIG_IWLWIFI_LEGACY_DEBUGFS
ssize_t iwl3945_ucode_rx_stats_read(struct file *file, char __user *user_buf,
ssize_t il3945_ucode_rx_stats_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos);
ssize_t iwl3945_ucode_tx_stats_read(struct file *file, char __user *user_buf,
ssize_t il3945_ucode_tx_stats_read(struct file *file, char __user *user_buf,
size_t count, loff_t *ppos);
ssize_t iwl3945_ucode_general_stats_read(struct file *file,
ssize_t il3945_ucode_general_stats_read(struct file *file,
char __user *user_buf, size_t count,
loff_t *ppos);
#else
static ssize_t iwl3945_ucode_rx_stats_read(struct file *file,
static ssize_t il3945_ucode_rx_stats_read(struct file *file,
char __user *user_buf, size_t count,
loff_t *ppos)
{
return 0;
}
static ssize_t iwl3945_ucode_tx_stats_read(struct file *file,
static ssize_t il3945_ucode_tx_stats_read(struct file *file,
char __user *user_buf, size_t count,
loff_t *ppos)
{
return 0;
}
static ssize_t iwl3945_ucode_general_stats_read(struct file *file,
static ssize_t il3945_ucode_general_stats_read(struct file *file,
char __user *user_buf,
size_t count, loff_t *ppos)
{
Expand Down
12 changes: 6 additions & 6 deletions trunk/drivers/net/wireless/iwlegacy/iwl-3945-fh.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*****************************************************************************/
#ifndef __iwl_3945_fh_h__
#define __iwl_3945_fh_h__
#ifndef __il_3945_fh_h__
#define __il_3945_fh_h__

/************************************/
/* iwl3945 Flow Handler Definitions */
Expand Down Expand Up @@ -172,16 +172,16 @@

#define FH39_RSSR_CHNL0_RX_STATUS_CHNL_IDLE (0x01000000)

struct iwl3945_tfd_tb {
struct il3945_tfd_tb {
__le32 addr;
__le32 len;
} __packed;

struct iwl3945_tfd {
struct il3945_tfd {
__le32 control_flags;
struct iwl3945_tfd_tb tbs[4];
struct il3945_tfd_tb tbs[4];
u8 __pad[28];
} __packed;


#endif /* __iwl_3945_fh_h__ */
#endif /* __il_3945_fh_h__ */
46 changes: 23 additions & 23 deletions trunk/drivers/net/wireless/iwlegacy/iwl-3945-hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
* Please use iwl-3945.h for driver implementation definitions.
*/

#ifndef __iwl_3945_hw__
#define __iwl_3945_hw__
#ifndef __il_3945_hw__
#define __il_3945_hw__

#include "iwl-eeprom.h"

Expand All @@ -90,7 +90,7 @@
* Data copied from EEPROM.
* DO NOT ALTER THIS STRUCTURE!!!
*/
struct iwl3945_eeprom_txpower_sample {
struct il3945_eeprom_txpower_sample {
u8 gain_index; /* index into power (gain) setup table ... */
s8 power; /* ... for this pwr level for this chnl group */
u16 v_det; /* PA output voltage */
Expand All @@ -104,8 +104,8 @@ struct iwl3945_eeprom_txpower_sample {
* Data copied from EEPROM.
* DO NOT ALTER THIS STRUCTURE!!!
*/
struct iwl3945_eeprom_txpower_group {
struct iwl3945_eeprom_txpower_sample samples[5]; /* 5 power levels */
struct il3945_eeprom_txpower_group {
struct il3945_eeprom_txpower_sample samples[5]; /* 5 power levels */
s32 a, b, c, d, e; /* coefficients for voltage->power
* formula (signed) */
s32 Fa, Fb, Fc, Fd, Fe; /* these modify coeffs based on
Expand All @@ -123,7 +123,7 @@ struct iwl3945_eeprom_txpower_group {
* difference between current temperature and factory calib temperature.
* Data copied from EEPROM.
*/
struct iwl3945_eeprom_temperature_corr {
struct il3945_eeprom_temperature_corr {
u32 Ta;
u32 Tb;
u32 Tc;
Expand All @@ -134,7 +134,7 @@ struct iwl3945_eeprom_temperature_corr {
/*
* EEPROM map
*/
struct iwl3945_eeprom {
struct il3945_eeprom {
u8 reserved0[16];
u16 device_id; /* abs.ofs: 16 */
u8 reserved1[2];
Expand Down Expand Up @@ -171,46 +171,46 @@ struct iwl3945_eeprom {
* 2.4 GHz channels 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
*/
u16 band_1_count; /* abs.ofs: 196 */
struct iwl_eeprom_channel band_1_channels[14]; /* abs.ofs: 198 */
struct il_eeprom_channel band_1_channels[14]; /* abs.ofs: 198 */

/*
* 4.9 GHz channels 183, 184, 185, 187, 188, 189, 192, 196,
* 5.0 GHz channels 7, 8, 11, 12, 16
* (4915-5080MHz) (none of these is ever supported)
*/
u16 band_2_count; /* abs.ofs: 226 */
struct iwl_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */
struct il_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */

/*
* 5.2 GHz channels 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64
* (5170-5320MHz)
*/
u16 band_3_count; /* abs.ofs: 254 */
struct iwl_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */
struct il_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */

/*
* 5.5 GHz channels 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140
* (5500-5700MHz)
*/
u16 band_4_count; /* abs.ofs: 280 */
struct iwl_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */
struct il_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */

/*
* 5.7 GHz channels 145, 149, 153, 157, 161, 165
* (5725-5825MHz)
*/
u16 band_5_count; /* abs.ofs: 304 */
struct iwl_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */
struct il_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */

u8 reserved9[194];

/*
* 3945 Txpower calibration data.
*/
#define IWL_NUM_TX_CALIB_GROUPS 5
struct iwl3945_eeprom_txpower_group groups[IWL_NUM_TX_CALIB_GROUPS];
#define IL_NUM_TX_CALIB_GROUPS 5
struct il3945_eeprom_txpower_group groups[IL_NUM_TX_CALIB_GROUPS];
/* abs.ofs: 512 */
struct iwl3945_eeprom_temperature_corr corrections; /* abs.ofs: 832 */
struct il3945_eeprom_temperature_corr corrections; /* abs.ofs: 832 */
u8 reserved16[172]; /* fill out to full 1024 byte block */
} __packed;

Expand All @@ -225,7 +225,7 @@ struct iwl3945_eeprom {
#define IWL39_NUM_QUEUES 5
#define IWL39_CMD_QUEUE_NUM 4

#define IWL_DEFAULT_TX_RETRY 15
#define IL_DEFAULT_TX_RETRY 15

/*********************************************/

Expand Down Expand Up @@ -262,29 +262,29 @@ struct iwl3945_eeprom {
/* Size of uCode instruction memory in bootstrap state machine */
#define IWL39_MAX_BSM_SIZE IWL39_RTC_INST_SIZE

static inline int iwl3945_hw_valid_rtc_data_addr(u32 addr)
static inline int il3945_hw_valid_rtc_data_addr(u32 addr)
{
return (addr >= IWL39_RTC_DATA_LOWER_BOUND) &&
(addr < IWL39_RTC_DATA_UPPER_BOUND);
}

/* Base physical address of iwl3945_shared is provided to FH_TSSR_CBB_BASE
* and &iwl3945_shared.rx_read_ptr[0] is provided to FH_RCSR_RPTR_ADDR(0) */
struct iwl3945_shared {
/* Base physical address of il3945_shared is provided to FH_TSSR_CBB_BASE
* and &il3945_shared.rx_read_ptr[0] is provided to FH_RCSR_RPTR_ADDR(0) */
struct il3945_shared {
__le32 tx_base_ptr[8];
} __packed;

static inline u8 iwl3945_hw_get_rate(__le16 rate_n_flags)
static inline u8 il3945_hw_get_rate(__le16 rate_n_flags)
{
return le16_to_cpu(rate_n_flags) & 0xFF;
}

static inline u16 iwl3945_hw_get_rate_n_flags(__le16 rate_n_flags)
static inline u16 il3945_hw_get_rate_n_flags(__le16 rate_n_flags)
{
return le16_to_cpu(rate_n_flags);
}

static inline __le16 iwl3945_hw_set_rate_n_flags(u8 rate, u16 flags)
static inline __le16 il3945_hw_set_rate_n_flags(u8 rate, u16 flags)
{
return cpu_to_le16((u16)rate|flags);
}
Expand Down
14 changes: 7 additions & 7 deletions trunk/drivers/net/wireless/iwlegacy/iwl-3945-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,20 @@


/* Send led command */
static int iwl3945_send_led_cmd(struct iwl_priv *priv,
struct iwl_led_cmd *led_cmd)
static int il3945_send_led_cmd(struct il_priv *priv,
struct il_led_cmd *led_cmd)
{
struct iwl_host_cmd cmd = {
struct il_host_cmd cmd = {
.id = REPLY_LEDS_CMD,
.len = sizeof(struct iwl_led_cmd),
.len = sizeof(struct il_led_cmd),
.data = led_cmd,
.flags = CMD_ASYNC,
.callback = NULL,
};

return iwl_legacy_send_cmd(priv, &cmd);
return il_send_cmd(priv, &cmd);
}

const struct iwl_led_ops iwl3945_led_ops = {
.cmd = iwl3945_send_led_cmd,
const struct il_led_ops il3945_led_ops = {
.cmd = il3945_send_led_cmd,
};
8 changes: 4 additions & 4 deletions trunk/drivers/net/wireless/iwlegacy/iwl-3945-led.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
*
*****************************************************************************/

#ifndef __iwl_3945_led_h__
#define __iwl_3945_led_h__
#ifndef __il_3945_led_h__
#define __il_3945_led_h__

extern const struct iwl_led_ops iwl3945_led_ops;
extern const struct il_led_ops il3945_led_ops;

#endif /* __iwl_3945_led_h__ */
#endif /* __il_3945_led_h__ */
Loading

0 comments on commit 5e74176

Please sign in to comment.