|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/init.h>#include <linux/interrupt.h>#include <linux/pci.h>#include <linux/dma-mapping.h>#include <linux/netdevice.h>#include <linux/ethtool.h>#include <linux/etherdevice.h>#include <linux/platform_device.h>#include <linux/delay.h>#include <linux/bitops.h>#include <linux/mii.h>#include <linux/if.h>#include <linux/if_ether.h>#include <linux/if_vlan.h>#include <linux/ip.h>#include <linux/in.h>#include <linux/ipv6.h>#include <linux/log2.h>#include <linux/jiffies.h>#include <linux/crc32.h>#include <linux/list.h>#include <linux/slab.h>#include <linux/io.h>#include <linux/of_device.h>#include "niu.h"Go to the source code of this file.
Data Structures | |
| struct | niu_phy_template |
Macros | |
| #define | pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
| #define | DRV_MODULE_NAME "niu" |
| #define | DRV_MODULE_VERSION "1.1" |
| #define | DRV_MODULE_RELDATE "Apr 22, 2010" |
| #define | NIU_TX_TIMEOUT (5 * HZ) |
| #define | nr64(reg) readq(np->regs + (reg)) |
| #define | nw64(reg, val) writeq((val), np->regs + (reg)) |
| #define | nr64_mac(reg) readq(np->mac_regs + (reg)) |
| #define | nw64_mac(reg, val) writeq((val), np->mac_regs + (reg)) |
| #define | nr64_ipp(reg) readq(np->regs + np->ipp_off + (reg)) |
| #define | nw64_ipp(reg, val) writeq((val), np->regs + np->ipp_off + (reg)) |
| #define | nr64_pcs(reg) readq(np->regs + np->pcs_off + (reg)) |
| #define | nw64_pcs(reg, val) writeq((val), np->regs + np->pcs_off + (reg)) |
| #define | nr64_xpcs(reg) readq(np->regs + np->xpcs_off + (reg)) |
| #define | nw64_xpcs(reg, val) writeq((val), np->regs + np->xpcs_off + (reg)) |
| #define | NIU_MSG_DEFAULT (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK) |
| #define | niu_lock_parent(np, flags) spin_lock_irqsave(&np->parent->lock, flags) |
| #define | niu_unlock_parent(np, flags) spin_unlock_irqrestore(&np->parent->lock, flags) |
| #define | niu_set_and_wait_clear_mac(NP, REG, BITS, LIMIT, DELAY, REG_NAME) |
| #define | niu_set_and_wait_clear_ipp(NP, REG, BITS, LIMIT, DELAY, REG_NAME) |
| #define | niu_wait_bits_clear(NP, REG, BITS, LIMIT, DELAY) |
| #define | niu_set_and_wait_clear(NP, REG, BITS, LIMIT, DELAY, REG_NAME) |
| #define | NIU_TX_WAKEUP_THRESH(rp) ((rp)->pending / 4) |
| #define | NUM_XMAC_STAT_KEYS ARRAY_SIZE(niu_xmac_stat_keys) |
| #define | NUM_BMAC_STAT_KEYS ARRAY_SIZE(niu_bmac_stat_keys) |
| #define | NUM_RXCHAN_STAT_KEYS ARRAY_SIZE(niu_rxchan_stat_keys) |
| #define | NUM_TXCHAN_STAT_KEYS ARRAY_SIZE(niu_txchan_stat_keys) |
| #define | FOUND_MASK_MODEL 0x00000001 |
| #define | FOUND_MASK_BMODEL 0x00000002 |
| #define | FOUND_MASK_VERS 0x00000004 |
| #define | FOUND_MASK_MAC 0x00000008 |
| #define | FOUND_MASK_NMAC 0x00000010 |
| #define | FOUND_MASK_PHY 0x00000020 |
| #define | FOUND_MASK_ALL 0x0000003f |
Functions | |
| MODULE_AUTHOR ("David S. Miller ([email protected])") | |
| MODULE_DESCRIPTION ("NIU ethernet driver") | |
| MODULE_LICENSE ("GPL") | |
| MODULE_VERSION (DRV_MODULE_VERSION) | |
| MODULE_DEVICE_TABLE (pci, niu_pci_tbl) | |
| module_param (debug, int, 0) | |
| MODULE_PARM_DESC (debug,"NIU debug level") | |
| module_init (niu_init) | |
| module_exit (niu_exit) | |
| #define FOUND_MASK_ALL 0x0000003f |
| #define FOUND_MASK_BMODEL 0x00000002 |
| #define FOUND_MASK_MAC 0x00000008 |
| #define FOUND_MASK_MODEL 0x00000001 |
| #define FOUND_MASK_NMAC 0x00000010 |
| #define FOUND_MASK_PHY 0x00000020 |
| #define FOUND_MASK_VERS 0x00000004 |
| #define niu_lock_parent | ( | np, | |
| flags | |||
| ) | spin_lock_irqsave(&np->parent->lock, flags) |
| #define NIU_MSG_DEFAULT (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK) |
| #define NUM_BMAC_STAT_KEYS ARRAY_SIZE(niu_bmac_stat_keys) |
| #define NUM_RXCHAN_STAT_KEYS ARRAY_SIZE(niu_rxchan_stat_keys) |
| #define NUM_TXCHAN_STAT_KEYS ARRAY_SIZE(niu_txchan_stat_keys) |
| #define NUM_XMAC_STAT_KEYS ARRAY_SIZE(niu_xmac_stat_keys) |
| MODULE_AUTHOR | ( | "David S. Miller ([email protected])" | ) |
| MODULE_DEVICE_TABLE | ( | pci | , |
| niu_pci_tbl | |||
| ) |
| module_exit | ( | niu_exit | ) |
| module_init | ( | niu_init | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| MODULE_VERSION | ( | DRV_MODULE_VERSION | ) |
1.8.2