Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
wlcore.h File Reference
#include <linux/platform_device.h>
#include "wlcore_i.h"
#include "event.h"
#include "boot.h"

Go to the source code of this file.

Data Structures

struct  wlcore_ops
 
struct  wlcore_partition
 
struct  wlcore_partition_set
 
struct  wl1271_stats
 
struct  wl1271
 

Macros

#define WLCORE_MAX_TX_DESCRIPTORS   32
 
#define WLCORE_NUM_MAC_ADDRESSES   3
 
#define CHUNK_SIZE   16384
 
#define WLCORE_QUIRK_END_OF_TRANSACTION   BIT(0)
 
#define WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN   BIT(2)
 
#define WLCORE_QUIRK_RX_BLOCKSIZE_ALIGN   BIT(3)
 
#define WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED   BIT(4)
 
#define WLCORE_QUIRK_LEGACY_NVS   BIT(5)
 
#define WLCORE_QUIRK_NO_ELP   BIT(6)
 
#define WLCORE_QUIRK_TX_PAD_LAST_FRAME   BIT(7)
 
#define WLCORE_QUIRK_TKIP_HEADER_SPACE   BIT(8)
 
#define WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN   BIT(9)
 
#define WLCORE_QUIRK_DUAL_PROBE_TMPL   BIT(10)
 
#define CHIP_ID_1271_PG10   (0x4030101)
 
#define CHIP_ID_1271_PG20   (0x4030111)
 
#define CHIP_ID_1283_PG10   (0x05030101)
 
#define CHIP_ID_1283_PG20   (0x05030111)
 
#define HW_ACCESS_ELP_CTRL_REG   0x1FFFC
 
#define ELPCTRL_WAKE_UP   0x1
 
#define ELPCTRL_WAKE_UP_WLAN_READY   0x5
 
#define ELPCTRL_SLEEP   0x0
 
#define ELPCTRL_WLAN_READY   0x2
 
#define INTR_TRIG_TX_PROC0   BIT(2)
 
#define INTR_TRIG_RX_PROC0   BIT(3)
 
#define INTR_TRIG_DEBUG_ACK   BIT(4)
 
#define INTR_TRIG_STATE_CHANGED   BIT(5)
 
#define INTR_TRIG_RX_PROC1   BIT(17)
 
#define INTR_TRIG_TX_PROC1   BIT(18)
 
#define ACX_SLV_SOFT_RESET_BIT   BIT(1)
 
#define SOFT_RESET_MAX_TIME   1000000
 
#define SOFT_RESET_STALL_TIME   1000
 
#define ECPU_CONTROL_HALT   0x00000101
 
#define WELP_ARM_COMMAND_VAL   0x4
 

Enumerations

enum  wlcore_partitions {
  PART_DOWN, PART_WORK, PART_BOOT, PART_DRPW,
  PART_TOP_PRCM_ELP_SOC, PART_PHY_INIT, PART_TABLE_LEN
}
 
enum  wlcore_registers {
  REG_ECPU_CONTROL, REG_INTERRUPT_NO_CLEAR, REG_INTERRUPT_ACK, REG_COMMAND_MAILBOX_PTR,
  REG_EVENT_MAILBOX_PTR, REG_INTERRUPT_TRIG, REG_INTERRUPT_MASK, REG_PC_ON_RECOVERY,
  REG_CHIP_ID_B, REG_CMD_MBOX_ADDRESS, REG_SLV_MEM_DATA, REG_SLV_REG_DATA,
  REG_RAW_FW_STATUS_ADDR, REG_TABLE_LEN
}
 

Functions

int __devinit wlcore_probe (struct wl1271 *wl, struct platform_device *pdev)
 
int __devexit wlcore_remove (struct platform_device *pdev)
 
struct ieee80211_hwwlcore_alloc_hw (size_t priv_size, u32 aggr_buf_size)
 
int wlcore_free_hw (struct wl1271 *wl)
 
int wlcore_set_key (struct wl1271 *wl, enum set_key_cmd cmd, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key_conf)
 

Macro Definition Documentation

#define ACX_SLV_SOFT_RESET_BIT   BIT(1)

Definition at line 538 of file wlcore.h.

#define CHIP_ID_1271_PG10   (0x4030101)

Definition at line 481 of file wlcore.h.

#define CHIP_ID_1271_PG20   (0x4030111)

Definition at line 482 of file wlcore.h.

#define CHIP_ID_1283_PG10   (0x05030101)

Definition at line 483 of file wlcore.h.

#define CHIP_ID_1283_PG20   (0x05030111)

Definition at line 484 of file wlcore.h.

#define CHUNK_SIZE   16384

Definition at line 446 of file wlcore.h.

#define ECPU_CONTROL_HALT   0x00000101

Definition at line 542 of file wlcore.h.

