Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ucc_geth.h File Reference
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/if_ether.h>
#include <asm/immap_qe.h>
#include <asm/qe.h>
#include <asm/ucc.h>
#include <asm/ucc_fast.h>

Go to the source code of this file.

Data Structures

struct  ucc_geth
 
struct  ucc_geth_thread_data_tx
 
struct  ucc_geth_thread_data_rx
 
struct  ucc_geth_send_queue_qd
 
struct  ucc_geth_send_queue_mem_region
 
struct  ucc_geth_thread_tx_pram
 
struct  ucc_geth_thread_rx_pram
 
struct  ucc_geth_scheduler
 
struct  ucc_geth_tx_firmware_statistics_pram
 
struct  ucc_geth_rx_firmware_statistics_pram
 
struct  ucc_geth_rx_interrupt_coalescing_entry
 
struct  ucc_geth_rx_interrupt_coalescing_table
 
struct  ucc_geth_rx_prefetched_bds
 
struct  ucc_geth_rx_bd_queues_entry
 
struct  ucc_geth_tx_global_pram
 
struct  ucc_geth_exf_global_pram
 
struct  ucc_geth_rx_global_pram
 
struct  ucc_geth_init_pram
 
struct  ucc_geth_82xx_enet_address
 
struct  ucc_geth_82xx_address_filtering_pram
 
struct  ucc_geth_tx_firmware_statistics
 
struct  ucc_geth_rx_firmware_statistics
 
struct  ucc_geth_hardware_statistics
 
struct  enet_addr_container
 
struct  ucc_geth_tad_params
 
struct  ucc_geth_info
 
struct  ucc_geth_private
 

Macros

#define DRV_DESC   "QE UCC Gigabit Ethernet Controller"
 
#define DRV_NAME   "ucc_geth"
 
#define DRV_VERSION   "1.1"
 
#define NUM_TX_QUEUES   8
 
#define NUM_RX_QUEUES   8
 
#define NUM_BDS_IN_PREFETCHED_BDS   4
 
#define TX_IP_OFFSET_ENTRY_MAX   8
 
#define NUM_OF_PADDRS   4
 
#define ENET_INIT_PARAM_MAX_ENTRIES_RX   9
 
#define ENET_INIT_PARAM_MAX_ENTRIES_TX   8
 
#define TEMODER_TX_RMON_STATISTICS_ENABLE
 
#define TEMODER_SCHEDULER_ENABLE   0x2000 /* enable scheduler */
 
#define TEMODER_IP_CHECKSUM_GENERATE
 
#define TEMODER_PERFORMANCE_OPTIMIZATION_MODE1
 
#define TEMODER_RMON_STATISTICS
 
#define TEMODER_NUM_OF_QUEUES_SHIFT
 
#define REMODER_RX_RMON_STATISTICS_ENABLE
 
#define REMODER_RX_EXTENDED_FEATURES
 
#define REMODER_VLAN_OPERATION_TAGGED_SHIFT
 
#define REMODER_VLAN_OPERATION_NON_TAGGED_SHIFT
 
#define REMODER_RX_QOS_MODE_SHIFT
 
#define REMODER_RMON_STATISTICS
 
#define REMODER_RX_EXTENDED_FILTERING
 
#define REMODER_NUM_OF_QUEUES_SHIFT
 
#define REMODER_DYNAMIC_MAX_FRAME_LENGTH
 
#define REMODER_DYNAMIC_MIN_FRAME_LENGTH
 
#define REMODER_IP_CHECKSUM_CHECK
 
#define REMODER_IP_ADDRESS_ALIGNMENT
 
#define UCCE_TXB
 
#define UCCE_RXB
 
#define UCCE_RXF
 
#define UCCE_OTHER
 
#define UCCE_RX_EVENTS   (UCCE_RXF | UCC_GETH_UCCE_BSY)
 
#define UCCE_TX_EVENTS   (UCCE_TXB | UCC_GETH_UCCE_TXE)
 
#define ENET_TBI_MII_CR   0x00 /* Control */
 
#define ENET_TBI_MII_SR   0x01 /* Status */
 
#define ENET_TBI_MII_ANA   0x04 /* AN advertisement */
 
#define ENET_TBI_MII_ANLPBPA   0x05 /* AN link partner base page ability */
 
#define ENET_TBI_MII_ANEX   0x06 /* AN expansion */
 
#define ENET_TBI_MII_ANNPT   0x07 /* AN next page transmit */
 
#define ENET_TBI_MII_ANLPANP   0x08 /* AN link partner ability next page */
 
#define ENET_TBI_MII_EXST   0x0F /* Extended status */
 
#define ENET_TBI_MII_JD   0x10 /* Jitter diagnostics */
 
#define ENET_TBI_MII_TBICON   0x11 /* TBI control */
 
#define TBISR_LSTATUS   0x0004
 
#define TBICON_CLK_SELECT   0x0020
 
#define TBIANA_ASYMMETRIC_PAUSE   0x0100
 
#define TBIANA_SYMMETRIC_PAUSE   0x0080
 
#define TBIANA_HALF_DUPLEX   0x0040
 
#define TBIANA_FULL_DUPLEX   0x0020
 
#define TBICR_PHY_RESET   0x8000
 
#define TBICR_ANEG_ENABLE   0x1000
 
#define TBICR_RESTART_ANEG   0x0200
 
#define TBICR_FULL_DUPLEX   0x0100
 
#define TBICR_SPEED1_SET   0x0040
 
#define TBIANA_SETTINGS
 
#define TBICR_SETTINGS
 
#define MACCFG1_FLOW_RX
 
#define MACCFG1_FLOW_TX
 
#define MACCFG1_ENABLE_SYNCHED_RX
 
#define MACCFG1_ENABLE_RX   0x00000004 /* Enable Rx */
 
#define MACCFG1_ENABLE_SYNCHED_TX
 
#define MACCFG1_ENABLE_TX   0x00000001 /* Enable Tx */
 
#define MACCFG2_PREL_SHIFT
 
#define MACCFG2_PREL_MASK
 
#define MACCFG2_SRP
 
#define MACCFG2_STP
 
#define MACCFG2_RESERVED_1
 
#define MACCFG2_LC
 
#define MACCFG2_MPE
 
#define MACCFG2_FDX   0x00000001 /* Full Duplex */
 
#define MACCFG2_FDX_MASK
 
#define MACCFG2_PAD_CRC   0x00000004
 
#define MACCFG2_CRC_EN   0x00000002
 
#define MACCFG2_PAD_AND_CRC_MODE_NONE
 
#define MACCFG2_PAD_AND_CRC_MODE_CRC_ONLY
 
#define MACCFG2_PAD_AND_CRC_MODE_PAD_AND_CRC   0x00000004
 
#define MACCFG2_INTERFACE_MODE_NIBBLE
 
#define MACCFG2_INTERFACE_MODE_BYTE
 
#define MACCFG2_INTERFACE_MODE_MASK
 
#define IPGIFG_NON_BACK_TO_BACK_IFG_PART1_SHIFT
 
#define IPGIFG_NON_BACK_TO_BACK_IFG_PART2_SHIFT
 
#define IPGIFG_MINIMUM_IFG_ENFORCEMENT_SHIFT
 
#define IPGIFG_BACK_TO_BACK_IFG_SHIFT
 
#define IPGIFG_NON_BACK_TO_BACK_IFG_PART1_MAX
 
#define IPGIFG_NON_BACK_TO_BACK_IFG_PART2_MAX
 
#define IPGIFG_MINIMUM_IFG_ENFORCEMENT_MAX
 
#define IPGIFG_BACK_TO_BACK_IFG_MAX
 
