Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
atl1e_param.c File Reference
#include <linux/netdevice.h>
#include "atl1e.h"

Go to the source code of this file.

Data Structures

struct  atl1e_option
 

Macros

#define ATL1E_MAX_NIC   32
 
#define OPTION_UNSET   -1
 
#define OPTION_DISABLED   0
 
#define OPTION_ENABLED   1
 
#define ATL1E_PARAM_INIT   { [0 ... ATL1E_MAX_NIC] = OPTION_UNSET }
 
#define ATL1E_PARAM(x, desc)
 
#define ATL1E_MIN_TX_DESC_CNT   32
 
#define ATL1E_MAX_TX_DESC_CNT   1020
 
#define ATL1E_DEFAULT_TX_DESC_CNT   128
 
#define ATL1E_MIN_RX_MEM_SIZE   8 /* 8KB */
 
#define ATL1E_MAX_RX_MEM_SIZE   1024 /* 1MB */
 
#define ATL1E_DEFAULT_RX_MEM_SIZE   256 /* 128KB */
 
#define INT_MOD_DEFAULT_CNT   100 /* 200us */
 
#define INT_MOD_MAX_CNT   65000
 
#define INT_MOD_MIN_CNT   50
 
#define AUTONEG_ADV_DEFAULT   0x2F
 
#define AUTONEG_ADV_MASK   0x2F
 
#define FLOW_CONTROL_DEFAULT   FLOW_CONTROL_FULL
 
#define FLASH_VENDOR_DEFAULT   0
 
#define FLASH_VENDOR_MIN   0
 
#define FLASH_VENDOR_MAX   2
 

Functions

 ATL1E_PARAM (tx_desc_cnt,"Transmit description count")
 
 ATL1E_PARAM (rx_mem_size,"memory size of rx buffer(KB)")
 
 ATL1E_PARAM (media_type,"MediaType Select")
 
 ATL1E_PARAM (int_mod_timer,"Interrupt Moderator Timer")
 
void __devinit atl1e_check_options (struct atl1e_adapter *adapter)
 

Macro Definition Documentation

#define ATL1E_DEFAULT_RX_MEM_SIZE   256 /* 128KB */

Definition at line 67 of file atl1e_param.c.

#define ATL1E_DEFAULT_TX_DESC_CNT   128

Definition at line 56 of file atl1e_param.c.

#define ATL1E_MAX_NIC   32

Definition at line 30 of file atl1e_param.c.

#define ATL1E_MAX_RX_MEM_SIZE   1024 /* 1MB */

Definition at line 66 of file atl1e_param.c.

#define ATL1E_MAX_TX_DESC_CNT   1020

Definition at line 55 of file atl1e_param.c.

#define ATL1E_MIN_RX_MEM_SIZE   8 /* 8KB */

Definition at line 65 of file atl1e_param.c.

#define ATL1E_MIN_TX_DESC_CNT   32

Definition at line 54 of file atl1e_param.c.

#define ATL1E_PARAM (   x,
  desc 
)
Value:
static unsigned int num_##x; \
module_param_array_named(x, x, int, &num_##x, 0); \
MODULE_PARM_DESC(x, desc);

Definition at line 42 of file atl1e_param.c.

#define ATL1E_PARAM_INIT   { [0 ... ATL1E_MAX_NIC] = OPTION_UNSET }

Definition at line 40 of file atl1e_param.c.

#define AUTONEG_ADV_DEFAULT   0x2F

Definition at line 94 of file atl1e_param.c.

#define AUTONEG_ADV_MASK   0x2F

Definition at line 95 of file atl1e_param.c.

#define FLASH_VENDOR_DEFAULT   0

Definition at line 98 of file atl1e_param.c.

#define FLASH_VENDOR_MAX   2

Definition at line 100 of file atl1e_param.c.

#define FLASH_VENDOR_MIN   0

Definition at line 99 of file atl1e_param.c.

#define FLOW_CONTROL_DEFAULT   FLOW_CONTROL_FULL

Definition at line 96 of file atl1e_param.c.

#define INT_MOD_DEFAULT_CNT   100 /* 200us */

Definition at line 89 of file atl1e_param.c.

#define INT_MOD_MAX_CNT   65000

Definition at line 90 of file atl1e_param.c.

#define INT_MOD_MIN_CNT   50

Definition at line 91 of file atl1e_param.c.

#define OPTION_DISABLED   0

Definition at line 33 of file atl1e_param.c.

#define OPTION_ENABLED   1

Definition at line 34 of file atl1e_param.c.

#define OPTION_UNSET   -1

Definition at line 32 of file atl1e_param.c.

Function Documentation

void __devinit atl1e_check_options ( struct atl1e_adapter adapter)

atl1e_check_options - Range Checking for Command Line Parameters : board private structure

This routine checks all command line parameters for valid user input. If an invalid value is given, or if no user specified value exists, a default value is used. The final value is stored in a variable in the adapter structure.

Definition at line 180 of file atl1e_param.c.

ATL1E_PARAM ( tx_desc_cnt  ,
"Transmit description count  
)
ATL1E_PARAM ( rx_mem_size  ,
"memory size of rx buffer(KB)"   
)
ATL1E_PARAM ( media_type  ,
"MediaType Select"   
)
ATL1E_PARAM ( int_mod_timer  ,
"Interrupt Moderator Timer  
)