Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
device_main.c File Reference
#include "device.h"
#include "card.h"
#include "channel.h"
#include "baseband.h"
#include "mac.h"
#include "tether.h"
#include "wmgr.h"
#include "wctl.h"
#include "power.h"
#include "wcmd.h"
#include "iocmd.h"
#include "tcrc.h"
#include "rxtx.h"
#include "wroute.h"
#include "bssdb.h"
#include "hostap.h"
#include "wpactl.h"
#include "ioctl.h"
#include "iwctl.h"
#include "dpc.h"
#include "datarate.h"
#include "rf.h"
#include "iowpa.h"
#include <linux/delay.h>
#include <linux/kthread.h>
#include <linux/slab.h>

Go to the source code of this file.

Macros

#define DEVICE_PARAM(N, D)
 
#define RX_DESC_MIN0   16
 
#define RX_DESC_MAX0   128
 
#define RX_DESC_DEF0   32
 
#define RX_DESC_MIN1   16
 
#define RX_DESC_MAX1   128
 
#define RX_DESC_DEF1   32
 
#define TX_DESC_MIN0   16
 
#define TX_DESC_MAX0   128
 
#define TX_DESC_DEF0   32
 
#define TX_DESC_MIN1   16
 
#define TX_DESC_MAX1   128
 
#define TX_DESC_DEF1   64
 
#define IP_ALIG_DEF   0
 
#define INT_WORKS_DEF   20
 
#define INT_WORKS_MIN   10
 
#define INT_WORKS_MAX   64
 
#define CHANNEL_MIN   1
 
#define CHANNEL_MAX   14
 
#define CHANNEL_DEF   6
 
#define PREAMBLE_TYPE_DEF   1
 
#define RTS_THRESH_MIN   512
 
#define RTS_THRESH_MAX   2347
 
#define RTS_THRESH_DEF   2347
 
#define FRAG_THRESH_MIN   256
 
#define FRAG_THRESH_MAX   2346
 
#define FRAG_THRESH_DEF   2346
 
#define DATA_RATE_MIN   0
 
#define DATA_RATE_MAX   13
 
#define DATA_RATE_DEF   13
 
#define OP_MODE_DEF   0
 
#define PS_MODE_DEF   0
 
#define SHORT_RETRY_MIN   0
 
#define SHORT_RETRY_MAX   31
 
#define SHORT_RETRY_DEF   8
 
#define LONG_RETRY_MIN   0
 
#define LONG_RETRY_MAX   15
 
#define LONG_RETRY_DEF   4
 
#define BBP_TYPE_MIN   0
 
#define BBP_TYPE_MAX   2
 
#define BBP_TYPE_DEF   2
 
#define X80211h_MODE_DEF   0
 
#define DIVERSITY_ANT_DEF   0
 

Functions

 MODULE_AUTHOR ("VIA Networking Technologies, Inc., <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver")
 
 DEVICE_PARAM (RxDescriptors0,"Number of receive descriptors0")
 
 DEVICE_PARAM (RxDescriptors1,"Number of receive descriptors1")
 
 DEVICE_PARAM (TxDescriptors0,"Number of transmit descriptors0")
 
 DEVICE_PARAM (TxDescriptors1,"Number of transmit descriptors1")
 
 DEVICE_PARAM (IP_byte_align,"Enable IP header dword aligned")
 
 DEVICE_PARAM (int_works,"Number of packets per interrupt services")
 
 DEVICE_PARAM (Channel,"Channel number")
 
 DEVICE_PARAM (PreambleType,"Preamble Type")
 
 DEVICE_PARAM (RTSThreshold,"RTS threshold")
 
 DEVICE_PARAM (FragThreshold,"Fragmentation threshold")
 
 DEVICE_PARAM (ConnectionRate,"Connection data rate")
 
 DEVICE_PARAM (OPMode,"Infrastruct, adhoc, AP mode ")
 
 DEVICE_PARAM (PSMode,"Power saving mode")
 
 DEVICE_PARAM (ShortRetryLimit,"Short frame retry limits")
 
 DEVICE_PARAM (LongRetryLimit,"long frame retry limits")
 
 DEVICE_PARAM (BasebandType,"baseband type")
 
 DEVICE_PARAM (b80211hEnable,"802.11h mode")
 
 DEVICE_PARAM (bDiversityANTEnable,"ANT diversity mode")
 
 DEFINE_PCI_DEVICE_TABLE (vt6655_pci_id_table)
 