#define IPGIFG_NBTB_CS_IPG_MASK   0x7F000000
 
#define IPGIFG_NBTB_IPG_MASK   0x007F0000
 
#define IPGIFG_MIN_IFG_MASK   0x0000FF00
 
#define IPGIFG_BTB_IPG_MASK   0x0000007F
 
#define HALFDUP_ALT_BEB_TRUNCATION_SHIFT
 
#define HALFDUP_ALT_BEB_TRUNCATION_MAX
 
#define HALFDUP_ALT_BEB
 
#define HALFDUP_BACK_PRESSURE_NO_BACKOFF
 
#define HALFDUP_NO_BACKOFF   0x00020000 /* No Backoff */
 
#define HALFDUP_EXCESSIVE_DEFER
 
#define HALFDUP_MAX_RETRANSMISSION_SHIFT
 
#define HALFDUP_MAX_RETRANSMISSION_MAX
 
#define HALFDUP_COLLISION_WINDOW_SHIFT
 
#define HALFDUP_COLLISION_WINDOW_MAX
 
#define HALFDUP_ALT_BEB_TR_MASK   0x00F00000
 
#define HALFDUP_RETRANS_MASK   0x0000F000
 
#define HALFDUP_COL_WINDOW_MASK   0x0000003F
 
#define UCCS_BPR
 
#define UCCS_PAU
 
#define UCCS_MPD
 
#define IFSTAT_EXCESS_DEFER
 
#define MACSTNADDR1_OCTET_6_SHIFT
 
#define MACSTNADDR1_OCTET_5_SHIFT
 
#define MACSTNADDR1_OCTET_4_SHIFT
 
#define MACSTNADDR1_OCTET_3_SHIFT
 
#define MACSTNADDR2_OCTET_2_SHIFT
 
#define MACSTNADDR2_OCTET_1_SHIFT
 
#define UEMPR_PAUSE_TIME_VALUE_SHIFT
 
#define UEMPR_EXTENDED_PAUSE_TIME_VALUE_SHIFT
 
#define UTBIPAR_PHY_ADDRESS_SHIFT
 
#define UTBIPAR_PHY_ADDRESS_MASK
 
#define UESCR_AUTOZ
 
#define UESCR_CLRCNT
 
#define UESCR_MAXCOV_SHIFT
 
#define UESCR_SCOV_SHIFT
 
#define UDSR_MAGIC   0x067E
 
#define THREAD_RX_PRAM_ADDITIONAL_FOR_EXTENDED_FILTERING   64
 
#define THREAD_RX_PRAM_ADDITIONAL_FOR_EXTENDED_FILTERING_8   64
 
#define THREAD_RX_PRAM_ADDITIONAL_FOR_EXTENDED_FILTERING_16   96
 
#define GRACEFUL_STOP_ACKNOWLEDGE_RX   0x01
 
#define ENET_INIT_PARAM_RGF_SHIFT   (32 - 4)
 
#define ENET_INIT_PARAM_TGF_SHIFT   (32 - 8)
 
#define ENET_INIT_PARAM_RISC_MASK   0x0000003f
 
#define ENET_INIT_PARAM_PTR_MASK   0x00ffffc0
 
#define ENET_INIT_PARAM_SNUM_MASK   0xff000000
 
#define ENET_INIT_PARAM_SNUM_SHIFT   24
 
#define ENET_INIT_PARAM_MAGIC_RES_INIT1   0x06
 
#define ENET_INIT_PARAM_MAGIC_RES_INIT2   0x30
 
#define ENET_INIT_PARAM_MAGIC_RES_INIT3   0xff
 
#define ENET_INIT_PARAM_MAGIC_RES_INIT4   0x00
 
#define ENET_INIT_PARAM_MAGIC_RES_INIT5   0x0400
 
#define TX_ERRORS_DEF   0x0200
 
#define TX_ERRORS_EXDEF   0x0100
 
#define TX_ERRORS_LC   0x0080
 
#define TX_ERRORS_RL   0x0040
 
#define TX_ERRORS_RC_MASK   0x003C
 
#define TX_ERRORS_RC_SHIFT   2
 
#define TX_ERRORS_UN   0x0002
 
#define TX_ERRORS_CSL   0x0001
 
#define RX_ERRORS_CMR   0x0200
 
#define RX_ERRORS_M   0x0100
 
#define RX_ERRORS_BC   0x0080
 
#define RX_ERRORS_MC   0x0040
 
#define T_VID   0x003c0000 /* insert VLAN id index mask. */
 
#define T_DEF   (((u32) TX_ERRORS_DEF ) << 16)
 
#define T_EXDEF   (((u32) TX_ERRORS_EXDEF ) << 16)
 
#define T_LC   (((u32) TX_ERRORS_LC ) << 16)
 
#define T_RL   (((u32) TX_ERRORS_RL ) << 16)
 
#define T_RC_MASK   (((u32) TX_ERRORS_RC_MASK ) << 16)
 
#define T_UN   (((u32) TX_ERRORS_UN ) << 16)
 
#define T_CSL   (((u32) TX_ERRORS_CSL ) << 16)
 
#define T_ERRORS_REPORT
 
#define R_LG   0x00200000 /* Frame length violation. */
 
#define R_NO   0x00100000 /* Non-octet aligned frame. */
 
#define R_SH   0x00080000 /* Short frame. */
 
#define R_CR   0x00040000 /* CRC error. */
 
#define R_OV   0x00020000 /* Overrun. */
 
#define R_IPCH   0x00010000 /* IP checksum check failed. */
 
#define R_CMR   (((u32) RX_ERRORS_CMR ) << 16)
 
#define R_M   (((u32) RX_ERRORS_M ) << 16)
 
#define R_BC   (((u32) RX_ERRORS_BC ) << 16)
 
#define R_MC   (((u32) RX_ERRORS_MC ) << 16)
 
#define R_ERRORS_REPORT
 
#define R_ERRORS_FATAL
 
#define UCC_GETH_RX_GLOBAL_PRAM_ALIGNMENT   256
 
#define UCC_GETH_TX_GLOBAL_PRAM_ALIGNMENT   128
 
#define UCC_GETH_THREAD_RX_PRAM_ALIGNMENT   128
 
#define UCC_GETH_THREAD_TX_PRAM_ALIGNMENT   64
 
#define UCC_GETH_THREAD_DATA_ALIGNMENT
 
#define UCC_GETH_SEND_QUEUE_QUEUE_DESCRIPTOR_ALIGNMENT   32
 
#define UCC_GETH_SCHEDULER_ALIGNMENT   8 /* This is a guess */
 
#define UCC_GETH_TX_STATISTICS_ALIGNMENT   4 /* This is a guess */
 
#define UCC_GETH_RX_STATISTICS_ALIGNMENT   4 /* This is a guess */
 
#define UCC_GETH_RX_INTERRUPT_COALESCING_ALIGNMENT   64
 
#define UCC_GETH_RX_BD_QUEUES_ALIGNMENT   8 /* This is a guess */
 
#define UCC_GETH_RX_PREFETCHED_BDS_ALIGNMENT   128 /* This is a guess */
 
#define UCC_GETH_RX_EXTENDED_FILTERING_GLOBAL_PARAMETERS_ALIGNMENT
 
#define UCC_GETH_RX_BD_RING_ALIGNMENT   32
 
#define UCC_GETH_TX_BD_RING_ALIGNMENT   32
 
#define UCC_GETH_MRBLR_ALIGNMENT   128
 
#define UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT   4
 
#define UCC_GETH_TX_BD_RING_SIZE_MEMORY_ALIGNMENT   32
 
