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

Go to the source code of this file.

Data Structures

struct  pch_gbe_option
 

Macros

#define OPTION_UNSET   -1
 
#define OPTION_DISABLED   0
 
#define OPTION_ENABLED   1
 
#define HALF_DUPLEX   1
 
#define FULL_DUPLEX   2
 
#define PHY_ADVERTISE_10_HALF   0x0001
 
#define PHY_ADVERTISE_10_FULL   0x0002
 
#define PHY_ADVERTISE_100_HALF   0x0004
 
#define PHY_ADVERTISE_100_FULL   0x0008
 
#define PHY_ADVERTISE_1000_HALF   0x0010 /* Not used, just FYI */
 
#define PHY_ADVERTISE_1000_FULL   0x0020
 
#define PCH_AUTONEG_ADVERTISE_DEFAULT   0x2F
 
#define PCH_GBE_DEFAULT_RX_CSUM   true /* trueorfalse */
 
#define PCH_GBE_DEFAULT_TX_CSUM   true /* trueorfalse */
 
#define AA   "AutoNeg advertising "
 

Functions

 module_param (TxDescriptors, int, 0)
 
 MODULE_PARM_DESC (TxDescriptors,"Number of transmit descriptors")
 
 module_param (RxDescriptors, int, 0)
 
 MODULE_PARM_DESC (RxDescriptors,"Number of receive descriptors")
 
 module_param (Speed, int, 0)
 
 MODULE_PARM_DESC (Speed,"Speed setting")
 
 module_param (Duplex, int, 0)
 
 MODULE_PARM_DESC (Duplex,"Duplex setting")
 
 module_param (AutoNeg, int, 0)
 
 MODULE_PARM_DESC (AutoNeg,"Advertised auto-negotiation setting")
 
 module_param (FlowControl, int, 0)
 
 MODULE_PARM_DESC (FlowControl,"Flow Control setting")
 
 module_param (XsumRX, int, 0)
 
 MODULE_PARM_DESC (XsumRX,"Disable or enable Receive Checksum offload")
 
 module_param (XsumTX, int, 0)
 
 MODULE_PARM_DESC (XsumTX,"Disable or enable Transmit Checksum offload")
 
void pch_gbe_check_options (struct pch_gbe_adapter *adapter)
 

Macro Definition Documentation

#define AA   "AutoNeg advertising "
#define FULL_DUPLEX   2

Definition at line 72 of file pch_gbe_param.c.

#define HALF_DUPLEX   1

Definition at line 71 of file pch_gbe_param.c.

#define OPTION_DISABLED   0

Definition at line 25 of file pch_gbe_param.c.

#define OPTION_ENABLED   1

Definition at line 26 of file pch_gbe_param.c.

#define OPTION_UNSET   -1

Definition at line 24 of file pch_gbe_param.c.

#define PCH_AUTONEG_ADVERTISE_DEFAULT   0x2F

Definition at line 98 of file pch_gbe_param.c.

#define PCH_GBE_DEFAULT_RX_CSUM   true /* trueorfalse */

Definition at line 124 of file pch_gbe_param.c.

#define PCH_GBE_DEFAULT_TX_CSUM   true /* trueorfalse */

Definition at line 137 of file pch_gbe_param.c.

#define PHY_ADVERTISE_1000_FULL   0x0020

Definition at line 97 of file pch_gbe_param.c.

#define PHY_ADVERTISE_1000_HALF   0x0010 /* Not used, just FYI */

Definition at line 96 of file pch_gbe_param.c.

#define PHY_ADVERTISE_100_FULL   0x0008

Definition at line 95 of file pch_gbe_param.c.

#define PHY_ADVERTISE_100_HALF   0x0004

Definition at line 94 of file pch_gbe_param.c.

#define PHY_ADVERTISE_10_FULL   0x0002

Definition at line 93 of file pch_gbe_param.c.

#define PHY_ADVERTISE_10_HALF   0x0001

Definition at line 92 of file pch_gbe_param.c.

Function Documentation

module_param ( TxDescriptors  ,
int  ,
 
)
module_param ( RxDescriptors  ,
int  ,
 
)
module_param ( Speed  ,
int  ,
 
)
module_param ( Duplex  ,
int  ,
 
)
module_param ( AutoNeg  ,
int  ,
 
)
module_param ( FlowControl  ,
int  ,
 
)
module_param ( XsumRX  ,
int  ,
 
)
module_param ( XsumTX  ,
int  ,
 
)
MODULE_PARM_DESC ( TxDescriptors  ,
"Number of transmit descriptors  
)
MODULE_PARM_DESC ( RxDescriptors  ,
"Number of receive descriptors  
)
MODULE_PARM_DESC ( Speed  ,
"Speed setting"   
)
MODULE_PARM_DESC ( Duplex  ,
"Duplex setting"   
)
MODULE_PARM_DESC ( AutoNeg  ,
"Advertised auto-negotiation setting"   
)
MODULE_PARM_DESC ( FlowControl  ,
"Flow Control setting"   
)
MODULE_PARM_DESC ( XsumRX  ,
"Disable or enable Receive Checksum offload"   
)
MODULE_PARM_DESC ( XsumTX  ,
"Disable or enable Transmit Checksum offload"   
)
void pch_gbe_check_options ( struct pch_gbe_adapter adapter)

pch_gbe_check_options - Range Checking for Command Line Parameters : Board private structure

Definition at line 427 of file pch_gbe_param.c.