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

Go to the source code of this file.

Data Structures

struct  e1000_option
 

Macros

#define E1000_MAX_NIC   32
 
#define OPTION_UNSET   -1
 
#define OPTION_DISABLED   0
 
#define OPTION_ENABLED   1
 
#define E1000_PARAM_INIT   { [0 ... E1000_MAX_NIC] = OPTION_UNSET }
 
#define E1000_PARAM(X, desc)
 
#define AUTONEG_ADV_DEFAULT   0x2F
 
#define AUTONEG_ADV_MASK   0x2F
 
#define FLOW_CONTROL_DEFAULT   FLOW_CONTROL_FULL
 
#define DEFAULT_TIDV   8
 
#define MAX_TXDELAY   0xFFFF
 
#define MIN_TXDELAY   0
 
#define DEFAULT_TADV   32
 
#define MAX_TXABSDELAY   0xFFFF
 
#define MIN_TXABSDELAY   0
 
#define DEFAULT_RDTR   0
 
#define MAX_RXDELAY   0xFFFF
 
#define MIN_RXDELAY   0
 
#define DEFAULT_RADV   8
 
#define MAX_RXABSDELAY   0xFFFF
 
#define MIN_RXABSDELAY   0
 
#define DEFAULT_ITR   3
 
#define MAX_ITR   100000
 
#define MIN_ITR   100
 
#define AA   "AutoNeg advertising "
 

Functions

 E1000_PARAM (TxDescriptors,"Number of transmit descriptors")
 
 E1000_PARAM (RxDescriptors,"Number of receive descriptors")
 
 E1000_PARAM (Speed,"Speed setting")
 
 E1000_PARAM (Duplex,"Duplex setting")
 
 E1000_PARAM (AutoNeg,"Advertised auto-negotiation setting")
 
 E1000_PARAM (FlowControl,"Flow Control setting")
 
 E1000_PARAM (XsumRX,"Disable or enable Receive Checksum offload")
 
 E1000_PARAM (TxIntDelay,"Transmit Interrupt Delay")
 
 E1000_PARAM (TxAbsIntDelay,"Transmit Absolute Interrupt Delay")
 
 E1000_PARAM (RxIntDelay,"Receive Interrupt Delay")
 
 E1000_PARAM (RxAbsIntDelay,"Receive Absolute Interrupt Delay")
 
 E1000_PARAM (InterruptThrottleRate,"Interrupt Throttling Rate")
 
 E1000_PARAM (SmartPowerDownEnable,"Enable PHY smart power down")
 
void __devinit e1000_check_options (struct e1000_adapter *adapter)
 

Macro Definition Documentation

#define AA   "AutoNeg advertising "
#define AUTONEG_ADV_DEFAULT   0x2F

Definition at line 109 of file e1000_param.c.

#define AUTONEG_ADV_MASK   0x2F

Definition at line 110 of file e1000_param.c.

#define DEFAULT_ITR   3

Definition at line 179 of file e1000_param.c.

#define DEFAULT_RADV   8

Definition at line 170 of file e1000_param.c.

#define DEFAULT_RDTR   0

Definition at line 161 of file e1000_param.c.

#define DEFAULT_TADV   32

Definition at line 151 of file e1000_param.c.

#define DEFAULT_TIDV   8

Definition at line 142 of file e1000_param.c.

#define E1000_MAX_NIC   32

Definition at line 35 of file e1000_param.c.

#define E1000_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 47 of file e1000_param.c.

#define E1000_PARAM_INIT   { [0 ... E1000_MAX_NIC] = OPTION_UNSET }

Definition at line 46 of file e1000_param.c.

#define FLOW_CONTROL_DEFAULT   FLOW_CONTROL_FULL

Definition at line 123 of file e1000_param.c.

#define MAX_ITR   100000

Definition at line 180 of file e1000_param.c.

#define MAX_RXABSDELAY   0xFFFF

Definition at line 171 of file e1000_param.c.

#define MAX_RXDELAY   0xFFFF

Definition at line 162 of file e1000_param.c.

#define MAX_TXABSDELAY   0xFFFF

Definition at line 152 of file e1000_param.c.

#define MAX_TXDELAY   0xFFFF

Definition at line 143 of file e1000_param.c.

#define MIN_ITR   100

Definition at line 181 of file e1000_param.c.

#define MIN_RXABSDELAY   0

Definition at line 172 of file e1000_param.c.

#define MIN_RXDELAY   0

Definition at line 163 of file e1000_param.c.

#define MIN_TXABSDELAY   0

Definition at line 153 of file e1000_param.c.

#define MIN_TXDELAY   0

Definition at line 144 of file e1000_param.c.

#define OPTION_DISABLED   0

Definition at line 38 of file e1000_param.c.

#define OPTION_ENABLED   1

Definition at line 39 of file e1000_param.c.

#define OPTION_UNSET   -1

Definition at line 37 of file e1000_param.c.

Function Documentation

void __devinit e1000_check_options ( struct e1000_adapter adapter)

e1000_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 271 of file e1000_param.c.

E1000_PARAM ( TxDescriptors  ,
"Number of transmit descriptors  
)
E1000_PARAM ( RxDescriptors  ,
"Number of receive descriptors  
)
E1000_PARAM ( Speed  ,
"Speed setting"   
)
E1000_PARAM ( Duplex  ,
"Duplex setting"   
)
E1000_PARAM ( AutoNeg  ,
"Advertised auto-negotiation setting"   
)
E1000_PARAM ( FlowControl  ,
"Flow Control setting"   
)
E1000_PARAM ( XsumRX  ,
"Disable or enable Receive Checksum offload"   
)
E1000_PARAM ( TxIntDelay  ,
"Transmit Interrupt Delay"   
)
E1000_PARAM ( TxAbsIntDelay  ,
"Transmit Absolute Interrupt Delay"   
)
E1000_PARAM ( RxIntDelay  ,
"Receive Interrupt Delay"   
)
E1000_PARAM ( RxAbsIntDelay  ,
"Receive Absolute Interrupt Delay"   
)
E1000_PARAM ( InterruptThrottleRate  ,
"Interrupt Throttling Rate"   
)
E1000_PARAM ( SmartPowerDownEnable  ,
"Enable PHY smart power down  
)