Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ixgb_param.c File Reference
#include "ixgb.h"

Go to the source code of this file.

Data Structures

struct  ixgb_option
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define IXGB_MAX_NIC   8
 
#define OPTION_UNSET   -1
 
#define OPTION_DISABLED   0
 
#define OPTION_ENABLED   1
 
#define IXGB_PARAM_INIT   { [0 ... IXGB_MAX_NIC] = OPTION_UNSET }
 
#define IXGB_PARAM(X, desc)
 
#define DEFAULT_TIDV   32
 
#define MAX_TIDV   0xFFFF
 
#define MIN_TIDV   0
 
#define DEFAULT_RDTR   72
 
#define MAX_RDTR   0xFFFF
 
#define MIN_RDTR   0
 
#define XSUMRX_DEFAULT   OPTION_ENABLED
 
#define DEFAULT_FCRTL   0x28000
 
#define DEFAULT_FCRTH   0x30000
 
#define MIN_FCRTL   0
 
#define MAX_FCRTL   0x3FFE8
 
#define MIN_FCRTH   8
 
#define MAX_FCRTH   0x3FFF0
 
#define MIN_FCPAUSE   1
 
#define MAX_FCPAUSE   0xffff
 
#define DEFAULT_FCPAUSE   0xFFFF /* this may be too long */
 

Functions

 IXGB_PARAM (TxDescriptors,"Number of transmit descriptors")
 
 IXGB_PARAM (RxDescriptors,"Number of receive descriptors")
 
 IXGB_PARAM (FlowControl,"Flow Control setting")
 
 IXGB_PARAM (XsumRX,"Disable or enable Receive Checksum offload")
 
 IXGB_PARAM (TxIntDelay,"Transmit Interrupt Delay")
 
 IXGB_PARAM (RxIntDelay,"Receive Interrupt Delay")
 
 IXGB_PARAM (RxFCHighThresh,"Receive Flow Control High Threshold")
 
 IXGB_PARAM (RxFCLowThresh,"Receive Flow Control Low Threshold")
 
 IXGB_PARAM (FCReqTimeout,"Flow Control Request Timeout")
 
 IXGB_PARAM (IntDelayEnable,"Transmit Interrupt Delay Enable")
 
void __devinit ixgb_check_options (struct ixgb_adapter *adapter)
 

Macro Definition Documentation

#define DEFAULT_FCPAUSE   0xFFFF /* this may be too long */

Definition at line 180 of file ixgb_param.c.

#define DEFAULT_FCRTH   0x30000

Definition at line 172 of file ixgb_param.c.

#define DEFAULT_FCRTL   0x28000

Definition at line 171 of file ixgb_param.c.

#define DEFAULT_RDTR   72

Definition at line 165 of file ixgb_param.c.

#define DEFAULT_TIDV   32

Definition at line 161 of file ixgb_param.c.

#define IXGB_MAX_NIC   8

Definition at line 37 of file ixgb_param.c.

#define IXGB_PARAM (   X,
  desc 
)
Value:
static int __devinitdata X[IXGB_MAX_NIC+1] \
static unsigned int num_##X = 0; \
module_param_array_named(X, X, int, &num_##X, 0); \
MODULE_PARM_DESC(X, desc);

Definition at line 49 of file ixgb_param.c.

#define IXGB_PARAM_INIT   { [0 ... IXGB_MAX_NIC] = OPTION_UNSET }

Definition at line 48 of file ixgb_param.c.

#define MAX_FCPAUSE   0xffff

Definition at line 179 of file ixgb_param.c.

#define MAX_FCRTH   0x3FFF0

Definition at line 176 of file ixgb_param.c.

#define MAX_FCRTL   0x3FFE8

Definition at line 174 of file ixgb_param.c.

#define MAX_RDTR   0xFFFF

Definition at line 166 of file ixgb_param.c.

#define MAX_TIDV   0xFFFF

Definition at line 162 of file ixgb_param.c.

#define MIN_FCPAUSE   1

Definition at line 178 of file ixgb_param.c.

#define MIN_FCRTH   8

Definition at line 175 of file ixgb_param.c.

#define MIN_FCRTL   0

Definition at line 173 of file ixgb_param.c.

#define MIN_RDTR   0

Definition at line 167 of file ixgb_param.c.

#define MIN_TIDV   0

Definition at line 163 of file ixgb_param.c.

#define OPTION_DISABLED   0

Definition at line 40 of file ixgb_param.c.

#define OPTION_ENABLED   1

Definition at line 41 of file ixgb_param.c.

#define OPTION_UNSET   -1

Definition at line 39 of file ixgb_param.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 29 of file ixgb_param.c.

#define XSUMRX_DEFAULT   OPTION_ENABLED

Definition at line 169 of file ixgb_param.c.

Function Documentation

void __devinit ixgb_check_options ( struct ixgb_adapter adapter)

ixgb_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 261 of file ixgb_param.c.

IXGB_PARAM ( TxDescriptors  ,
"Number of transmit descriptors  
)
IXGB_PARAM ( RxDescriptors  ,
"Number of receive descriptors  
)
IXGB_PARAM ( FlowControl  ,
"Flow Control setting"   
)
IXGB_PARAM ( XsumRX  ,
"Disable or enable Receive Checksum offload"   
)
IXGB_PARAM ( TxIntDelay  ,
"Transmit Interrupt Delay"   
)
IXGB_PARAM ( RxIntDelay  ,
"Receive Interrupt Delay"   
)
IXGB_PARAM ( RxFCHighThresh  ,
"Receive Flow Control High Threshold"   
)
IXGB_PARAM ( RxFCLowThresh  ,
"Receive Flow Control Low Threshold"   
)
IXGB_PARAM ( FCReqTimeout  ,
"Flow Control Request Timeout  
)
IXGB_PARAM ( IntDelayEnable  ,
"Transmit Interrupt Delay Enable"   
)