#define UCC_GETH_RX_DATA_BUF_ALIGNMENT   64
 
#define UCC_GETH_TAD_EF   0x80
 
#define UCC_GETH_TAD_V   0x40
 
#define UCC_GETH_TAD_REJ   0x20
 
#define UCC_GETH_TAD_VTAG_OP_RIGHT_SHIFT   2
 
#define UCC_GETH_TAD_VTAG_OP_SHIFT   6
 
#define UCC_GETH_TAD_V_NON_VTAG_OP   0x20
 
#define UCC_GETH_TAD_RQOS_SHIFT   0
 
#define UCC_GETH_TAD_V_PRIORITY_SHIFT   5
 
#define UCC_GETH_TAD_CFI   0x10
 
#define UCC_GETH_VLAN_PRIORITY_MAX   8
 
#define UCC_GETH_IP_PRIORITY_MAX   64
 
#define UCC_GETH_TX_VTAG_TABLE_ENTRY_MAX   8
 
#define UCC_GETH_RX_BD_RING_SIZE_MIN   8
 
#define UCC_GETH_TX_BD_RING_SIZE_MIN   2
 
#define UCC_GETH_BD_RING_SIZE_MAX   0xffff
 
#define UCC_GETH_SIZE_OF_BD   QE_SIZEOF_BD
 
#define TX_BD_RING_LEN   0x10
 
#define RX_BD_RING_LEN   0x20
 
#define TX_RING_MOD_MASK(size)   (size-1)
 
#define RX_RING_MOD_MASK(size)   (size-1)
 
#define ENET_GROUP_ADDR
 
#define TX_TIMEOUT   (1*HZ)
 
#define SKB_ALLOC_TIMEOUT   100000
 
#define PHY_INIT_TIMEOUT   100000
 
#define PHY_CHANGE_TIME   2
 
#define UCC_GETH_URFS_INIT
 
#define UCC_GETH_URFET_INIT   256 /* 1/2 urfs */
 
#define UCC_GETH_URFSET_INIT   384 /* 3/4 urfs */
 
#define UCC_GETH_UTFS_INIT
 
#define UCC_GETH_UTFET_INIT   256 /* 1/2 utfs */
 
#define UCC_GETH_UTFTT_INIT
 
#define UCC_GETH_URFS_GIGA_INIT
 
#define UCC_GETH_URFET_GIGA_INIT   2048/*1024*/ /* 1/2 urfs */
 
#define UCC_GETH_URFSET_GIGA_INIT   3072/*1536*/ /* 3/4 urfs */
 
#define UCC_GETH_UTFS_GIGA_INIT
 
#define UCC_GETH_UTFET_GIGA_INIT   2048/*1024*/ /* 1/2 utfs */
 
#define UCC_GETH_UTFTT_GIGA_INIT
 
#define UCC_GETH_REMODER_INIT
 
#define UCC_GETH_TEMODER_INIT   0xC000 /* bits that must */
 
#define UCC_GETH_UPSMR_INIT   UCC_GETH_UPSMR_RES1
 
#define UCC_GETH_MACCFG1_INIT   0
 
#define UCC_GETH_MACCFG2_INIT   (MACCFG2_RESERVED_1)
 
#define ENET_ADDR_CONT_ENTRY(ptr)   list_entry(ptr, struct enet_addr_container, node)
 

Enumerations

enum  enet_addr_type { ENET_ADDR_TYPE_INDIVIDUAL, ENET_ADDR_TYPE_GROUP, ENET_ADDR_TYPE_BROADCAST }
 
enum  ucc_geth_enet_address_recognition_location {
  UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_STATION_ADDRESS, UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_PADDR_FIRST, UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_PADDR2, UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_PADDR3,
  UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_PADDR_LAST, UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_GROUP_HASH, UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_INDIVIDUAL_HASH
}
 
enum  ucc_geth_vlan_operation_tagged { UCC_GETH_VLAN_OPERATION_TAGGED_NOP = 0x0, UCC_GETH_VLAN_OPERATION_TAGGED_REPLACE_VID_PORTION_OF_Q_TAG = 0x1, UCC_GETH_VLAN_OPERATION_TAGGED_IF_VID0_REPLACE_VID_WITH_DEFAULT_VALUE = 0x2, UCC_GETH_VLAN_OPERATION_TAGGED_EXTRACT_Q_TAG_FROM_FRAME = 0x3 }
 
enum  ucc_geth_vlan_operation_non_tagged { UCC_GETH_VLAN_OPERATION_NON_TAGGED_NOP = 0x0, UCC_GETH_VLAN_OPERATION_NON_TAGGED_Q_TAG_INSERT = 0x1 }
 
enum  ucc_geth_qos_mode { UCC_GETH_QOS_MODE_DEFAULT = 0x0, UCC_GETH_QOS_MODE_QUEUE_NUM_FROM_L2_CRITERIA = 0x1, UCC_GETH_QOS_MODE_QUEUE_NUM_FROM_L3_CRITERIA = 0x2 }
 
enum  ucc_geth_statistics_gathering_mode { UCC_GETH_STATISTICS_GATHERING_MODE_NONE = 0x00000000, UCC_GETH_STATISTICS_GATHERING_MODE_HARDWARE = 0x00000001, UCC_GETH_STATISTICS_GATHERING_MODE_FIRMWARE_TX = 0x00000004, UCC_GETH_STATISTICS_GATHERING_MODE_FIRMWARE_RX = 0x00000008 }
 
enum  ucc_geth_maccfg2_pad_and_crc_mode { UCC_GETH_PAD_AND_CRC_MODE_NONE = MACCFG2_PAD_AND_CRC_MODE_NONE, UCC_GETH_PAD_AND_CRC_MODE_CRC_ONLY = MACCFG2_PAD_AND_CRC_MODE_CRC_ONLY, UCC_GETH_PAD_AND_CRC_MODE_PAD_AND_CRC }
 
enum  ucc_geth_flow_control_mode { UPSMR_AUTOMATIC_FLOW_CONTROL_MODE_NONE = 0x00000000, UPSMR_AUTOMATIC_FLOW_CONTROL_MODE_PAUSE_WHEN_EMERGENCY = 0x00004000 }
 
enum  ucc_geth_num_of_threads {
  UCC_GETH_NUM_OF_THREADS_1 = 0x1, UCC_GETH_NUM_OF_THREADS_2 = 0x2, UCC_GETH_NUM_OF_THREADS_4 = 0x0, UCC_GETH_NUM_OF_THREADS_6 = 0x3,
  UCC_GETH_NUM_OF_THREADS_8 = 0x4
}
 
enum  ucc_geth_num_of_station_addresses { UCC_GETH_NUM_OF_STATION_ADDRESSES_1, UCC_GETH_NUM_OF_STATION_ADDRESSES_5 }
 

Functions

void uec_set_ethtool_ops (struct net_device *netdev)
 
int init_flow_control_params (u32 automatic_flow_control_mode, int rx_flow_control_enable, int tx_flow_control_enable, u16 pause_period, u16 extension_field, u32 __iomem *upsmr_register, u32 __iomem *uempr_register, u32 __iomem *maccfg1_register)
 

Variables

struct ucc_geth __packed
 

Macro Definition Documentation

#define DRV_DESC   "QE UCC Gigabit Ethernet Controller"

Definition at line 31 of file ucc_geth.h.

#define DRV_NAME   "ucc_geth"

Definition at line 32 of file ucc_geth.h.

#define DRV_VERSION   "1.1"

Definition at line 33 of file ucc_geth.h.

#define ENET_ADDR_CONT_ENTRY (   ptr)    list_entry(ptr, struct enet_addr_container, node)

