Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
ks8695net.c File Reference
#include <linux/dma-mapping.h>
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/crc32.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <asm/irq.h>
#include <mach/regs-switch.h>
#include <mach/regs-misc.h>
#include <asm/mach/irq.h>
#include <mach/regs-irq.h>
#include "ks8695net.h"

Go to the source code of this file.

Data Structures

struct  rx_ring_desc
 
struct  tx_ring_desc
 
struct  ks8695_skbuff
 
struct  ks8695_priv
 

Macros

#define MODULENAME   "ks8695_ether"
 
#define MODULEVERSION   "1.02"
 
#define MAX_TX_DESC   8
 
#define MAX_TX_DESC_MASK   0x7
 
#define MAX_RX_DESC   16
 
#define MAX_RX_DESC_MASK   0xf
 
#define NAPI_WEIGHT   64
 
#define MAX_RXBUF_SIZE   0x700
 
#define TX_RING_DMA_SIZE   (sizeof(struct tx_ring_desc) * MAX_TX_DESC)
 
#define RX_RING_DMA_SIZE   (sizeof(struct rx_ring_desc) * MAX_RX_DESC)
 
#define RING_DMA_SIZE   (TX_RING_DMA_SIZE + RX_RING_DMA_SIZE)
 
#define KS8695_NR_ADDRESSES   16
 

Enumerations

enum  ks8695_dtype { KS8695_DTYPE_WAN, KS8695_DTYPE_LAN, KS8695_DTYPE_HPNA }
 

Functions

 module_init (ks8695_init)
 
 module_exit (ks8695_cleanup)
 
 MODULE_AUTHOR ("Simtec Electronics")
 
 MODULE_DESCRIPTION ("Micrel KS8695 (Centaur) Ethernet driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:"MODULENAME)
 
 module_param (watchdog, int, 0400)
 
 MODULE_PARM_DESC (watchdog,"transmit timeout in milliseconds")
 

Macro Definition Documentation

#define KS8695_NR_ADDRESSES   16

Definition at line 319 of file ks8695net.c.

#define MAX_RX_DESC   16

Definition at line 100 of file ks8695net.c.

#define MAX_RX_DESC_MASK   0xf

Definition at line 101 of file ks8695net.c.

#define MAX_RXBUF_SIZE   0x700

Definition at line 106 of file ks8695net.c.

#define MAX_TX_DESC   8

Definition at line 98 of file ks8695net.c.

#define MAX_TX_DESC_MASK   0x7

Definition at line 99 of file ks8695net.c.

#define MODULENAME   "ks8695_ether"

Definition at line 46 of file ks8695net.c.

#define MODULEVERSION   "1.02"

Definition at line 47 of file ks8695net.c.

#define NAPI_WEIGHT   64

Definition at line 104 of file ks8695net.c.

#define RING_DMA_SIZE   (TX_RING_DMA_SIZE + RX_RING_DMA_SIZE)

Definition at line 110 of file ks8695net.c.

#define RX_RING_DMA_SIZE   (sizeof(struct rx_ring_desc) * MAX_RX_DESC)

Definition at line 109 of file ks8695net.c.

#define TX_RING_DMA_SIZE   (sizeof(struct tx_ring_desc) * MAX_TX_DESC)

Definition at line 108 of file ks8695net.c.

Enumeration Type Documentation

enum ks8695_dtype - Device type : This device is a WAN interface : This device is a LAN interface : This device is an HPNA interface

Enumerator:
KS8695_DTYPE_WAN 
KS8695_DTYPE_LAN 
KS8695_DTYPE_HPNA 

Definition at line 118 of file ks8695net.c.

Function Documentation

MODULE_ALIAS ( "platform:"  MODULENAME)
MODULE_AUTHOR ( "Simtec Electronics"  )
MODULE_DESCRIPTION ( "Micrel KS8695 (Centaur) Ethernet driver )
module_exit ( ks8695_cleanup  )
module_init ( ks8695_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( watchdog  ,
int  ,
0400   
)
MODULE_PARM_DESC ( watchdog  ,
"transmit timeout in milliseconds"   
)