#define ELPCTRL_SLEEP   0x0

Definition at line 492 of file wlcore.h.

#define ELPCTRL_WAKE_UP   0x1

Definition at line 490 of file wlcore.h.

#define ELPCTRL_WAKE_UP_WLAN_READY   0x5

Definition at line 491 of file wlcore.h.

#define ELPCTRL_WLAN_READY   0x2

Definition at line 494 of file wlcore.h.

#define HW_ACCESS_ELP_CTRL_REG   0x1FFFC

Definition at line 487 of file wlcore.h.

#define INTR_TRIG_DEBUG_ACK   BIT(4)

Definition at line 518 of file wlcore.h.

#define INTR_TRIG_RX_PROC0   BIT(3)

Definition at line 516 of file wlcore.h.

#define INTR_TRIG_RX_PROC1   BIT(17)

Definition at line 529 of file wlcore.h.

#define INTR_TRIG_STATE_CHANGED   BIT(5)

Definition at line 520 of file wlcore.h.

#define INTR_TRIG_TX_PROC0   BIT(2)

Definition at line 509 of file wlcore.h.

#define INTR_TRIG_TX_PROC1   BIT(18)

Definition at line 536 of file wlcore.h.

#define SOFT_RESET_MAX_TIME   1000000

Definition at line 539 of file wlcore.h.

#define SOFT_RESET_STALL_TIME   1000

Definition at line 540 of file wlcore.h.

#define WELP_ARM_COMMAND_VAL   0x4

Definition at line 544 of file wlcore.h.

#define WLCORE_MAX_TX_DESCRIPTORS   32

Definition at line 32 of file wlcore.h.

#define WLCORE_NUM_MAC_ADDRESSES   3

Definition at line 38 of file wlcore.h.

#define WLCORE_QUIRK_DUAL_PROBE_TMPL   BIT(10)

Definition at line 478 of file wlcore.h.

#define WLCORE_QUIRK_END_OF_TRANSACTION   BIT(0)

Definition at line 451 of file wlcore.h.

#define WLCORE_QUIRK_FWLOG_NOT_IMPLEMENTED   BIT(4)

Definition at line 460 of file wlcore.h.

#define WLCORE_QUIRK_LEGACY_NVS   BIT(5)

Definition at line 463 of file wlcore.h.

#define WLCORE_QUIRK_NO_ELP   BIT(6)

Definition at line 466 of file wlcore.h.

#define WLCORE_QUIRK_NO_SCHED_SCAN_WHILE_CONN   BIT(9)

Definition at line 475 of file wlcore.h.

#define WLCORE_QUIRK_RX_BLOCKSIZE_ALIGN   BIT(3)

Definition at line 457 of file wlcore.h.

#define WLCORE_QUIRK_TKIP_HEADER_SPACE   BIT(8)

Definition at line 472 of file wlcore.h.

#define WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN   BIT(2)

Definition at line 454 of file wlcore.h.

#define WLCORE_QUIRK_TX_PAD_LAST_FRAME   BIT(7)

Definition at line 469 of file wlcore.h.

Enumeration Type Documentation

Enumerator:
PART_DOWN 
PART_WORK 
PART_BOOT 
PART_DRPW 
PART_TOP_PRCM_ELP_SOC 
PART_PHY_INIT 
PART_TABLE_LEN 

Definition at line 93 of file wlcore.h.

Enumerator:
REG_ECPU_CONTROL 
REG_INTERRUPT_NO_CLEAR 
REG_INTERRUPT_ACK 
REG_COMMAND_MAILBOX_PTR 
REG_EVENT_MAILBOX_PTR 
REG_INTERRUPT_TRIG 
REG_INTERRUPT_MASK 
REG_PC_ON_RECOVERY 
REG_CHIP_ID_B 
REG_CMD_MBOX_ADDRESS 
REG_SLV_MEM_DATA 
REG_SLV_REG_DATA 
REG_RAW_FW_STATUS_ADDR 
REG_TABLE_LEN 

Definition at line 116 of file wlcore.h.

Function Documentation

struct ieee80211_hw* wlcore_alloc_hw ( size_t  priv_size,
u32  aggr_buf_size 
)
read

Definition at line 5329 of file main.c.

int wlcore_free_hw ( struct wl1271 wl)

Definition at line 5469 of file main.c.

int __devinit wlcore_probe ( struct wl1271 wl,
struct platform_device pdev 
)

Definition at line 5662 of file main.c.

int __devexit wlcore_remove ( struct platform_device pdev)

Definition at line 5685 of file main.c.

int wlcore_set_key ( struct wl1271 wl,
enum set_key_cmd  cmd,
struct ieee80211_vif vif,
struct ieee80211_sta sta,
struct ieee80211_key_conf key_conf 
)

Definition at line 3107 of file main.c.