Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ks8851.c File Reference
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/cache.h>
#include <linux/crc32.h>
#include <linux/mii.h>
#include <linux/eeprom_93cx6.h>
#include <linux/spi/spi.h>
#include "ks8851.h"

Go to the source code of this file.

Data Structures

struct  ks8851_rxctrl
 
union  ks8851_tx_hdr
 
struct  ks8851_net
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DEBUG
 
#define BYTE_EN(_x)   ((_x) << 2)
 
#define MK_OP(_byteen, _reg)   (BYTE_EN(_byteen) | (_reg) << (8+2) | (_reg) >> 6)
 
#define STD_IRQ
 
#define KS_EEPROM_MAGIC   (0x00008851)
 
#define ks8851_suspend   NULL
 
#define ks8851_resume   NULL
 

Functions

 module_init (ks8851_init)
 
 module_exit (ks8851_exit)
 
 MODULE_DESCRIPTION ("KS8851 Network driver")
 
 MODULE_AUTHOR ("Ben Dooks <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 module_param_named (message, msg_enable, int, 0)
 
 MODULE_PARM_DESC (message,"Message verbosity level (0=none, 31=all)")
 
 MODULE_ALIAS ("spi:ks8851")
 

Macro Definition Documentation

#define BYTE_EN (   _x)    ((_x) << 2)

Definition at line 140 of file ks8851.c.

#define DEBUG

Definition at line 14 of file ks8851.c.

#define ks8851_resume   NULL

Definition at line 1415 of file ks8851.c.

#define ks8851_suspend   NULL

Definition at line 1414 of file ks8851.c.

#define KS_EEPROM_MAGIC   (0x00008851)

Definition at line 1191 of file ks8851.c.

#define MK_OP (   _byteen,
  _reg 
)    (BYTE_EN(_byteen) | (_reg) << (8+2) | (_reg) >> 6)

Definition at line 143 of file ks8851.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 12 of file ks8851.c.

#define STD_IRQ
Value:
(IRQ_LCI | /* Link Change */ \
IRQ_TXI | /* TX done */ \
IRQ_RXI | /* RX done */ \
IRQ_SPIBEI | /* SPI bus error */ \
IRQ_TXPSI | /* TX process stop */ \
IRQ_RXPSI) /* RX process stop */

Function Documentation

MODULE_ALIAS ( "spi:ks8851"  )
MODULE_AUTHOR ( "Ben Dooks <[email protected]>"  )
MODULE_DESCRIPTION ( "KS8851 Network driver )
module_exit ( ks8851_exit  )
module_init ( ks8851_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( message  ,
msg_enable  ,
int  ,
 
)
MODULE_PARM_DESC ( message  ,
"Message verbosity level (0=none, 31=all)"   
)