Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
3c505.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/in.h>
#include <linux/ioport.h>
#include <linux/spinlock.h>
#include <linux/ethtool.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <linux/gfp.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include "3c505.h"

Go to the source code of this file.

Macros

#define DRV_NAME   "3c505"
 
#define DRV_VERSION   "1.10a"
 
#define timeout_msg   "*** timeout at %s:%s (line %d) ***\n"
 
#define TIMEOUT_MSG(lineno)   pr_notice(timeout_msg, __FILE__, __func__, (lineno))
 
#define invalid_pcb_msg   "*** invalid pcb length %d at %s:%s (line %d) ***\n"
 
#define INVALID_PCB_MSG(len)   pr_notice(invalid_pcb_msg, (len), __FILE__, __func__, __LINE__)
 
#define search_msg   "%s: Looking for 3c505 adapter at address %#x..."
 
#define stilllooking_msg   "still looking..."
 
#define found_msg   "found.\n"
 
#define notfound_msg   "not found (reason = %d)\n"
 
#define couldnot_msg   "%s: 3c505 not found\n"
 
#define debug   elp_debug
 
#define HCR_VAL(x)   (((elp_device *)(netdev_priv(x)))->hcr_val)
 
#define GET_ASF(addr)   (get_status(addr)&ASF_PCB_MASK)
 

Functions

struct net_device *__init elplus_probe (int unit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define couldnot_msg   "%s: 3c505 not found\n"

Definition at line 145 of file 3c505.c.

#define debug   elp_debug

Definition at line 158 of file 3c505.c.

#define DRV_NAME   "3c505"

Definition at line 41 of file 3c505.c.

#define DRV_VERSION   "1.10a"

Definition at line 42 of file 3c505.c.

#define found_msg   "found.\n"

Definition at line 141 of file 3c505.c.

#define GET_ASF (   addr)    (get_status(addr)&ASF_PCB_MASK)

Definition at line 230 of file 3c505.c.

#define HCR_VAL (   x)    (((elp_device *)(netdev_priv(x)))->hcr_val)

Definition at line 206 of file 3c505.c.

#define invalid_pcb_msg   "*** invalid pcb length %d at %s:%s (line %d) ***\n"

Definition at line 133 of file 3c505.c.

#define INVALID_PCB_MSG (   len)    pr_notice(invalid_pcb_msg, (len), __FILE__, __func__, __LINE__)

Definition at line 134 of file 3c505.c.

#define notfound_msg   "not found (reason = %d)\n"

Definition at line 143 of file 3c505.c.

#define search_msg   "%s: Looking for 3c505 adapter at address %#x..."

Definition at line 137 of file 3c505.c.

#define stilllooking_msg   "still looking..."

Definition at line 139 of file 3c505.c.

#define timeout_msg   "*** timeout at %s:%s (line %d) ***\n"

Definition at line 129 of file 3c505.c.

#define TIMEOUT_MSG (   lineno)    pr_notice(timeout_msg, __FILE__, __func__, (lineno))

Definition at line 130 of file 3c505.c.

Function Documentation

struct net_device* __init elplus_probe ( int  unit)
read

Definition at line 1589 of file 3c505.c.

MODULE_LICENSE ( "GPL"  )