Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
main.c File Reference
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/ip.h>
#include <linux/firmware.h>
#include "../wlcore/wlcore.h"
#include "../wlcore/debug.h"
#include "../wlcore/io.h"
#include "../wlcore/acx.h"
#include "../wlcore/tx.h"
#include "../wlcore/rx.h"
#include "../wlcore/boot.h"
#include "reg.h"
#include "conf.h"
#include "acx.h"
#include "tx.h"
#include "wl18xx.h"
#include "io.h"
#include "debugfs.h"

Go to the source code of this file.

Macros

#define WL18XX_RX_CHECKSUM_MASK   0x40
 
#define WL18XX_FW_NAME   "ti-connectivity/wl18xx-fw.bin"
 
#define WL18XX_CONF_FILE_NAME   "ti-connectivity/wl18xx-conf.bin"
 

Enumerations

enum  wl18xx_hw_rates {
  WL18XX_CONF_HW_RXTX_RATE_MCS15 = 0, WL18XX_CONF_HW_RXTX_RATE_MCS14, WL18XX_CONF_HW_RXTX_RATE_MCS13, WL18XX_CONF_HW_RXTX_RATE_MCS12,
  WL18XX_CONF_HW_RXTX_RATE_MCS11, WL18XX_CONF_HW_RXTX_RATE_MCS10, WL18XX_CONF_HW_RXTX_RATE_MCS9, WL18XX_CONF_HW_RXTX_RATE_MCS8,
  WL18XX_CONF_HW_RXTX_RATE_MCS7, WL18XX_CONF_HW_RXTX_RATE_MCS6, WL18XX_CONF_HW_RXTX_RATE_MCS5, WL18XX_CONF_HW_RXTX_RATE_MCS4,
  WL18XX_CONF_HW_RXTX_RATE_MCS3, WL18XX_CONF_HW_RXTX_RATE_MCS2, WL18XX_CONF_HW_RXTX_RATE_MCS1, WL18XX_CONF_HW_RXTX_RATE_MCS0,
  WL18XX_CONF_HW_RXTX_RATE_54, WL18XX_CONF_HW_RXTX_RATE_48, WL18XX_CONF_HW_RXTX_RATE_36, WL18XX_CONF_HW_RXTX_RATE_24,
  WL18XX_CONF_HW_RXTX_RATE_22, WL18XX_CONF_HW_RXTX_RATE_18, WL18XX_CONF_HW_RXTX_RATE_12, WL18XX_CONF_HW_RXTX_RATE_11,
  WL18XX_CONF_HW_RXTX_RATE_9, WL18XX_CONF_HW_RXTX_RATE_6, WL18XX_CONF_HW_RXTX_RATE_5_5, WL18XX_CONF_HW_RXTX_RATE_2,
  WL18XX_CONF_HW_RXTX_RATE_1, WL18XX_CONF_HW_RXTX_RATE_MAX
}
 