Definition at line 908 of file ucc_geth.h.

#define ENET_GROUP_ADDR
Value:
0x01 /* Group address mask
for ethernet
addresses */

Definition at line 740 of file ucc_geth.h.

#define ENET_INIT_PARAM_MAGIC_RES_INIT1   0x06

Definition at line 516 of file ucc_geth.h.

#define ENET_INIT_PARAM_MAGIC_RES_INIT2   0x30

Definition at line 517 of file ucc_geth.h.

#define ENET_INIT_PARAM_MAGIC_RES_INIT3   0xff

Definition at line 518 of file ucc_geth.h.

#define ENET_INIT_PARAM_MAGIC_RES_INIT4   0x00

Definition at line 519 of file ucc_geth.h.

#define ENET_INIT_PARAM_MAGIC_RES_INIT5   0x0400

Definition at line 520 of file ucc_geth.h.

#define ENET_INIT_PARAM_MAX_ENTRIES_RX   9

Definition at line 40 of file ucc_geth.h.

#define ENET_INIT_PARAM_MAX_ENTRIES_TX   8

Definition at line 41 of file ucc_geth.h.

#define ENET_INIT_PARAM_PTR_MASK   0x00ffffc0

Definition at line 512 of file ucc_geth.h.

#define ENET_INIT_PARAM_RGF_SHIFT   (32 - 4)

Definition at line 508 of file ucc_geth.h.

#define ENET_INIT_PARAM_RISC_MASK   0x0000003f

Definition at line 511 of file ucc_geth.h.

#define ENET_INIT_PARAM_SNUM_MASK   0xff000000

Definition at line 513 of file ucc_geth.h.

#define ENET_INIT_PARAM_SNUM_SHIFT   24

Definition at line 514 of file ucc_geth.h.

#define ENET_INIT_PARAM_TGF_SHIFT   (32 - 8)

Definition at line 509 of file ucc_geth.h.

#define ENET_TBI_MII_ANA   0x04 /* AN advertisement */

Definition at line 160 of file ucc_geth.h.

#define ENET_TBI_MII_ANEX   0x06 /* AN expansion */

Definition at line 162 of file ucc_geth.h.

#define ENET_TBI_MII_ANLPANP   0x08 /* AN link partner ability next page */

Definition at line 164 of file ucc_geth.h.

#define ENET_TBI_MII_ANLPBPA   0x05 /* AN link partner base page ability */

Definition at line 161 of file ucc_geth.h.

#define ENET_TBI_MII_ANNPT   0x07 /* AN next page transmit */

Definition at line 163 of file ucc_geth.h.

#define ENET_TBI_MII_CR   0x00 /* Control */

Definition at line 158 of file ucc_geth.h.

#define ENET_TBI_MII_EXST   0x0F /* Extended status */

Definition at line 165 of file ucc_geth.h.

#define ENET_TBI_MII_JD   0x10 /* Jitter diagnostics */

Definition at line 166 of file ucc_geth.h.

#define ENET_TBI_MII_SR   0x01 /* Status */

Definition at line 159 of file ucc_geth.h.

#define ENET_TBI_MII_TBICON   0x11 /* TBI control */

Definition at line 167 of file ucc_geth.h.

#define GRACEFUL_STOP_ACKNOWLEDGE_RX   0x01

Definition at line 489 of file ucc_geth.h.

#define HALFDUP_ALT_BEB
Value:
0x00080000 /* Alternate
Binary
Exponential
Backoff */

Definition at line 238 of file ucc_geth.h.

#define HALFDUP_ALT_BEB_TR_MASK   0x00F00000

Definition at line 246 of file ucc_geth.h.

#define HALFDUP_ALT_BEB_TRUNCATION_MAX
Value:
0xf /* Alternate Binary
Exponential Backoff
Truncation max val */

Definition at line 237 of file ucc_geth.h.

#define HALFDUP_ALT_BEB_TRUNCATION_SHIFT
Value:
(31 - 11) /* Alternate
Binary
Exponential
Backoff
Truncation
<< shift */

Definition at line 236 of file ucc_geth.h.

#define HALFDUP_BACK_PRESSURE_NO_BACKOFF
Value:
0x00040000 /* Back
pressure no
backoff */

Definition at line 239 of file ucc_geth.h.

#define HALFDUP_COL_WINDOW_MASK   0x0000003F

Definition at line 248 of file ucc_geth.h.

#define HALFDUP_COLLISION_WINDOW_MAX
Value:
0x3f /* Collision Window max
val */

Definition at line 245 of file ucc_geth.h.

#define HALFDUP_COLLISION_WINDOW_SHIFT
Value:
(31 - 31) /* Collision
Window <<
shift */

Definition at line 244 of file ucc_geth.h.

#define HALFDUP_EXCESSIVE_DEFER
Value:
0x00010000 /* Excessive
Defer */

Definition at line 241 of file ucc_geth.h.

#define HALFDUP_MAX_RETRANSMISSION_MAX
Value:
0xf /* Maximum
Retransmission max
val */

Definition at line 243 of file ucc_geth.h.

#define HALFDUP_MAX_RETRANSMISSION_SHIFT
Value:
(31 - 19) /* Maximum
Retransmission
<< shift */

Definition at line 242 of file ucc_geth.h.

#define HALFDUP_NO_BACKOFF   0x00020000 /* No Backoff */

Definition at line 240 of file ucc_geth.h.

#define HALFDUP_RETRANS_MASK   0x0000F000

Definition at line 247 of file ucc_geth.h.

#define IFSTAT_EXCESS_DEFER
Value:
0x00000200 /* Excessive
transmission
defer */

Definition at line 256 of file ucc_geth.h.

#define IPGIFG_BACK_TO_BACK_IFG_MAX
Value:
127 /* back-to-back inter
frame gap max val */

Definition at line 229 of file ucc_geth.h.

#define IPGIFG_BACK_TO_BACK_IFG_SHIFT
Value:
(31 - 31) /* back-to-back
inter frame
gap << shift
*/

Definition at line 225 of file ucc_geth.h.

#define IPGIFG_BTB_IPG_MASK   0x0000007F

Definition at line 233 of file ucc_geth.h.

#define IPGIFG_MIN_IFG_MASK   0x0000FF00

Definition at line 232 of file ucc_geth.h.

#define IPGIFG_MINIMUM_IFG_ENFORCEMENT_MAX
Value:
255 /* Mimimum IFG
Enforcement max val */

Definition at line 228 of file ucc_geth.h.

#define IPGIFG_MINIMUM_IFG_ENFORCEMENT_SHIFT
Value:
(31 - 23) /* Mimimum IFG
Enforcement
<< shift */

Definition at line 224 of file ucc_geth.h.

#define IPGIFG_NBTB_CS_IPG_MASK   0x7F000000

Definition at line 230 of file ucc_geth.h.

#define IPGIFG_NBTB_IPG_MASK   0x007F0000

Definition at line 231 of file ucc_geth.h.

#define IPGIFG_NON_BACK_TO_BACK_IFG_PART1_MAX
Value:
127 /* Non back-to-back
inter frame gap part
1. max val */

Definition at line 226 of file ucc_geth.h.

#define IPGIFG_NON_BACK_TO_BACK_IFG_PART1_SHIFT
Value:
(31 - 7) /* Non
back-to-back
inter frame
gap part 1.
<< shift */

Definition at line 222 of file ucc_geth.h.

#define IPGIFG_NON_BACK_TO_BACK_IFG_PART2_MAX
Value:
127 /* Non back-to-back
inter frame gap part
2. max val */

Definition at line 227 of file ucc_geth.h.

