Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Data Fields
tg3 Struct Reference

#include <tg3.h>

Public Member Functions

 DECLARE_BITMAP (tg3_flags, TG3_FLAG_NUMBER_OF_FLAGS)
 

Data Fields

unsigned int irq_sync
 
spinlock_t lock
 
spinlock_t indirect_lock
 
u32(* read32 )(struct tg3 *, u32)
 
void(* write32 )(struct tg3 *, u32, u32)
 
u32(* read32_mbox )(struct tg3 *, u32)
 
void(* write32_mbox )(struct tg3 *, u32, u32)
 
void __iomemregs
 
void __iomemaperegs
 
struct net_devicedev
 
struct pci_devpdev
 
u32 coal_now
 
u32 msg_enable
 
void(* write32_tx_mbox )(struct tg3 *, u32, u32)
 
u32 dma_limit
 
u32 txq_req
 
u32 txq_cnt
 
u32 txq_max
 
struct tg3_napi napi [TG3_IRQ_MAX_VECS]
 
void(* write32_rx_mbox )(struct tg3 *, u32, u32)
 
u32 rx_copy_thresh
 
u32 rx_std_ring_mask
 
u32 rx_jmb_ring_mask
 
u32 rx_ret_ring_mask
 
u32 rx_pending
 
u32 rx_jumbo_pending
 
u32 rx_std_max_post
 
u32 rx_offset
 
u32 rx_pkt_map_sz
 
u32 rxq_req
 
u32 rxq_cnt
 
u32 rxq_max
 
bool rx_refill
 
unsigned long rx_dropped
 
unsigned long tx_dropped
 
struct rtnl_link_stats64 net_stats_prev
 
struct tg3_ethtool_stats estats_prev
 
union {
   unsigned long   phy_crc_errors
 
   unsigned long   last_event_jiffies
 
}; 
 
struct timer_list timer
 
u16 timer_counter
 
u16 timer_multiplier
 
u32 timer_offset
 
u16 asf_counter
 
u16 asf_multiplier
 
u32 serdes_counter
 
struct tg3_link_config link_config
 
struct tg3_bufmgr_config bufmgr_config
 
u32 rx_mode
 
u32 tx_mode
 
u32 mac_mode
 
u32 mi_mode
 
u32 misc_host_ctrl
 
u32 grc_mode
 
u32 grc_local_ctrl
 
u32 dma_rwctrl
 
u32 coalesce_mode
 
u32 pwrmgmt_thresh
 
u32 pci_chip_rev_id
 
u16 pci_cmd
 
u8 pci_cacheline_sz
 
u8 pci_lat_timer
 
int pci_fn
 
int pm_cap
 
int msi_cap
 
int pcix_cap
 
int pcie_readrq
 
struct mii_busmdio_bus
 
int mdio_irq [PHY_MAX_ADDR]
 
int old_link
 
u8 phy_addr
 
u8 phy_ape_lock
 
u32 phy_id
 
u32 phy_flags
 
u32 led_ctrl
 
u32 phy_otp
 
u32 setlpicnt
 
u8 rss_ind_tbl [TG3_RSS_INDIR_TBL_SIZE]
 
char board_part_number [TG3_BPN_SIZE]
 
char fw_ver [TG3_VER_SIZE]
 
u32 nic_sram_data_cfg
 
u32 pci_clock_ctrl
 
struct pci_devpdev_peer
 
struct tg3_hw_statshw_stats
 
dma_addr_t stats_mapping
 
struct work_struct reset_task
 
int nvram_lock_cnt
 
u32 nvram_size
 
u32 nvram_pagesize
 
u32 nvram_jedecnum
 
unsigned int irq_max
 
unsigned int irq_cnt
 
struct ethtool_coalesce coal
 
const charfw_needed
 
struct firmwarefw
 
u32 fw_len
 

Detailed Description

Definition at line 2982 of file tg3.h.

Member Function Documentation

DECLARE_BITMAP ( tg3_flags  ,
TG3_FLAG_NUMBER_OF_FLAGS   
)

Field Documentation

union { ... }
void __iomem* aperegs

Definition at line 3030 of file tg3.h.

u16 asf_counter

Definition at line 3081 of file tg3.h.

u16 asf_multiplier

Definition at line 3082 of file tg3.h.

char board_part_number[TG3_BPN_SIZE]

Definition at line 3203 of file tg3.h.

struct tg3_bufmgr_config bufmgr_config

Definition at line 3091 of file tg3.h.

Definition at line 3255 of file tg3.h.

u32 coal_now

Definition at line 3034 of file tg3.h.

u32 coalesce_mode

Definition at line 3102 of file tg3.h.

Definition at line 3031 of file tg3.h.

u32 dma_limit

Definition at line 3040 of file tg3.h.

u32 dma_rwctrl

Definition at line 3101 of file tg3.h.

Definition at line 3068 of file tg3.h.

Definition at line 3259 of file tg3.h.

u32 fw_len

Definition at line 3260 of file tg3.h.

const char* fw_needed

Definition at line 3258 of file tg3.h.

char fw_ver[TG3_VER_SIZE]

Definition at line 3205 of file tg3.h.

u32 grc_local_ctrl

Definition at line 3100 of file tg3.h.

u32 grc_mode

Definition at line 3099 of file tg3.h.

struct tg3_hw_stats* hw_stats

Definition at line 3210 of file tg3.h.

spinlock_t indirect_lock

Definition at line 3022 of file tg3.h.

unsigned int irq_cnt

Definition at line 3253 of file tg3.h.

unsigned int irq_max

Definition at line 3252 of file tg3.h.