Functions

 MODULE_DEVICE_TABLE (platform, wl18xx_id_table)
 
 module_platform_driver (wl18xx_driver)
 
 module_param_named (ht_mode, ht_mode_param, charp, S_IRUSR)
 
 MODULE_PARM_DESC (ht_mode,"Force HT mode: wide or siso20")
 
 module_param_named (board_type, board_type_param, charp, S_IRUSR)
 
 MODULE_PARM_DESC (board_type,"Board type: fpga, hdk (default), evb, com8 or ""dvp")
 
 module_param_named (checksum, checksum_param, bool, S_IRUSR)
 
 MODULE_PARM_DESC (checksum,"Enable TCP checksum: boolean (defaults to false)")
 
 module_param_named (dc2dc, dc2dc_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (dc2dc,"External DC2DC: u8 (defaults to 0)")
 
 module_param_named (n_antennas_2, n_antennas_2_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (n_antennas_2,"Number of installed 2.4GHz antennas: 1 (default) or 2")
 
 module_param_named (n_antennas_5, n_antennas_5_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (n_antennas_5,"Number of installed 5GHz antennas: 1 (default) or 2")
 
 module_param_named (low_band_component, low_band_component_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (low_band_component,"Low band component: u8 ""(default is 0x01)")
 
 module_param_named (low_band_component_type, low_band_component_type_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (low_band_component_type,"Low band component type: u8 ""(default is 0x05 or 0x06 depending on the board_type)")
 
 module_param_named (high_band_component, high_band_component_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (high_band_component,"High band component: u8, ""(default is 0x01)")
 
 module_param_named (high_band_component_type, high_band_component_type_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (high_band_component_type,"High band component type: u8 ""(default is 0x09)")
 
 module_param_named (pwr_limit_reference_11_abg, pwr_limit_reference_11_abg_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (pwr_limit_reference_11_abg,"Power limit reference: u8 ""(default is 0xc8)")
 
 module_param_named (num_rx_desc, num_rx_desc_param, int, S_IRUSR)
 
 MODULE_PARM_DESC (num_rx_desc_param,"Number of Rx descriptors: u8 (default is 32)")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Luciano Coelho <[email protected]>")
 
 MODULE_FIRMWARE (WL18XX_FW_NAME)
 

Macro Definition Documentation

#define WL18XX_CONF_FILE_NAME   "ti-connectivity/wl18xx-conf.bin"

Definition at line 1099 of file main.c.

#define WL18XX_FW_NAME   "ti-connectivity/wl18xx-fw.bin"

Definition at line 598 of file main.c.

#define WL18XX_RX_CHECKSUM_MASK   0x40

Definition at line 43 of file main.c.

Enumeration Type Documentation

Enumerator:
WL18XX_CONF_HW_RXTX_RATE_MCS15 
WL18XX_CONF_HW_RXTX_RATE_MCS14 
WL18XX_CONF_HW_RXTX_RATE_MCS13 
WL18XX_CONF_HW_RXTX_RATE_MCS12 
WL18XX_CONF_HW_RXTX_RATE_MCS11 
WL18XX_CONF_HW_RXTX_RATE_MCS10 
WL18XX_CONF_HW_RXTX_RATE_MCS9 
WL18XX_CONF_HW_RXTX_RATE_MCS8 
WL18XX_CONF_HW_RXTX_RATE_MCS7 
WL18XX_CONF_HW_RXTX_RATE_MCS6 
WL18XX_CONF_HW_RXTX_RATE_MCS5 
WL18XX_CONF_HW_RXTX_RATE_MCS4 
WL18XX_CONF_HW_RXTX_RATE_MCS3 
WL18XX_CONF_HW_RXTX_RATE_MCS2 
WL18XX_CONF_HW_RXTX_RATE_MCS1 
WL18XX_CONF_HW_RXTX_RATE_MCS0 
WL18XX_CONF_HW_RXTX_RATE_54 
WL18XX_CONF_HW_RXTX_RATE_48 
WL18XX_CONF_HW_RXTX_RATE_36 
WL18XX_CONF_HW_RXTX_RATE_24 
WL18XX_CONF_HW_RXTX_RATE_22 
WL18XX_CONF_HW_RXTX_RATE_18 
WL18XX_CONF_HW_RXTX_RATE_12 
WL18XX_CONF_HW_RXTX_RATE_11 
WL18XX_CONF_HW_RXTX_RATE_9 
WL18XX_CONF_HW_RXTX_RATE_6 
WL18XX_CONF_HW_RXTX_RATE_5_5 
WL18XX_CONF_HW_RXTX_RATE_2 
WL18XX_CONF_HW_RXTX_RATE_1 
WL18XX_CONF_HW_RXTX_RATE_MAX 

Definition at line 139 of file main.c.

Function Documentation

MODULE_AUTHOR ( "Luciano Coelho <[email protected]>"  )
MODULE_DEVICE_TABLE ( platform  ,
wl18xx_id_table   
)
MODULE_FIRMWARE ( WL18XX_FW_NAME  )
MODULE_LICENSE ( "GPL v2 )
module_param_named ( ht_mode  ,
ht_mode_param  ,
charp  ,
S_IRUSR   
)
module_param_named ( board_type  ,
board_type_param  ,
charp  ,
S_IRUSR   
)
module_param_named ( checksum  ,
checksum_param  ,
bool  ,
S_IRUSR   
)
module_param_named ( dc2dc  ,
dc2dc_param  ,
int  ,
S_IRUSR   
)
module_param_named ( n_antennas_2  ,
n_antennas_2_param  ,
int  ,
S_IRUSR   
)
module_param_named ( n_antennas_5  ,
n_antennas_5_param  ,
int  ,
S_IRUSR   
)
module_param_named ( low_band_component  ,
low_band_component_param  ,
int  ,
S_IRUSR   
)
module_param_named ( low_band_component_type  ,
low_band_component_type_param  ,
int  ,
S_IRUSR   
)
module_param_named ( high_band_component  ,
high_band_component_param  ,
int  ,
S_IRUSR   
)
module_param_named ( high_band_component_type  ,
high_band_component_type_param  ,
int  ,
S_IRUSR   
)
module_param_named ( pwr_limit_reference_11_abg  ,
pwr_limit_reference_11_abg_param  ,
int  ,
S_IRUSR   
)
module_param_named ( num_rx_desc  ,
num_rx_desc_param  ,
int  ,
S_IRUSR   
)
MODULE_PARM_DESC ( ht_mode  ,
"Force HT mode: wide or siso20"   
)
MODULE_PARM_DESC ( board_type  ,
"Board type:  fpga,
hdk(default)  ,
evb  ,
com8 or""dvp"   
)
MODULE_PARM_DESC ( checksum  ,
"Enable TCP checksum: boolean (defaults to false)"   
)
MODULE_PARM_DESC ( dc2dc  ,
"External DC2DC: u8 (defaults to 0)"   
)
MODULE_PARM_DESC ( n_antennas_2  ,
"Number of installed 2.4GHz antennas: 1 (default) or 2"   
)
MODULE_PARM_DESC ( n_antennas_5  ,
"Number of installed 5GHz antennas: 1 (default) or 2"   
)
MODULE_PARM_DESC ( low_band_component  ,
"Low band component: u8 ""(default is 0x01)"   
)
MODULE_PARM_DESC ( low_band_component_type  ,
"Low band component type: u8 ""(default is 0x05 or 0x06 depending on the board_type)"   
)
MODULE_PARM_DESC ( high_band_component  ,
"High band component:  u8,
""(default is 0x01)"   
)
MODULE_PARM_DESC ( high_band_component_type  ,
"High band component type: u8 ""(default is 0x09)"   
)
MODULE_PARM_DESC ( pwr_limit_reference_11_abg  ,
"Power limit reference: u8 ""(default is 0xc8)"   
)
MODULE_PARM_DESC ( num_rx_desc_param  ,
"Number of Rx descriptors: u8 (default is 32)"   
)
module_platform_driver ( wl18xx_driver  )