#define IPGIFG_NON_BACK_TO_BACK_IFG_PART2_SHIFT
Value:
(31 - 15) /* Non
back-to-back
inter frame
gap part 2.
<< shift */

Definition at line 223 of file ucc_geth.h.

#define MACCFG1_ENABLE_RX   0x00000004 /* Enable Rx */

Definition at line 198 of file ucc_geth.h.

#define MACCFG1_ENABLE_SYNCHED_RX
Value:
0x00000008 /* Rx Enable
synchronized
to Rx stream
*/

Definition at line 197 of file ucc_geth.h.

#define MACCFG1_ENABLE_SYNCHED_TX
Value:
0x00000002 /* Tx Enable
synchronized
to Tx stream
*/

Definition at line 199 of file ucc_geth.h.

#define MACCFG1_ENABLE_TX   0x00000001 /* Enable Tx */

Definition at line 200 of file ucc_geth.h.

#define MACCFG1_FLOW_RX
Value:
0x00000020 /* Flow Control
Rx */

Definition at line 195 of file ucc_geth.h.

#define MACCFG1_FLOW_TX
Value:
0x00000010 /* Flow Control
Tx */

Definition at line 196 of file ucc_geth.h.

#define MACCFG2_CRC_EN   0x00000002

Definition at line 213 of file ucc_geth.h.

#define MACCFG2_FDX   0x00000001 /* Full Duplex */

Definition at line 210 of file ucc_geth.h.

#define MACCFG2_FDX_MASK
Value:
0x00000001 /* Full Duplex
mask */

Definition at line 211 of file ucc_geth.h.

#define MACCFG2_INTERFACE_MODE_BYTE
Value:
0x00000200 /* byte mode
(GMII/TBI/RTB/RGMII
1000bps ) */

Definition at line 218 of file ucc_geth.h.

#define MACCFG2_INTERFACE_MODE_MASK
Value:
0x00000300 /* mask
covering all
relevant
bits */

Definition at line 219 of file ucc_geth.h.

#define MACCFG2_INTERFACE_MODE_NIBBLE
Value:
0x00000100 /* nibble mode
(MII/RMII/RGMII
10/100bps) */

Definition at line 217 of file ucc_geth.h.

#define MACCFG2_LC
Value:
0x00000010 /* Length Check
*/

Definition at line 208 of file ucc_geth.h.

#define MACCFG2_MPE
Value:
0x00000008 /* Magic packet
detect */

Definition at line 209 of file ucc_geth.h.

#define MACCFG2_PAD_AND_CRC_MODE_CRC_ONLY
Value:
0x00000002 /* Append CRC
only */

Definition at line 215 of file ucc_geth.h.

#define MACCFG2_PAD_AND_CRC_MODE_NONE
Value:
0x00000000 /* Neither
Padding
short frames
nor CRC */

Definition at line 214 of file ucc_geth.h.

#define MACCFG2_PAD_AND_CRC_MODE_PAD_AND_CRC   0x00000004

Definition at line 216 of file ucc_geth.h.

#define MACCFG2_PAD_CRC   0x00000004

Definition at line 212 of file ucc_geth.h.

#define MACCFG2_PREL_MASK
Value:
0x0000f000 /* Preamble
Length mask */

Definition at line 204 of file ucc_geth.h.

#define MACCFG2_PREL_SHIFT
Value:
(31 - 19) /* Preamble
Length <<
shift */

Definition at line 203 of file ucc_geth.h.

#define MACCFG2_RESERVED_1
Value:
0x00000020 /* Reserved -
must be set
to 1 */

Definition at line 207 of file ucc_geth.h.

#define MACCFG2_SRP
Value:
0x00000080 /* Soft Receive
Preamble */

Definition at line 205 of file ucc_geth.h.

#define MACCFG2_STP
Value:
0x00000040 /* Soft
Transmit
Preamble */

Definition at line 206 of file ucc_geth.h.

#define MACSTNADDR1_OCTET_3_SHIFT
Value:
(31 - 31) /* Station
address 3rd
octet <<
shift */

Definition at line 262 of file ucc_geth.h.

#define MACSTNADDR1_OCTET_4_SHIFT
Value:
(31 - 23) /* Station
address 4th
octet <<
shift */

Definition at line 261 of file ucc_geth.h.

#define MACSTNADDR1_OCTET_5_SHIFT
Value:
(31 - 15) /* Station
address 5th
octet <<
shift */

Definition at line 260 of file ucc_geth.h.

#define MACSTNADDR1_OCTET_6_SHIFT
Value:
(31 - 7) /* Station
address 6th
octet <<
shift */

Definition at line 259 of file ucc_geth.h.

#define MACSTNADDR2_OCTET_1_SHIFT
Value:
(31 - 15) /* Station
address 1st
octet <<
shift */

Definition at line 266 of file ucc_geth.h.

#define MACSTNADDR2_OCTET_2_SHIFT
Value:
(31 - 7) /* Station
address 2nd
octet <<
shift */

Definition at line 265 of file ucc_geth.h.

#define NUM_BDS_IN_PREFETCHED_BDS   4

Definition at line 37 of file ucc_geth.h.

#define NUM_OF_PADDRS   4

Definition at line 39 of file ucc_geth.h.

#define NUM_RX_QUEUES   8

Definition at line 36 of file ucc_geth.h.

#define NUM_TX_QUEUES   8

Definition at line 35 of file ucc_geth.h.

#define PHY_CHANGE_TIME   2

Definition at line 745 of file ucc_geth.h.

#define PHY_INIT_TIMEOUT   100000

Definition at line 744 of file ucc_geth.h.

#define R_BC   (((u32) RX_ERRORS_BC ) << 16)

Definition at line 687 of file ucc_geth.h.

#define R_CMR   (((u32) RX_ERRORS_CMR ) << 16)

Definition at line 685 of file ucc_geth.h.

#define R_CR   0x00040000 /* CRC error. */

Definition at line 682 of file ucc_geth.h.

#define R_ERRORS_FATAL
Value:
(R_LG | R_NO | R_SH | R_CR | \
R_OV | R_IPCH) /* receive errors to discard */

Definition at line 690 of file ucc_geth.h.

#define R_ERRORS_REPORT
Value:
(R_CMR | R_M | R_BC | R_MC) /* receive errors to
report */

Definition at line 689 of file ucc_geth.h.

#define R_IPCH   0x00010000 /* IP checksum check failed. */

Definition at line 684 of file ucc_geth.h.

#define R_LG   0x00200000 /* Frame length violation. */

Definition at line 679 of file ucc_geth.h.

#define R_M   (((u32) RX_ERRORS_M ) << 16)

Definition at line 686 of file ucc_geth.h.

#define R_MC   (((u32) RX_ERRORS_MC ) << 16)

Definition at line 688 of file ucc_geth.h.

#define R_NO   0x00100000 /* Non-octet aligned frame. */

Definition at line 680 of file ucc_geth.h.

#define R_OV   0x00020000 /* Overrun. */

Definition at line 683 of file ucc_geth.h.

#define R_SH   0x00080000 /* Short frame. */

Definition at line 681 of file ucc_geth.h.

#define REMODER_DYNAMIC_MAX_FRAME_LENGTH
Value:
0x00000008 /* enable
dynamic max
frame length
*/

Definition at line 129 of file ucc_geth.h.

#define REMODER_DYNAMIC_MIN_FRAME_LENGTH
Value:
0x00000004 /* enable
dynamic min
frame length
*/

Definition at line 130 of file ucc_geth.h.

#define REMODER_IP_ADDRESS_ALIGNMENT
Value:
0x00000001 /* align ip
address to
4-byte
boundary */

Definition at line 132 of file ucc_geth.h.

