Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
nes_nic.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/if_arp.h>
#include <linux/if_vlan.h>
#include <linux/ethtool.h>
#include <linux/slab.h>
#include <net/tcp.h>
#include <net/inet_common.h>
#include <linux/inet.h>
#include "nes.h"

Go to the source code of this file.

Macros

#define NES_MAX_TSO_FRAGS   MAX_SKB_FRAGS
 
#define get_addr(addrs, index)   ((addrs) + (index) * ETH_ALEN)
 
#define NES_ETHTOOL_STAT_COUNT   ARRAY_SIZE(nes_ethtool_stringset)
 

Functions

struct net_devicenes_netdev_init (struct nes_device *nesdev, void __iomem *mmio_addr)
 
void nes_netdev_destroy (struct net_device *netdev)
 
int nes_nic_cm_xmit (struct sk_buff *skb, struct net_device *netdev)
 

Macro Definition Documentation

#define get_addr (   addrs,
  index 
)    ((addrs) + (index) * ETH_ALEN)

Definition at line 853 of file nes_nic.c.

#define NES_ETHTOOL_STAT_COUNT   ARRAY_SIZE(nes_ethtool_stringset)

Definition at line 1092 of file nes_nic.c.

#define NES_MAX_TSO_FRAGS   MAX_SKB_FRAGS

Function Documentation

void nes_netdev_destroy ( struct net_device netdev)

nes_netdev_destroy - destroy network device structure

Definition at line 1849 of file nes_nic.c.

struct net_device* nes_netdev_init ( struct nes_device nesdev,
void __iomem mmio_addr 
)
read

nes_netdev_init - initialize network device

Definition at line 1651 of file nes_nic.c.

int nes_nic_cm_xmit ( struct sk_buff skb,
struct net_device netdev 
)

nes_nic_cm_xmit – CM calls this to send out pkts

Definition at line 1869 of file nes_nic.c.