- 38
- 0
- 约2.43万字
- 约 19页
- 2016-11-28 发布于河南
- 举报
网卡驱动
// 网卡驱动
/*
* cs8900a.c: A Crystal Semiconductor (Now Cirrus Logic) CS8900A
driver for SMDK-s3c2410 (based on cs89x0.c)
*
* Author: Yong-iL Joh tolkien@
* Date : $Date: 2002/10/16 09:08:07 $
*
* $Revision: $
Wed Aug 14 2002 Yong-iL Joh tolkien@
- initial, based on cs89x0.c
Wed Aug 16 2002 Yong-iL Joh tolkien@
- working!
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
* for more details.
*/
#include linux/config.h
#include linux/kernel.h
#include linux/module.h
#include linux/init.h
#include linux/slab.h
#include linux/errno.h
#include linux/spinlock.h
#include linux/ioport.h
#include linux/netdevice.h
#include linux/etherdevice.h
#include linux/skbuff.h
#include asm/io.h
#include asm/irq.h
#include asm/hardware.h
#define IRQ_LAN IRQ_CS8900
#include cs89x0.h
/*
* Set this to zero to remove all the debug statements via
* dead code elimination
*/
#undef DEBUGGING 4
#if DEBUGGING
#define DPRINTK(n, args...) \
if (n = DEBUGGING) { \
printk(args); \
}
#else
#define DPRINTK(n, args...)
#endif
#if DEBUGGING
static char version[] __initdata =
cs89x0.c: v2.4.3-pre1 Russell Nelson nelson@, Andrew Morton andrewm@.au\n;
#endif
/* First, a few definitions that the brave might change.
A zero-terminated list of I/O addresses to be probed. Some special flags..
Addr 1 = Read back the address port, look for signature and reset
the page window before probing
Addr 3 = Reset the page window and probe
The CLPS eval board has the Cirrus chip at 0 in ARM IO space,
but it is possible that a Cirrus board could be plugged into the ISA
slots. */
static unsigned int netcard_portlist[] __initdata =
{ vCS8900_BASE + 0x300, 0};
/* The number of low I/O ports used by the ethercard. */
#define NETCARD_IO_EXTENT 0xfff
/* we allow the user to override various values normally set in t
原创力文档

文档评论(0)