#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/crc32.h>
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/workqueue.h>
#include <linux/of.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <asm/io.h>
#include "smc91x.h"
Go to the source code of this file.
#define CARDNAME "smc91x" |
#define DBG |
( |
|
n, |
|
|
|
args... |
|
) |
| do { } while(0) |
#define MEMORY_WAIT_TIME 16 |
#define PRINT_PKT |
( |
|
x... | ) |
do { } while(0) |
#define smc91x_match NULL |
#define SMC_DISABLE_INT |
( |
|
lp, |
|
|
|
x |
|
) |
| |
Value:do { \
unsigned long smc_disable_flags; \
spin_lock_irqsave(&
lp->lock, smc_disable_flags); \
SMC_SET_INT_MASK(
lp, mask); \
spin_unlock_irqrestore(&
lp->lock, smc_disable_flags); \
} while (0)
Definition at line 209 of file smc91x.c.
#define SMC_ENABLE_INT |
( |
|
lp, |
|
|
|
x |
|
) |
| |
Value:do { \
unsigned long smc_enable_flags; \
spin_lock_irqsave(&
lp->lock, smc_enable_flags); \
SMC_SET_INT_MASK(
lp, mask); \
spin_unlock_irqrestore(&
lp->lock, smc_enable_flags); \
} while (0)
Definition at line 198 of file smc91x.c.
#define smc_special_unlock |
( |
|
lock, |
|
|
|
flags |
|
) |
| do { flags = 0; } while (0) |
#define SMC_WAIT_MMU_BUSY |
( |
|
lp | ) |
|
Value:do { \
printk("%s: timeout %s line %d\n", \
dev->name, __FILE__, __LINE__); \
break; \
} \
cpu_relax(); \
} \
} \
} while (0)
Definition at line 224 of file smc91x.c.
#define THROTTLE_TX_PKTS 0 |
MODULE_ALIAS |
( |
"platform:smc91x" |
| ) |
|
module_param |
( |
nowait |
, |
|
|
int |
, |
|
|
0400 |
|
|
) |
| |
module_platform_driver |
( |
smc_driver |
| ) |
|