#define REMODER_IP_CHECKSUM_CHECK
Value:
0x00000002 /* check IPv4
checksums */

Definition at line 131 of file ucc_geth.h.

#define REMODER_NUM_OF_QUEUES_SHIFT
Value:
(31-23) /* Number of queues <<
shift */

Definition at line 128 of file ucc_geth.h.

#define REMODER_RMON_STATISTICS
Value:
0x00001000 /* enable rx
statistics */

Definition at line 126 of file ucc_geth.h.

#define REMODER_RX_EXTENDED_FEATURES
Value:
0x80000000 /* enable
extended
features */

Definition at line 122 of file ucc_geth.h.

#define REMODER_RX_EXTENDED_FILTERING
Value:
0x00000800 /* extended
filtering
vs.
mpc82xx-like
filtering */

Definition at line 127 of file ucc_geth.h.

#define REMODER_RX_QOS_MODE_SHIFT
Value:
(31-15) /* rx QoS mode << shift
*/

Definition at line 125 of file ucc_geth.h.

#define REMODER_RX_RMON_STATISTICS_ENABLE
Value:
0x00001000 /* enable Rx
statistics */

Definition at line 121 of file ucc_geth.h.

#define REMODER_VLAN_OPERATION_NON_TAGGED_SHIFT
Value:
(31-10) /* vlan operation non
tagged << shift */

Definition at line 124 of file ucc_geth.h.

#define REMODER_VLAN_OPERATION_TAGGED_SHIFT
Value:
(31-9 ) /* vlan operation
tagged << shift */

Definition at line 123 of file ucc_geth.h.

#define RX_BD_RING_LEN   0x20

Definition at line 735 of file ucc_geth.h.

#define RX_ERRORS_BC   0x0080

Definition at line 663 of file ucc_geth.h.

#define RX_ERRORS_CMR   0x0200

Definition at line 661 of file ucc_geth.h.

#define RX_ERRORS_M   0x0100

Definition at line 662 of file ucc_geth.h.

#define RX_ERRORS_MC   0x0040

Definition at line 664 of file ucc_geth.h.

#define RX_RING_MOD_MASK (   size)    (size-1)

Definition at line 738 of file ucc_geth.h.

#define SKB_ALLOC_TIMEOUT   100000

Definition at line 743 of file ucc_geth.h.

#define T_CSL   (((u32) TX_ERRORS_CSL ) << 16)

Definition at line 674 of file ucc_geth.h.

#define T_DEF   (((u32) TX_ERRORS_DEF ) << 16)

Definition at line 668 of file ucc_geth.h.

#define T_ERRORS_REPORT
Value:
| T_UN | T_CSL) /* transmit errors to report */

Definition at line 675 of file ucc_geth.h.

#define T_EXDEF   (((u32) TX_ERRORS_EXDEF ) << 16)

Definition at line 669 of file ucc_geth.h.

#define T_LC   (((u32) TX_ERRORS_LC ) << 16)

Definition at line 670 of file ucc_geth.h.

#define T_RC_MASK   (((u32) TX_ERRORS_RC_MASK ) << 16)

Definition at line 672 of file ucc_geth.h.

#define T_RL   (((u32) TX_ERRORS_RL ) << 16)

Definition at line 671 of file ucc_geth.h.

#define T_UN   (((u32) TX_ERRORS_UN ) << 16)

Definition at line 673 of file ucc_geth.h.

#define T_VID   0x003c0000 /* insert VLAN id index mask. */

Definition at line 667 of file ucc_geth.h.

#define TBIANA_ASYMMETRIC_PAUSE   0x0100

Definition at line 172 of file ucc_geth.h.

#define TBIANA_FULL_DUPLEX   0x0020

Definition at line 175 of file ucc_geth.h.

#define TBIANA_HALF_DUPLEX   0x0040

Definition at line 174 of file ucc_geth.h.

#define TBIANA_SETTINGS
Value:
( \
TBIANA_ASYMMETRIC_PAUSE \
)

Definition at line 182 of file ucc_geth.h.

#define TBIANA_SYMMETRIC_PAUSE   0x0080

Definition at line 173 of file ucc_geth.h.

#define TBICON_CLK_SELECT   0x0020

Definition at line 171 of file ucc_geth.h.

#define TBICR_ANEG_ENABLE   0x1000

Definition at line 177 of file ucc_geth.h.

#define TBICR_FULL_DUPLEX   0x0100

Definition at line 179 of file ucc_geth.h.

#define TBICR_PHY_RESET   0x8000

Definition at line 176 of file ucc_geth.h.

#define TBICR_RESTART_ANEG   0x0200

Definition at line 178 of file ucc_geth.h.

#define TBICR_SETTINGS
Value:
( \
TBICR_PHY_RESET \
)

Definition at line 187 of file ucc_geth.h.

#define TBICR_SPEED1_SET   0x0040

Definition at line 180 of file ucc_geth.h.

#define TBISR_LSTATUS   0x0004

Definition at line 170 of file ucc_geth.h.

#define TEMODER_IP_CHECKSUM_GENERATE
Value:
0x0400 /* generate IPv4
checksums */

Definition at line 115 of file ucc_geth.h.

#define TEMODER_NUM_OF_QUEUES_SHIFT
Value:
(15-15) /* Number of queues <<
shift */

Definition at line 118 of file ucc_geth.h.

#define TEMODER_PERFORMANCE_OPTIMIZATION_MODE1
Value:
0x0200 /* enable performance
optimization
enhancement (mode1) */

Definition at line 116 of file ucc_geth.h.

#define TEMODER_RMON_STATISTICS
Value:
0x0100 /* enable tx statistics
*/

Definition at line 117 of file ucc_geth.h.

#define TEMODER_SCHEDULER_ENABLE   0x2000 /* enable scheduler */

Definition at line 114 of file ucc_geth.h.

#define TEMODER_TX_RMON_STATISTICS_ENABLE
Value:
0x0100 /* enable Tx statistics
*/

Definition at line 113 of file ucc_geth.h.

#define THREAD_RX_PRAM_ADDITIONAL_FOR_EXTENDED_FILTERING   64

Definition at line 313 of file ucc_geth.h.

#define THREAD_RX_PRAM_ADDITIONAL_FOR_EXTENDED_FILTERING_16   96

Definition at line 315 of file ucc_geth.h.

#define THREAD_RX_PRAM_ADDITIONAL_FOR_EXTENDED_FILTERING_8   64

Definition at line 314 of file ucc_geth.h.

#define TX_BD_RING_LEN   0x10

Definition at line 734 of file ucc_geth.h.

#define TX_ERRORS_CSL   0x0001

Definition at line 658 of file ucc_geth.h.

#define TX_ERRORS_DEF   0x0200

Definition at line 651 of file ucc_geth.h.

#define TX_ERRORS_EXDEF   0x0100

Definition at line 652 of file ucc_geth.h.

#define TX_ERRORS_LC   0x0080

Definition at line 653 of file ucc_geth.h.

#define TX_ERRORS_RC_MASK   0x003C

Definition at line 655 of file ucc_geth.h.

#define TX_ERRORS_RC_SHIFT   2

Definition at line 656 of file ucc_geth.h.

#define TX_ERRORS_RL   0x0040

Definition at line 654 of file ucc_geth.h.

#define TX_ERRORS_UN   0x0002

Definition at line 657 of file ucc_geth.h.

#define TX_IP_OFFSET_ENTRY_MAX   8

Definition at line 38 of file ucc_geth.h.

#define TX_RING_MOD_MASK (   size)    (size-1)

Definition at line 737 of file ucc_geth.h.

#define TX_TIMEOUT   (1*HZ)

