Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
param.c File Reference
#include <linux/netdevice.h>
#include <linux/module.h>
#include <linux/pci.h>
#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 COPYBREAK_DEFAULT   256
 
#define E1000_PARAM_INIT   { [0 ... E1000_MAX_NIC] = OPTION_UNSET }
 
#define E1000_PARAM(X, desc)
 
#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 MAX_RXDELAY   0xFFFF
 
#define MIN_RXDELAY   0
 
#define MAX_RXABSDELAY   0xFFFF
 
#define MIN_RXABSDELAY   0
 
#define DEFAULT_ITR   3
 
#define MAX_ITR   100000
 
#define MIN_ITR   100
 
#define MAX_INTMODE   2
 
#define MIN_INTMODE   0
 

Functions

 module_param (copybreak, uint, 0644)
 
 MODULE_PARM_DESC (copybreak,"Maximum size of packet that is copied to a new buffer on receive")
 
 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 (IntMode,"Interrupt Mode")
 
 E1000_PARAM (SmartPowerDownEnable,"Enable PHY smart power down")
 
 E1000_PARAM (KumeranLockLoss,"Enable Kumeran lock loss workaround")
 
 E1000_PARAM (WriteProtectNVM,"Write-protect NVM [WARNING: disabling this can lead to corrupted NVM]")
 
 E1000_PARAM (CrcStripping,"Enable CRC Stripping, disable if your BMC needs the CRC")
 
void __devinit e1000e_check_options (struct e1000_adapter *adapter)
 

Variables

unsigned int copybreak = COPYBREAK_DEFAULT
 

Macro Definition Documentation

#define COPYBREAK_DEFAULT   256

Definition at line 46 of file param.c.

#define DEFAULT_ITR   3

Definition at line 112 of file param.c.

#define DEFAULT_TADV   32

Definition at line 83 of file param.c.

#define DEFAULT_TIDV   8

Definition at line 73 of file param.c.

#define E1000_MAX_NIC   32

Definition at line 40 of file param.c.

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

Definition at line 59 of file param.c.

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

Definition at line 58 of file param.c.

#define MAX_INTMODE   2

Definition at line 132 of file param.c.

#define MAX_ITR   100000

Definition at line 113 of file param.c.

#define MAX_RXABSDELAY   0xFFFF

Definition at line 103 of file param.c.

#define MAX_RXDELAY   0xFFFF

Definition at line 94 of file param.c.

#define MAX_TXABSDELAY   0xFFFF

Definition at line 84 of file param.c.

#define MAX_TXDELAY   0xFFFF

Definition at line 74 of file param.c.

#define MIN_INTMODE   0

Definition at line 133 of file param.c.

#define MIN_ITR   100

Definition at line 114 of file param.c.

#define MIN_RXABSDELAY   0

Definition at line 104 of file param.c.

#define MIN_RXDELAY   0

Definition at line 95 of file param.c.

#define MIN_TXABSDELAY   0

Definition at line 85 of file param.c.

#define MIN_TXDELAY   0

Definition at line 75 of file param.c.

#define OPTION_DISABLED   0

Definition at line 43 of file param.c.

#define OPTION_ENABLED   1

Definition at line 44 of file param.c.

#define OPTION_UNSET   -1

Definition at line 42 of file param.c.

Function Documentation

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 ( IntMode  ,
"Interrupt Mode  
)
E1000_PARAM ( SmartPowerDownEnable  ,
"Enable PHY smart power down  
)
E1000_PARAM ( KumeranLockLoss  ,
"Enable Kumeran lock loss workaround"   
)
E1000_PARAM ( WriteProtectNVM  ,
"Write-protect NVM "  [WARNING:disabling this can lead to corrupted NVM] 
)
E1000_PARAM ( CrcStripping  ,
"Enable CRC  Stripping,
disable if your BMC needs the CRC  
)
void __devinit e1000e_check_options ( struct e1000_adapter adapter)

e1000e_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 252 of file param.c.

module_param ( copybreak  ,
uint  ,
0644   
)
MODULE_PARM_DESC ( copybreak  ,
"Maximum size of packet that is copied to a new buffer on receive"   
)

Variable Documentation

unsigned int copybreak = COPYBREAK_DEFAULT

Definition at line 47 of file param.c.