bool device_alloc_frag_buf (PSDevice pDevice, PSDeFragControlBlock pDeF)
 
void InitRxManagementQueue (PSDevice pDevice)
 
int MlmeThread (void *Context)
 
bool device_dma0_xmit (PSDevice pDevice, struct sk_buff *skb, unsigned int uNodeIndex)
 
int Config_FileOperation (PSDevice pDevice, bool fwrite, unsigned char *Parameter)
 
 MODULE_DEVICE_TABLE (pci, vt6655_pci_id_table)
 
 module_init (vt6655_init_module)
 
 module_exit (vt6655_cleanup_module)
 

Macro Definition Documentation

#define BBP_TYPE_DEF   2

Definition at line 244 of file device_main.c.

#define BBP_TYPE_MAX   2

Definition at line 243 of file device_main.c.

#define BBP_TYPE_MIN   0

Definition at line 242 of file device_main.c.

#define CHANNEL_DEF   6

Definition at line 150 of file device_main.c.

#define CHANNEL_MAX   14

Definition at line 149 of file device_main.c.

#define CHANNEL_MIN   1

Definition at line 148 of file device_main.c.

#define DATA_RATE_DEF   13

Definition at line 181 of file device_main.c.

#define DATA_RATE_MAX   13

Definition at line 180 of file device_main.c.

#define DATA_RATE_MIN   0

Definition at line 179 of file device_main.c.

#define DEVICE_PARAM (   N,
  D 
)

Definition at line 104 of file device_main.c.

#define DIVERSITY_ANT_DEF   0

Definition at line 264 of file device_main.c.

#define FRAG_THRESH_DEF   2346

Definition at line 174 of file device_main.c.

#define FRAG_THRESH_MAX   2346

Definition at line 173 of file device_main.c.

#define FRAG_THRESH_MIN   256

Definition at line 172 of file device_main.c.

#define INT_WORKS_DEF   20

Definition at line 142 of file device_main.c.

#define INT_WORKS_MAX   64

Definition at line 144 of file device_main.c.

#define INT_WORKS_MIN   10

Definition at line 143 of file device_main.c.

#define IP_ALIG_DEF   0

Definition at line 132 of file device_main.c.

#define LONG_RETRY_DEF   4

Definition at line 231 of file device_main.c.

#define LONG_RETRY_MAX   15

Definition at line 230 of file device_main.c.

#define LONG_RETRY_MIN   0

Definition at line 229 of file device_main.c.

#define OP_MODE_DEF   0

Definition at line 201 of file device_main.c.

#define PREAMBLE_TYPE_DEF   1

Definition at line 160 of file device_main.c.

#define PS_MODE_DEF   0

Definition at line 217 of file device_main.c.

#define RTS_THRESH_DEF   2347

Definition at line 167 of file device_main.c.

#define RTS_THRESH_MAX   2347

Definition at line 166 of file device_main.c.

#define RTS_THRESH_MIN   512

Definition at line 165 of file device_main.c.

#define RX_DESC_DEF0   32

Definition at line 113 of file device_main.c.

#define RX_DESC_DEF1   32

Definition at line 118 of file device_main.c.

#define RX_DESC_MAX0   128

Definition at line 112 of file device_main.c.

#define RX_DESC_MAX1   128

Definition at line 117 of file device_main.c.

#define RX_DESC_MIN0   16