Definition at line 742 of file ucc_geth.h.

#define UCC_GETH_BD_RING_SIZE_MAX   0xffff

Definition at line 729 of file ucc_geth.h.

#define UCC_GETH_IP_PRIORITY_MAX   64

Definition at line 725 of file ucc_geth.h.

#define UCC_GETH_MACCFG1_INIT   0

Definition at line 768 of file ucc_geth.h.

#define UCC_GETH_MACCFG2_INIT   (MACCFG2_RESERVED_1)

Definition at line 769 of file ucc_geth.h.

#define UCC_GETH_MRBLR_ALIGNMENT   128

Definition at line 709 of file ucc_geth.h.

#define UCC_GETH_REMODER_INIT
Value:
0 /* bits that must be
set */

Definition at line 762 of file ucc_geth.h.

#define UCC_GETH_RX_BD_QUEUES_ALIGNMENT   8 /* This is a guess */

Definition at line 704 of file ucc_geth.h.

#define UCC_GETH_RX_BD_RING_ALIGNMENT   32

Definition at line 707 of file ucc_geth.h.

#define UCC_GETH_RX_BD_RING_SIZE_ALIGNMENT   4

Definition at line 710 of file ucc_geth.h.

#define UCC_GETH_RX_BD_RING_SIZE_MIN   8

Definition at line 727 of file ucc_geth.h.

#define UCC_GETH_RX_DATA_BUF_ALIGNMENT   64

Definition at line 712 of file ucc_geth.h.

#define UCC_GETH_RX_EXTENDED_FILTERING_GLOBAL_PARAMETERS_ALIGNMENT
Value:
8 /* This
is a
guess
*/

Definition at line 706 of file ucc_geth.h.

#define UCC_GETH_RX_GLOBAL_PRAM_ALIGNMENT   256

Definition at line 694 of file ucc_geth.h.

#define UCC_GETH_RX_INTERRUPT_COALESCING_ALIGNMENT   64

Definition at line 703 of file ucc_geth.h.

#define UCC_GETH_RX_PREFETCHED_BDS_ALIGNMENT   128 /* This is a guess */

Definition at line 705 of file ucc_geth.h.

#define UCC_GETH_RX_STATISTICS_ALIGNMENT   4 /* This is a guess */

Definition at line 702 of file ucc_geth.h.

#define UCC_GETH_SCHEDULER_ALIGNMENT   8 /* This is a guess */

Definition at line 700 of file ucc_geth.h.

#define UCC_GETH_SEND_QUEUE_QUEUE_DESCRIPTOR_ALIGNMENT   32

Definition at line 699 of file ucc_geth.h.

#define UCC_GETH_SIZE_OF_BD   QE_SIZEOF_BD

Definition at line 731 of file ucc_geth.h.

#define UCC_GETH_TAD_CFI   0x10

Definition at line 722 of file ucc_geth.h.

#define UCC_GETH_TAD_EF   0x80

Definition at line 714 of file ucc_geth.h.

#define UCC_GETH_TAD_REJ   0x20

Definition at line 716 of file ucc_geth.h.

#define UCC_GETH_TAD_RQOS_SHIFT   0

Definition at line 720 of file ucc_geth.h.

#define UCC_GETH_TAD_V   0x40

Definition at line 715 of file ucc_geth.h.

#define UCC_GETH_TAD_V_NON_VTAG_OP   0x20

Definition at line 719 of file ucc_geth.h.

#define UCC_GETH_TAD_V_PRIORITY_SHIFT   5

Definition at line 721 of file ucc_geth.h.

#define UCC_GETH_TAD_VTAG_OP_RIGHT_SHIFT   2

Definition at line 717 of file ucc_geth.h.

#define UCC_GETH_TAD_VTAG_OP_SHIFT   6

Definition at line 718 of file ucc_geth.h.

#define UCC_GETH_TEMODER_INIT   0xC000 /* bits that must */

Definition at line 763 of file ucc_geth.h.

#define UCC_GETH_THREAD_DATA_ALIGNMENT
Value:
256 /* spec gives values
based on num of
threads, but always
using the maximum is
easier */

Definition at line 698 of file ucc_geth.h.

#define UCC_GETH_THREAD_RX_PRAM_ALIGNMENT   128

Definition at line 696 of file ucc_geth.h.

#define UCC_GETH_THREAD_TX_PRAM_ALIGNMENT   64

Definition at line 697 of file ucc_geth.h.

#define UCC_GETH_TX_BD_RING_ALIGNMENT   32

Definition at line 708 of file ucc_geth.h.

#define UCC_GETH_TX_BD_RING_SIZE_MEMORY_ALIGNMENT   32

Definition at line 711 of file ucc_geth.h.

#define UCC_GETH_TX_BD_RING_SIZE_MIN   2

Definition at line 728 of file ucc_geth.h.

#define UCC_GETH_TX_GLOBAL_PRAM_ALIGNMENT   128

Definition at line 695 of file ucc_geth.h.

#define UCC_GETH_TX_STATISTICS_ALIGNMENT   4 /* This is a guess */

Definition at line 701 of file ucc_geth.h.

#define UCC_GETH_TX_VTAG_TABLE_ENTRY_MAX   8

Definition at line 726 of file ucc_geth.h.

#define UCC_GETH_UPSMR_INIT   UCC_GETH_UPSMR_RES1

Definition at line 766 of file ucc_geth.h.

#define UCC_GETH_URFET_GIGA_INIT   2048/*1024*/ /* 1/2 urfs */

Definition at line 756 of file ucc_geth.h.

#define UCC_GETH_URFET_INIT   256 /* 1/2 urfs */

Definition at line 749 of file ucc_geth.h.

#define UCC_GETH_URFS_GIGA_INIT
Value:
4096/*2048*/ /* Rx virtual
FIFO size */

Definition at line 755 of file ucc_geth.h.

#define UCC_GETH_URFS_INIT
Value:
512 /* Rx virtual FIFO size
*/

Definition at line 748 of file ucc_geth.h.

#define UCC_GETH_URFSET_GIGA_INIT   3072/*1536*/ /* 3/4 urfs */

Definition at line 757 of file ucc_geth.h.

#define UCC_GETH_URFSET_INIT   384 /* 3/4 urfs */

Definition at line 750 of file ucc_geth.h.

#define UCC_GETH_UTFET_GIGA_INIT   2048/*1024*/ /* 1/2 utfs */

Definition at line 759 of file ucc_geth.h.

#define UCC_GETH_UTFET_INIT   256 /* 1/2 utfs */

Definition at line 752 of file ucc_geth.h.

#define UCC_GETH_UTFS_GIGA_INIT
Value:
4096/*2048*/ /* Tx virtual
FIFO size */

Definition at line 758 of file ucc_geth.h.

#define UCC_GETH_UTFS_INIT
Value:
512 /* Tx virtual FIFO size
*/

Definition at line 751 of file ucc_geth.h.

#define UCC_GETH_UTFTT_GIGA_INIT
Value:
4096/*0x40*/ /* Tx virtual
FIFO size */

Definition at line 760 of file ucc_geth.h.

#define UCC_GETH_UTFTT_INIT
Value:
256 /* 1/2 utfs
due to errata */

Definition at line 753 of file ucc_geth.h.

#define UCC_GETH_VLAN_PRIORITY_MAX   8

Definition at line 724 of file ucc_geth.h.

#define UCCE_OTHER
Value:
(UCC_GETH_UCCE_SCAR | UCC_GETH_UCCE_GRA | \
UCC_GETH_UCCE_CBPR | UCC_GETH_UCCE_BSY | \
UCC_GETH_UCCE_RXC | UCC_GETH_UCCE_TXC | UCC_GETH_UCCE_TXE)

