Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ixgb.h File Reference
#include <linux/stddef.h>
#include <linux/module.h>
#include <linux/types.h>
#include <asm/byteorder.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/interrupt.h>
#include <linux/string.h>
#include <linux/pagemap.h>
#include <linux/dma-mapping.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <linux/capability.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <net/pkt_sched.h>
#include <linux/list.h>
#include <linux/reboot.h>
#include <net/checksum.h>
#include <linux/ethtool.h>
#include <linux/if_vlan.h>
#include "ixgb_hw.h"
#include "ixgb_ee.h"
#include "ixgb_ids.h"

Go to the source code of this file.

Data Structures

struct  ixgb_buffer
struct  ixgb_desc_ring
struct  ixgb_adapter


#define BAR_0   0
#define BAR_1   1
#define BAR_5   5
#define DEFAULT_TXD   256
#define MAX_TXD   4096
#define MIN_TXD   64
#define DEFAULT_RXD   512
#define MAX_RXD   512
#define MIN_RXD   64
#define IXGB_RXBUFFER_2048   2048
#define IXGB_RXBUFFER_4096   4096
#define IXGB_RXBUFFER_8192   8192
#define IXGB_RXBUFFER_16384   16384
#define IXGB_RX_BUFFER_WRITE   8 /* Must be power of 2 */
#define IXGB_GET_DESC(R, i, type)   (&(((struct type *)((R).desc))[i]))
#define IXGB_RX_DESC(R, i)   IXGB_GET_DESC(R, i, ixgb_rx_desc)
#define IXGB_TX_DESC(R, i)   IXGB_GET_DESC(R, i, ixgb_tx_desc)
#define IXGB_CONTEXT_DESC(R, i)   IXGB_GET_DESC(R, i, ixgb_context_desc)


enum  ixgb_state_t { __IXGB_DOWN }


void ixgb_check_options (struct ixgb_adapter *adapter)
void ixgb_set_ethtool_ops (struct net_device *netdev)
void ixgb_set_speed_duplex (struct net_device *netdev)
int ixgb_up (struct ixgb_adapter *adapter)
void ixgb_down (struct ixgb_adapter *adapter, bool kill_watchdog)
void ixgb_reset (struct ixgb_adapter *adapter)
int ixgb_setup_rx_resources (struct ixgb_adapter *adapter)
int ixgb_setup_tx_resources (struct ixgb_adapter *adapter)
void ixgb_free_rx_resources (struct ixgb_adapter *adapter)
void ixgb_free_tx_resources (struct ixgb_adapter *adapter)
void ixgb_update_stats (struct ixgb_adapter *adapter)


char ixgb_driver_name []
const char ixgb_driver_version []

Macro Definition Documentation

#define BAR_0   0

Definition at line 69 of file ixgb.h.

#define BAR_1   1

Definition at line 70 of file ixgb.h.

#define BAR_5   5

Definition at line 71 of file ixgb.h.

#define DEFAULT_RXD   512

Definition at line 86 of file ixgb.h.

#define DEFAULT_TXD   256

Definition at line 79 of file ixgb.h.

#define IXGB_CONTEXT_DESC (   R,
)    IXGB_GET_DESC(R, i, ixgb_context_desc)

Definition at line 134 of file ixgb.h.

#define IXGB_DESC_UNUSED (   R)
((((R)->next_to_clean > (R)->next_to_use) ? 0 : (R)->count) + \
(R)->next_to_clean - (R)->next_to_use - 1)

Definition at line 127 of file ixgb.h.

#define IXGB_GET_DESC (   R,
)    (&(((struct type *)((R).desc))[i]))

Definition at line 131 of file ixgb.h.

#define IXGB_RX_BUFFER_WRITE   8 /* Must be power of 2 */

Definition at line 97 of file ixgb.h.

#define IXGB_RX_DESC (   R,
)    IXGB_GET_DESC(R, i, ixgb_rx_desc)

Definition at line 132 of file ixgb.h.

#define IXGB_RXBUFFER_16384   16384

Definition at line 94 of file ixgb.h.

#define IXGB_RXBUFFER_2048   2048

Definition at line 91 of file ixgb.h.

#define IXGB_RXBUFFER_4096   4096

Definition at line 92 of file ixgb.h.

#define IXGB_RXBUFFER_8192   8192

Definition at line 93 of file ixgb.h.

#define IXGB_TX_DESC (   R,
)    IXGB_GET_DESC(R, i, ixgb_tx_desc)

Definition at line 133 of file ixgb.h.

#define MAX_RXD   512

Definition at line 87 of file ixgb.h.

#define MAX_TXD   4096

Definition at line 80 of file ixgb.h.

#define MIN_RXD   64

Definition at line 88 of file ixgb.h.

#define MIN_TXD   64

Definition at line 81 of file ixgb.h.

Enumeration Type Documentation


Definition at line 181 of file ixgb.h.

Function Documentation

void ixgb_check_options ( struct ixgb_adapter adapter)

ixgb_check_options - Range Checking for Command Line Parameters : board private structure

This routine checks all command line parameters for valid user input. If an invalid value is given, or if no user specified value exists, a default value is used. The final value is stored in a variable in the adapter structure.

Definition at line 261 of file ixgb_param.c.

void ixgb_down ( struct ixgb_adapter adapter,
bool  kill_watchdog 

Definition at line 279 of file ixgb_main.c.

void ixgb_free_rx_resources ( struct ixgb_adapter adapter)

ixgb_free_rx_resources - Free Rx Resources : board private structure

Free all receive software resources

Definition at line 1006 of file ixgb_main.c.

void ixgb_free_tx_resources ( struct ixgb_adapter adapter)

ixgb_free_tx_resources - Free Tx Resources : board private structure

Free all transmit software resources

Definition at line 925 of file ixgb_main.c.

void ixgb_reset ( struct ixgb_adapter adapter)

Definition at line 308 of file ixgb_main.c.

void ixgb_set_ethtool_ops ( struct net_device netdev)

Definition at line 657 of file ixgb_ethtool.c.

void ixgb_set_speed_duplex ( struct net_device netdev)

Definition at line 118 of file ixgb_ethtool.c.

int ixgb_setup_rx_resources ( struct ixgb_adapter adapter)

ixgb_setup_rx_resources - allocate Rx resources (Descriptors) : board private structure

Returns 0 on success, negative on failure

Definition at line 793 of file ixgb_main.c.

int ixgb_setup_tx_resources ( struct ixgb_adapter adapter)

ixgb_setup_tx_resources - allocate Tx resources (Descriptors) : board private structure

Return 0 on success, negative on failure

Definition at line 704 of file ixgb_main.c.

int ixgb_up ( struct ixgb_adapter adapter)

Definition at line 205 of file ixgb_main.c.

void ixgb_update_stats ( struct ixgb_adapter adapter)

ixgb_update_stats - Update the board statistics counters. : board private structure

Definition at line 1671 of file ixgb_main.c.

Variable Documentation

char ixgb_driver_name[]

Definition at line 34 of file ixgb_main.c.

const char ixgb_driver_version[]

Definition at line 39 of file ixgb_main.c.