Definition at line 111 of file device_main.c.

#define RX_DESC_MIN1   16

Definition at line 116 of file device_main.c.

#define SHORT_RETRY_DEF   8

Definition at line 224 of file device_main.c.

#define SHORT_RETRY_MAX   31

Definition at line 223 of file device_main.c.

#define SHORT_RETRY_MIN   0

Definition at line 222 of file device_main.c.

#define TX_DESC_DEF0   32

Definition at line 123 of file device_main.c.

#define TX_DESC_DEF1   64

Definition at line 128 of file device_main.c.

#define TX_DESC_MAX0   128

Definition at line 122 of file device_main.c.

#define TX_DESC_MAX1   128

Definition at line 127 of file device_main.c.

#define TX_DESC_MIN0   16

Definition at line 121 of file device_main.c.

#define TX_DESC_MIN1   16

Definition at line 126 of file device_main.c.

#define X80211h_MODE_DEF   0

Definition at line 255 of file device_main.c.

Function Documentation

int Config_FileOperation ( PSDevice  pDevice,
bool  fwrite,
unsigned char Parameter 
)

Definition at line 2949 of file device_main.c.

DEFINE_PCI_DEVICE_TABLE ( vt6655_pci_id_table  )
bool device_alloc_frag_buf ( PSDevice  pDevice,
PSDeFragControlBlock  pDeF 
)

Definition at line 1628 of file device_main.c.

bool device_dma0_xmit ( PSDevice  pDevice,
struct sk_buff skb,
unsigned int  uNodeIndex 
)

Definition at line 2086 of file device_main.c.

DEVICE_PARAM ( RxDescriptors0  ,
"Number of receive descriptors0"   
)
DEVICE_PARAM ( RxDescriptors1  ,
"Number of receive descriptors1"   
)
DEVICE_PARAM ( TxDescriptors0  ,
"Number of transmit descriptors0"   
)
DEVICE_PARAM ( TxDescriptors1  ,
"Number of transmit descriptors1"   
)
DEVICE_PARAM ( IP_byte_align  ,
"Enable IP header dword aligned  
)
DEVICE_PARAM ( int_works  ,
"Number of packets per interrupt services"   
)
DEVICE_PARAM ( Channel  ,
"Channel number  
)
DEVICE_PARAM ( PreambleType  ,
"Preamble Type  
)
DEVICE_PARAM ( RTSThreshold  ,
"RTS threshold  
)
DEVICE_PARAM ( FragThreshold  ,
"Fragmentation threshold  
)
DEVICE_PARAM ( ConnectionRate  ,
"Connection data rate  
)
DEVICE_PARAM ( OPMode  ,
Infrastruct,
adhoc  ,
AP mode  
)
DEVICE_PARAM ( PSMode  ,
"Power saving mode  
)
DEVICE_PARAM ( ShortRetryLimit  ,
"Short frame retry limits"   
)
DEVICE_PARAM ( LongRetryLimit  ,
"long frame retry limits"   
)
DEVICE_PARAM ( BasebandType  ,
"baseband type  
)
DEVICE_PARAM ( b80211hEnable  ,
"802.11h mode"   
)
DEVICE_PARAM ( bDiversityANTEnable  ,
"ANT diversity mode  
)
void InitRxManagementQueue ( PSDevice  pDevice)

Definition at line 1812 of file device_main.c.

int MlmeThread ( void Context)

Definition at line 1824 of file device_main.c.

MODULE_AUTHOR ( "VIA Networking  Technologies,
Inc.  ,
< lyndonchen @vntek.com.tw >"   
)
MODULE_DESCRIPTION ( "VIA Networking Solomon-A/B/G Wireless LAN Adapter Driver"  )
MODULE_DEVICE_TABLE ( pci  ,
vt6655_pci_id_table   
)
module_exit ( vt6655_cleanup_module  )
module_init ( vt6655_init_module  )
MODULE_LICENSE ( "GPL"  )