Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
smsc9420.c File Reference
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/phy.h>
#include <linux/pci.h>
#include <linux/if_vlan.h>
#include <linux/dma-mapping.h>
#include <linux/crc32.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <asm/unaligned.h>
#include "smsc9420.h"

Go to the source code of this file.

Data Structures

struct  smsc9420_dma_desc
 
struct  smsc9420_ring_info
 
struct  smsc9420_pdata
 

Macros

#define DRV_NAME   "smsc9420"
 
#define PFX   DRV_NAME ": "
 
#define DRV_MDIONAME   "smsc9420-mdio"
 
#define DRV_DESCRIPTION   "SMSC LAN9420 driver"
 
#define DRV_VERSION   "1.01"
 
#define SMSC_MSG_DEFAULT   (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)
 
#define smsc_dbg(TYPE, f, a...)
 
#define smsc_info(TYPE, f, a...)
 
#define smsc_warn(TYPE, f, a...)
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_DEVICE_TABLE (pci, smsc9420_id_table)
 
 module_param (debug, uint, 0)
 
 MODULE_PARM_DESC (debug,"debug level")
 
 module_init (smsc9420_init_module)
 
 module_exit (smsc9420_exit_module)
 

Macro Definition Documentation

#define DRV_DESCRIPTION   "SMSC LAN9420 driver"

Definition at line 38 of file smsc9420.c.

#define DRV_MDIONAME   "smsc9420-mdio"

Definition at line 37 of file smsc9420.c.

#define DRV_NAME   "smsc9420"

Definition at line 35 of file smsc9420.c.

#define DRV_VERSION   "1.01"

Definition at line 39 of file smsc9420.c.

#define PFX   DRV_NAME ": "

Definition at line 36 of file smsc9420.c.

#define smsc_dbg (   TYPE,
  f,
  a... 
)
Value:
do { if ((pd)->msg_enable & NETIF_MSG_##TYPE) \
printk(KERN_DEBUG PFX f "\n", ## a); \
} while (0)

Definition at line 100 of file smsc9420.c.

#define smsc_info (   TYPE,
  f,
  a... 
)
Value:
do { if ((pd)->msg_enable & NETIF_MSG_##TYPE) \
printk(KERN_INFO PFX f "\n", ## a); \
} while (0)

Definition at line 105 of file smsc9420.c.

#define SMSC_MSG_DEFAULT   (NETIF_MSG_DRV | NETIF_MSG_PROBE | NETIF_MSG_LINK)

Definition at line 93 of file smsc9420.c.

#define smsc_warn (   TYPE,
  f,
  a... 
)
Value:
do { if ((pd)->msg_enable & NETIF_MSG_##TYPE) \
printk(KERN_WARNING PFX f "\n", ## a); \
} while (0)

Definition at line 110 of file smsc9420.c.

Function Documentation

MODULE_DEVICE_TABLE ( pci  ,
smsc9420_id_table   
)
module_exit ( smsc9420_exit_module  )
module_init ( smsc9420_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
uint  ,
 
)
MODULE_PARM_DESC ( debug  ,
"debug level  
)
MODULE_VERSION ( DRV_VERSION  )