Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/highmem.h>
#include <linux/sockios.h>
#include <linux/firmware.h>
#include <linux/slab.h>
#include <linux/prefetch.h>
#include <linux/if_vlan.h>
#include <net/sock.h>
#include <net/ip.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/byteorder.h>
#include <asm/uaccess.h>
#include "acenic.h"
Go to the source code of this file.
Functions | |
MODULE_DEVICE_TABLE (pci, acenic_pci_tbl) | |
MODULE_AUTHOR ("Jes Sorensen <[email protected]>") | |
MODULE_LICENSE ("GPL") | |
MODULE_DESCRIPTION ("AceNIC/3C985/GA620 Gigabit Ethernet driver") | |
MODULE_FIRMWARE ("acenic/tg1.bin") | |
MODULE_FIRMWARE ("acenic/tg2.bin") | |
module_param_array_named (link, link_state, int, NULL, 0) | |
module_param_array (trace, int, NULL, 0) | |
module_param_array (tx_coal_tick, int, NULL, 0) | |
module_param_array (max_tx_desc, int, NULL, 0) | |
module_param_array (rx_coal_tick, int, NULL, 0) | |
module_param_array (max_rx_desc, int, NULL, 0) | |
module_param_array (tx_ratio, int, NULL, 0) | |
MODULE_PARM_DESC (link,"AceNIC/3C985/NetGear link state") | |
MODULE_PARM_DESC (trace,"AceNIC/3C985/NetGear firmware trace level") | |
MODULE_PARM_DESC (tx_coal_tick,"AceNIC/3C985/GA620 max clock ticks to wait from first tx descriptor arrives") | |
MODULE_PARM_DESC (max_tx_desc,"AceNIC/3C985/GA620 max number of transmit descriptors to wait") | |
MODULE_PARM_DESC (rx_coal_tick,"AceNIC/3C985/GA620 max clock ticks to wait from first rx descriptor arrives") | |
MODULE_PARM_DESC (max_rx_desc,"AceNIC/3C985/GA620 max number of receive descriptors to wait") | |
MODULE_PARM_DESC (tx_ratio,"AceNIC/3C985/GA620 ratio of NIC memory used for TX/RX descriptors (range 0-63)") | |
module_init (acenic_init) | |
module_exit (acenic_exit) | |
#define ACE_JUMBO_BUFSIZE (ACE_JUMBO_MTU + ETH_HLEN + 4) |
#define ACE_MINI_BUFSIZE ACE_MINI_SIZE |
#define ACE_STD_BUFSIZE (ACE_STD_MTU + ETH_HLEN + 4) |
#define ace_sync_irq | ( | irq | ) | synchronize_irq(irq) |
#define DEF_STAT (2 * TICKS_PER_SEC) |
#define RX_LOW_JUMBO_THRES (3*RX_JUMBO_SIZE)/4 |
#define RX_LOW_MINI_THRES (3*RX_MINI_SIZE)/4 |
#define RX_LOW_STD_THRES (3*RX_RING_SIZE)/4 |
#define RX_PANIC_JUMBO_REFILL (3*RX_PANIC_JUMBO_THRES)/2 |
#define RX_PANIC_MINI_REFILL (3*RX_PANIC_MINI_THRES)/2 |
#define RX_PANIC_STD_REFILL (3*RX_PANIC_STD_THRES)/2 |
MODULE_AUTHOR | ( | "Jes Sorensen <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "AceNIC/3C985/GA620 Gigabit Ethernet driver" | ) |
MODULE_DEVICE_TABLE | ( | pci | , |
acenic_pci_tbl | |||
) |
module_exit | ( | acenic_exit | ) |
MODULE_FIRMWARE | ( | "acenic/tg1.bin" | ) |
MODULE_FIRMWARE | ( | "acenic/tg2.bin" | ) |
module_init | ( | acenic_init | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param_array_named | ( | link | , |
link_state | , | ||
int | , | ||
NULL | , | ||
0 | |||
) |
MODULE_PARM_DESC | ( | link | , |
"AceNIC/3C985/NetGear link state" | |||
) |
MODULE_PARM_DESC | ( | trace | , |
"AceNIC/3C985/NetGear firmware trace level" | |||
) |
MODULE_PARM_DESC | ( | tx_coal_tick | , |
"AceNIC/3C985/GA620 max clock ticks to wait from first tx descriptor arrives" | |||
) |
MODULE_PARM_DESC | ( | max_tx_desc | , |
"AceNIC/3C985/GA620 max number of transmit descriptors to wait" | |||
) |
MODULE_PARM_DESC | ( | rx_coal_tick | , |
"AceNIC/3C985/GA620 max clock ticks to wait from first rx descriptor arrives" | |||
) |
MODULE_PARM_DESC | ( | max_rx_desc | , |
"AceNIC/3C985/GA620 max number of receive descriptors to wait" | |||
) |
MODULE_PARM_DESC | ( | tx_ratio | , |
"AceNIC/3C985/GA620 ratio of NIC memory used for TX/RX descriptors (range 0-63)" | |||
) |