unsigned int irq_sync

Definition at line 3000 of file tg3.h.

unsigned long last_event_jiffies

Definition at line 3074 of file tg3.h.

u32 led_ctrl

Definition at line 3197 of file tg3.h.

Definition at line 3090 of file tg3.h.

spinlock_t lock

Definition at line 3021 of file tg3.h.

u32 mac_mode

Definition at line 3096 of file tg3.h.

struct mii_bus* mdio_bus

Definition at line 3117 of file tg3.h.

int mdio_irq[PHY_MAX_ADDR]

Definition at line 3118 of file tg3.h.

u32 mi_mode

Definition at line 3097 of file tg3.h.

u32 misc_host_ctrl

Definition at line 3098 of file tg3.h.

u32 msg_enable

Definition at line 3035 of file tg3.h.

int msi_cap

Definition at line 3113 of file tg3.h.

Definition at line 3046 of file tg3.h.

struct rtnl_link_stats64 net_stats_prev

Definition at line 3067 of file tg3.h.

u32 nic_sram_data_cfg

Definition at line 3206 of file tg3.h.

u32 nvram_jedecnum

Definition at line 3225 of file tg3.h.

int nvram_lock_cnt

Definition at line 3214 of file tg3.h.

u32 nvram_pagesize

Definition at line 3224 of file tg3.h.

u32 nvram_size

Definition at line 3215 of file tg3.h.

int old_link

Definition at line 3119 of file tg3.h.

u8 pci_cacheline_sz

Definition at line 3108 of file tg3.h.

u32 pci_chip_rev_id

Definition at line 3106 of file tg3.h.

u32 pci_clock_ctrl

Definition at line 3207 of file tg3.h.

u16 pci_cmd

Definition at line 3107 of file tg3.h.

int pci_fn

Definition at line 3111 of file tg3.h.

u8 pci_lat_timer

Definition at line 3109 of file tg3.h.

int pcie_readrq

Definition at line 3115 of file tg3.h.

int pcix_cap

Definition at line 3114 of file tg3.h.

struct pci_dev* pdev

Definition at line 3032 of file tg3.h.

struct pci_dev* pdev_peer

Definition at line 3208 of file tg3.h.

u8 phy_addr

Definition at line 3121 of file tg3.h.

u8 phy_ape_lock

Definition at line 3122 of file tg3.h.

unsigned long phy_crc_errors

Definition at line 3073 of file tg3.h.

u32 phy_flags

Definition at line 3174 of file tg3.h.

u32 phy_id

Definition at line 3125 of file tg3.h.

u32 phy_otp

Definition at line 3198 of file tg3.h.

int pm_cap

Definition at line 3112 of file tg3.h.

u32 pwrmgmt_thresh

Definition at line 3103 of file tg3.h.

u32(* read32)(struct tg3 *, u32)

Definition at line 3024 of file tg3.h.

u32(* read32_mbox)(struct tg3 *, u32)

Definition at line 3026 of file tg3.h.

Definition at line 3029 of file tg3.h.

struct work_struct reset_task

Definition at line 3212 of file tg3.h.

u8 rss_ind_tbl[TG3_RSS_INDIR_TBL_SIZE]

Definition at line 3200 of file tg3.h.

u32 rx_copy_thresh

Definition at line 3049 of file tg3.h.

unsigned long rx_dropped

Definition at line 3065 of file tg3.h.

u32 rx_jmb_ring_mask

Definition at line 3051 of file tg3.h.

u32 rx_jumbo_pending

Definition at line 3054 of file tg3.h.

u32 rx_mode

Definition at line 3094 of file tg3.h.

u32 rx_offset

Definition at line 3056 of file tg3.h.

u32 rx_pending

Definition at line 3053 of file tg3.h.

u32 rx_pkt_map_sz

Definition at line 3057 of file tg3.h.

bool rx_refill

Definition at line 3061 of file tg3.h.

u32 rx_ret_ring_mask

Definition at line 3052 of file tg3.h.

u32 rx_std_max_post

Definition at line 3055 of file tg3.h.

u32 rx_std_ring_mask

Definition at line 3050 of file tg3.h.

u32 rxq_cnt

Definition at line 3059 of file tg3.h.

u32 rxq_max

Definition at line 3060 of file tg3.h.

u32 rxq_req

Definition at line 3058 of file tg3.h.

u32 serdes_counter

Definition at line 3085 of file tg3.h.

u32 setlpicnt

Definition at line 3199 of file tg3.h.

dma_addr_t stats_mapping

Definition at line 3211 of file tg3.h.

Definition at line 3077 of file tg3.h.

Definition at line 3078 of file tg3.h.

u16 timer_multiplier

Definition at line 3079 of file tg3.h.

u32 timer_offset

Definition at line 3080 of file tg3.h.

unsigned long tx_dropped

Definition at line 3066 of file tg3.h.

u32 tx_mode

Definition at line 3095 of file tg3.h.

u32 txq_cnt

Definition at line 3042 of file tg3.h.

u32 txq_max

Definition at line 3043 of file tg3.h.

u32 txq_req

Definition at line 3041 of file tg3.h.

void(* write32)(struct tg3 *, u32, u32)

Definition at line 3025 of file tg3.h.

void(* write32_mbox)(struct tg3 *, u32, u32)

Definition at line 3027 of file tg3.h.

void(* write32_rx_mbox)(struct tg3 *, u32, u32)

Definition at line 3047 of file tg3.h.

void(* write32_tx_mbox)(struct tg3 *, u32, u32)

Definition at line 3038 of file tg3.h.


The documentation for this struct was generated from the following file: