Linux Kernel
3.7.1
|
#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 |
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 |
#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 |
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 |
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 |
Definition at line 237 of file ucc_geth.h.
#define HALFDUP_ALT_BEB_TRUNCATION_SHIFT |
Definition at line 236 of file ucc_geth.h.
#define HALFDUP_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 |
Definition at line 245 of file ucc_geth.h.
#define HALFDUP_COLLISION_WINDOW_SHIFT |
Definition at line 244 of file ucc_geth.h.
#define HALFDUP_EXCESSIVE_DEFER |
Definition at line 241 of file ucc_geth.h.
#define HALFDUP_MAX_RETRANSMISSION_MAX |
Definition at line 243 of file ucc_geth.h.
#define HALFDUP_MAX_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 |
Definition at line 256 of file ucc_geth.h.
#define IPGIFG_BACK_TO_BACK_IFG_MAX |
Definition at line 229 of file ucc_geth.h.
#define IPGIFG_BACK_TO_BACK_IFG_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 |
Definition at line 228 of file ucc_geth.h.
#define IPGIFG_MINIMUM_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 |
Definition at line 226 of file ucc_geth.h.
#define IPGIFG_NON_BACK_TO_BACK_IFG_PART1_SHIFT |
Definition at line 222 of file ucc_geth.h.
#define IPGIFG_NON_BACK_TO_BACK_IFG_PART2_MAX |
Definition at line 227 of file ucc_geth.h.
#define IPGIFG_NON_BACK_TO_BACK_IFG_PART2_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 |
Definition at line 197 of file ucc_geth.h.
#define MACCFG1_ENABLE_SYNCHED_TX |
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 |
Definition at line 195 of file ucc_geth.h.
#define MACCFG1_FLOW_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 |
Definition at line 211 of file ucc_geth.h.
#define MACCFG2_INTERFACE_MODE_BYTE |
Definition at line 218 of file ucc_geth.h.
#define MACCFG2_INTERFACE_MODE_MASK |
Definition at line 219 of file ucc_geth.h.
#define MACCFG2_INTERFACE_MODE_NIBBLE |
Definition at line 217 of file ucc_geth.h.
#define MACCFG2_LC |
Definition at line 208 of file ucc_geth.h.
#define MACCFG2_MPE |
Definition at line 209 of file ucc_geth.h.
#define MACCFG2_PAD_AND_CRC_MODE_CRC_ONLY |
Definition at line 215 of file ucc_geth.h.
#define MACCFG2_PAD_AND_CRC_MODE_NONE |
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 |
Definition at line 204 of file ucc_geth.h.
#define MACCFG2_PREL_SHIFT |
Definition at line 203 of file ucc_geth.h.
#define MACCFG2_RESERVED_1 |
Definition at line 207 of file ucc_geth.h.
#define MACCFG2_SRP |
Definition at line 205 of file ucc_geth.h.
#define MACCFG2_STP |
Definition at line 206 of file ucc_geth.h.
#define MACSTNADDR1_OCTET_3_SHIFT |
Definition at line 262 of file ucc_geth.h.
#define MACSTNADDR1_OCTET_4_SHIFT |
Definition at line 261 of file ucc_geth.h.
#define MACSTNADDR1_OCTET_5_SHIFT |
Definition at line 260 of file ucc_geth.h.
#define MACSTNADDR1_OCTET_6_SHIFT |
Definition at line 259 of file ucc_geth.h.
#define MACSTNADDR2_OCTET_1_SHIFT |
Definition at line 266 of file ucc_geth.h.
#define MACSTNADDR2_OCTET_2_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 |
#define R_ERRORS_REPORT |
#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 |
Definition at line 129 of file ucc_geth.h.
#define REMODER_DYNAMIC_MIN_FRAME_LENGTH |
Definition at line 130 of file ucc_geth.h.
#define REMODER_IP_ADDRESS_ALIGNMENT |
Definition at line 132 of file ucc_geth.h.
#define REMODER_IP_CHECKSUM_CHECK |
Definition at line 131 of file ucc_geth.h.
#define REMODER_NUM_OF_QUEUES_SHIFT |
Definition at line 128 of file ucc_geth.h.
#define REMODER_RMON_STATISTICS |
Definition at line 126 of file ucc_geth.h.
#define REMODER_RX_EXTENDED_FEATURES |
Definition at line 122 of file ucc_geth.h.
#define REMODER_RX_EXTENDED_FILTERING |
Definition at line 127 of file ucc_geth.h.
#define REMODER_RX_QOS_MODE_SHIFT |
Definition at line 125 of file ucc_geth.h.
#define REMODER_RX_RMON_STATISTICS_ENABLE |
Definition at line 121 of file ucc_geth.h.
#define REMODER_VLAN_OPERATION_NON_TAGGED_SHIFT |
Definition at line 124 of file ucc_geth.h.
#define REMODER_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.
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 |
#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 |
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 |
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 |
Definition at line 115 of file ucc_geth.h.
#define TEMODER_NUM_OF_QUEUES_SHIFT |
Definition at line 118 of file ucc_geth.h.
#define TEMODER_PERFORMANCE_OPTIMIZATION_MODE1 |
Definition at line 116 of file ucc_geth.h.
#define TEMODER_RMON_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 |
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.
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 |
Definition at line 762 of file ucc_geth.h.
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 |
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.
Definition at line 705 of file ucc_geth.h.
Definition at line 702 of file ucc_geth.h.
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 |
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.
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 |
Definition at line 755 of file ucc_geth.h.
#define UCC_GETH_URFS_INIT |
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 |
Definition at line 758 of file ucc_geth.h.
#define UCC_GETH_UTFS_INIT |
Definition at line 751 of file ucc_geth.h.
#define UCC_GETH_UTFTT_GIGA_INIT |
Definition at line 760 of file ucc_geth.h.
#define UCC_GETH_UTFTT_INIT |
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 |
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 |
Definition at line 140 of file ucc_geth.h.
#define UCCE_RXF |
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 |
Definition at line 135 of file ucc_geth.h.
#define UCCS_BPR |
Definition at line 251 of file ucc_geth.h.
#define UCCS_MPD |
Definition at line 253 of file ucc_geth.h.
#define UCCS_PAU |
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 |
Definition at line 270 of file ucc_geth.h.
#define UEMPR_PAUSE_TIME_VALUE_SHIFT |
Definition at line 269 of file ucc_geth.h.
#define UESCR_AUTOZ |
Definition at line 277 of file ucc_geth.h.
#define UESCR_CLRCNT |
Definition at line 278 of file ucc_geth.h.
#define UESCR_MAXCOV_SHIFT |
Definition at line 279 of file ucc_geth.h.
#define UESCR_SCOV_SHIFT |
Definition at line 280 of file ucc_geth.h.
#define UTBIPAR_PHY_ADDRESS_MASK |
Definition at line 274 of file ucc_geth.h.
#define UTBIPAR_PHY_ADDRESS_SHIFT |
Definition at line 273 of file ucc_geth.h.
enum enet_addr_type |
Definition at line 772 of file ucc_geth.h.
Definition at line 779 of file ucc_geth.h.
UPSMR_AUTOMATIC_FLOW_CONTROL_MODE_NONE | |
UPSMR_AUTOMATIC_FLOW_CONTROL_MODE_PAUSE_WHEN_EMERGENCY |
Definition at line 874 of file ucc_geth.h.
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.
Definition at line 893 of file ucc_geth.h.
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.
enum ucc_geth_qos_mode |
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.
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.
Definition at line 815 of file ucc_geth.h.
Definition at line 804 of file ucc_geth.h.
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.