Linux Kernel
3.7.1
|
#include <linux/pci.h>
#include <linux/spinlock.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#include <linux/cache.h>
#include <linux/mutex.h>
#include <linux/bitops.h>
#include "t3cdev.h"
#include <asm/io.h>
Go to the source code of this file.
Data Structures | |
struct | iscsi_config |
struct | port_info |
struct | fl_pg_chunk |
struct | sge_fl |
struct | sge_rspq |
struct | sge_txq |
struct | sge_qset |
struct | sge |
struct | adapter |
Macros | |
#define | RX_BUNDLE_SIZE 8 |
#define | OFFLOAD_DEVMAP_BIT 15 |
#define | tdev2adap(d) container_of(d, struct adapter, tdev) |
Enumerations | |
enum | mac_idx_types { LAN_MAC_IDX = 0, SAN_MAC_IDX, MAX_MAC_IDX } |
enum | { FULL_INIT_DONE = (1 << 0), USING_MSI = (1 << 1), USING_MSIX = (1 << 2), QUEUES_BOUND = (1 << 3), TP_PARITY_INIT = (1 << 4), NAPI_INIT = (1 << 5) } |
enum | { SGE_PSTAT_TSO, SGE_PSTAT_RX_CSUM_GOOD, SGE_PSTAT_TX_CSUM, SGE_PSTAT_VLANEX, SGE_PSTAT_VLANINS, SGE_PSTAT_MAX } |
Variables | |
struct sge_qset | ____cacheline_aligned |
struct workqueue_struct * | cxgb3_wq |
#define tdev2adap | ( | d | ) | container_of(d, struct adapter, tdev) |
anonymous enum |
anonymous enum |
enum mac_idx_types |
netdev_tx_t t3_eth_xmit | ( | struct sk_buff * | skb, |
struct net_device * | dev | ||
) |
Definition at line 1020 of file cxgb3_main.c.
irq_handler_t t3_intr_handler | ( | struct adapter * | adap, |
int | polling | ||
) |
Definition at line 2837 of file cxgb3_main.c.
void t3_os_link_changed | ( | struct adapter * | adapter, |
int | port_id, | ||
int | link_stat, | ||
int | speed, | ||
int | duplex, | ||
int | pause | ||
) |
t3_os_link_changed - handle link status changes : the adapter associated with the link change : the port index whose limk status has changed : the new status of the link : the new speed setting : the new duplex setting : the new flow-control setting
This is the OS-dependent handler for link status changes. The OS neutral handler takes care of most of the processing for these events, then calls this handler for any OS-specific processing.
Definition at line 247 of file cxgb3_main.c.
Definition at line 195 of file cxgb3_main.c.
Definition at line 2855 of file cxgb3_main.c.
int t3_sge_alloc_qset | ( | struct adapter * | adapter, |
unsigned int | id, | ||
int | nports, | ||
int | irq_vec_idx, | ||
const struct qset_params * | p, | ||
int | ntxq, | ||
struct net_device * | dev, | ||
struct netdev_queue * | netdevq | ||
) |
t3_sge_alloc_qset - initialize an SGE queue set : the adapter : the queue set id : how many Ethernet ports will be using this queue set : the IRQ vector index for response queue interrupts : configuration parameters for this queue set : number of Tx queues for the queue set : net device associated with this queue set : net device TX queue associated with this queue set
Allocate resources and initialize an SGE queue set. A queue set comprises a response queue, two Rx free-buffer queues, and up to 3 Tx queues. The Tx queues are assigned roles in the order Ethernet queue, offload queue, and control queue.
t3_sge_stop - disable SGE operation : the adapter
Disables the DMA engine. This can be called in emeregencies (e.g., from error interrupts) or from normal process context. In the latter case it also disables any pending queue restart tasklets. Note that if it is called in interrupt context it cannot disable the restart tasklets as it cannot wait, however the tasklets will have no effect since the doorbells are disabled and the driver will call this again later from process context, at which time the tasklets will be stopped if they are still running.
struct workqueue_struct* cxgb3_wq |
Definition at line 145 of file cxgb3_main.c.