Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/moduleparam.h>
#include <linux/sched.h>
#include <linux/ctype.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/errno.h>
#include <linux/platform_device.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/crc32.h>
#include <asm/bootinfo.h>
#include <asm/bitops.h>
#include <asm/pgtable.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <asm/mach-rc32434/rb.h>
#include <asm/mach-rc32434/rc32434.h>
#include <asm/mach-rc32434/eth.h>
#include <asm/mach-rc32434/dma_v.h>
Go to the source code of this file.
Data Structures | |
struct | korina_private |
Macros | |
#define | DRV_NAME "korina" |
#define | DRV_VERSION "0.10" |
#define | DRV_RELDATE "04Mar2008" |
#define | STATION_ADDRESS_HIGH(dev) |
#define | STATION_ADDRESS_LOW(dev) |
#define | MII_CLOCK 1250000 /* no more than 2.5MHz */ |
#define | KORINA_NUM_RDS 64 /* number of receive descriptors */ |
#define | KORINA_NUM_TDS 64 /* number of transmit descriptors */ |
#define | KORINA_RBSIZE 1536 /* size of one resource buffer = Ether MTU */ |
#define | KORINA_RDS_MASK (KORINA_NUM_RDS - 1) |
#define | KORINA_TDS_MASK (KORINA_NUM_TDS - 1) |
#define | RD_RING_SIZE (KORINA_NUM_RDS * sizeof(struct dma_desc)) |
#define | TD_RING_SIZE (KORINA_NUM_TDS * sizeof(struct dma_desc)) |
#define | TX_TIMEOUT (6000 * HZ / 1000) |
#define | IS_DMA_FINISHED(X) (((X) & (DMA_DESC_FINI)) != 0) |
#define | IS_DMA_DONE(X) (((X) & (DMA_DESC_DONE)) != 0) |
#define | RCVPKT_LENGTH(X) (((X) & ETH_RX_LEN) >> ETH_RX_LEN_BIT) |
Enumerations | |
enum | chain_status { desc_filled, desc_empty } |
Functions | |
module_platform_driver (korina_driver) | |
MODULE_AUTHOR ("Philip Rischel <[email protected]>") | |
MODULE_AUTHOR ("Felix Fietkau <[email protected]>") | |
MODULE_AUTHOR ("Florian Fainelli <[email protected]>") | |
MODULE_DESCRIPTION ("IDT RC32434 (Korina) Ethernet driver") | |
MODULE_LICENSE ("GPL") | |
Variables | |
unsigned int | idt_cpu_freq |
#define IS_DMA_DONE | ( | X | ) | (((X) & (DMA_DESC_DONE)) != 0) |
#define IS_DMA_FINISHED | ( | X | ) | (((X) & (DMA_DESC_FINI)) != 0) |
#define KORINA_NUM_RDS 64 /* number of receive descriptors */ |
#define KORINA_NUM_TDS 64 /* number of transmit descriptors */ |
#define KORINA_RDS_MASK (KORINA_NUM_RDS - 1) |
#define KORINA_TDS_MASK (KORINA_NUM_TDS - 1) |
#define RCVPKT_LENGTH | ( | X | ) | (((X) & ETH_RX_LEN) >> ETH_RX_LEN_BIT) |
#define RD_RING_SIZE (KORINA_NUM_RDS * sizeof(struct dma_desc)) |
#define STATION_ADDRESS_HIGH | ( | dev | ) |
#define STATION_ADDRESS_LOW | ( | dev | ) |
#define TD_RING_SIZE (KORINA_NUM_TDS * sizeof(struct dma_desc)) |
enum chain_status |
MODULE_AUTHOR | ( | "Philip Rischel <[email protected]>" | ) |
MODULE_AUTHOR | ( | "Felix Fietkau <[email protected]>" | ) |
MODULE_AUTHOR | ( | "Florian Fainelli <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "IDT RC32434 (Korina) Ethernet driver" | ) |
MODULE_LICENSE | ( | "GPL" | ) |
module_platform_driver | ( | korina_driver | ) |