Definition at line 150 of file ucc_geth.h.

#define UCCE_RX_EVENTS   (UCCE_RXF | UCC_GETH_UCCE_BSY)

Definition at line 154 of file ucc_geth.h.

#define UCCE_RXB
Value:
(UCC_GETH_UCCE_RXB7 | UCC_GETH_UCCE_RXB6 | \
UCC_GETH_UCCE_RXB5 | UCC_GETH_UCCE_RXB4 | \
UCC_GETH_UCCE_RXB3 | UCC_GETH_UCCE_RXB2 | \
UCC_GETH_UCCE_RXB1 | UCC_GETH_UCCE_RXB0)

Definition at line 140 of file ucc_geth.h.

#define UCCE_RXF
Value:
(UCC_GETH_UCCE_RXF7 | UCC_GETH_UCCE_RXF6 | \
UCC_GETH_UCCE_RXF5 | UCC_GETH_UCCE_RXF4 | \
UCC_GETH_UCCE_RXF3 | UCC_GETH_UCCE_RXF2 | \
UCC_GETH_UCCE_RXF1 | UCC_GETH_UCCE_RXF0)

Definition at line 145 of file ucc_geth.h.

#define UCCE_TX_EVENTS   (UCCE_TXB | UCC_GETH_UCCE_TXE)

Definition at line 155 of file ucc_geth.h.

#define UCCE_TXB
Value:
(UCC_GETH_UCCE_TXB7 | UCC_GETH_UCCE_TXB6 | \
UCC_GETH_UCCE_TXB5 | UCC_GETH_UCCE_TXB4 | \
UCC_GETH_UCCE_TXB3 | UCC_GETH_UCCE_TXB2 | \
UCC_GETH_UCCE_TXB1 | UCC_GETH_UCCE_TXB0)

Definition at line 135 of file ucc_geth.h.

#define UCCS_BPR
Value:
0x02 /* Back pressure (in
half duplex mode) */

Definition at line 251 of file ucc_geth.h.

#define UCCS_MPD
Value:
0x01 /* Magic Packet
Detected */

Definition at line 253 of file ucc_geth.h.

#define UCCS_PAU
Value:
0x02 /* Pause state (in full
duplex mode) */

Definition at line 252 of file ucc_geth.h.

#define UDSR_MAGIC   0x067E

Definition at line 283 of file ucc_geth.h.

#define UEMPR_EXTENDED_PAUSE_TIME_VALUE_SHIFT
Value:
(31 - 31) /* Extended
pause time
value <<
shift */

Definition at line 270 of file ucc_geth.h.

#define UEMPR_PAUSE_TIME_VALUE_SHIFT
Value:
(31 - 15) /* Pause time
value <<
shift */

Definition at line 269 of file ucc_geth.h.

#define UESCR_AUTOZ
Value:
0x8000 /* Automatically zero
addressed
statistical counter
values */

Definition at line 277 of file ucc_geth.h.

#define UESCR_CLRCNT
Value:
0x4000 /* Clear all statistics
counters */

Definition at line 278 of file ucc_geth.h.

#define UESCR_MAXCOV_SHIFT
Value:
(15 - 7) /* Max
Coalescing
Value <<
shift */

Definition at line 279 of file ucc_geth.h.

#define UESCR_SCOV_SHIFT
Value:
(15 - 15) /* Status
Coalescing
Value <<
shift */

Definition at line 280 of file ucc_geth.h.

#define UTBIPAR_PHY_ADDRESS_MASK
Value:
0x0000001f /* Phy address
mask */

Definition at line 274 of file ucc_geth.h.

#define UTBIPAR_PHY_ADDRESS_SHIFT
Value:
(31 - 31) /* Phy address
<< shift */

Definition at line 273 of file ucc_geth.h.

Enumeration Type Documentation

Enumerator:
ENET_ADDR_TYPE_INDIVIDUAL 
ENET_ADDR_TYPE_GROUP 
ENET_ADDR_TYPE_BROADCAST 

Definition at line 772 of file ucc_geth.h.

Enumerator:
UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_STATION_ADDRESS 
UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_PADDR_FIRST 
UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_PADDR2 
UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_PADDR3 
UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_PADDR_LAST 
UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_GROUP_HASH 
UCC_GETH_ENET_ADDRESS_RECOGNITION_LOCATION_INDIVIDUAL_HASH 

Definition at line 779 of file ucc_geth.h.

Enumerator:
UPSMR_AUTOMATIC_FLOW_CONTROL_MODE_NONE 
UPSMR_AUTOMATIC_FLOW_CONTROL_MODE_PAUSE_WHEN_EMERGENCY 

Definition at line 874 of file ucc_geth.h.

Enumerator:
UCC_GETH_PAD_AND_CRC_MODE_NONE 
UCC_GETH_PAD_AND_CRC_MODE_CRC_ONLY 
UCC_GETH_PAD_AND_CRC_MODE_PAD_AND_CRC 

Definition at line 861 of file ucc_geth.h.

Enumerator:
UCC_GETH_NUM_OF_STATION_ADDRESSES_1 
UCC_GETH_NUM_OF_STATION_ADDRESSES_5 

Definition at line 893 of file ucc_geth.h.

Enumerator:
UCC_GETH_NUM_OF_THREADS_1 
UCC_GETH_NUM_OF_THREADS_2 
UCC_GETH_NUM_OF_THREADS_4 
UCC_GETH_NUM_OF_THREADS_6 
UCC_GETH_NUM_OF_THREADS_8 

Definition at line 884 of file ucc_geth.h.

Enumerator:
UCC_GETH_QOS_MODE_DEFAULT 
UCC_GETH_QOS_MODE_QUEUE_NUM_FROM_L2_CRITERIA 
UCC_GETH_QOS_MODE_QUEUE_NUM_FROM_L3_CRITERIA 

Definition at line 823 of file ucc_geth.h.

Enumerator:
UCC_GETH_STATISTICS_GATHERING_MODE_NONE 
UCC_GETH_STATISTICS_GATHERING_MODE_HARDWARE 
UCC_GETH_STATISTICS_GATHERING_MODE_FIRMWARE_TX 
UCC_GETH_STATISTICS_GATHERING_MODE_FIRMWARE_RX 

Definition at line 837 of file ucc_geth.h.

Enumerator:
UCC_GETH_VLAN_OPERATION_NON_TAGGED_NOP 
UCC_GETH_VLAN_OPERATION_NON_TAGGED_Q_TAG_INSERT 

Definition at line 815 of file ucc_geth.h.

Enumerator:
UCC_GETH_VLAN_OPERATION_TAGGED_NOP 
UCC_GETH_VLAN_OPERATION_TAGGED_REPLACE_VID_PORTION_OF_Q_TAG 
UCC_GETH_VLAN_OPERATION_TAGGED_IF_VID0_REPLACE_VID_WITH_DEFAULT_VALUE 
UCC_GETH_VLAN_OPERATION_TAGGED_EXTRACT_Q_TAG_FROM_FRAME 

Definition at line 804 of file ucc_geth.h.

Function Documentation

int init_flow_control_params ( u32  automatic_flow_control_mode,
int  rx_flow_control_enable,
int  tx_flow_control_enable,
u16  pause_period,
u16  extension_field,
u32 __iomem upsmr_register,
u32 __iomem uempr_register,
u32 __iomem maccfg1_register 
)

Definition at line 1126 of file ucc_geth.c.

void uec_set_ethtool_ops ( struct net_device netdev)

Definition at line 421 of file ucc_geth_ethtool.c.

Variable Documentation