📄 net.txt
字号:
把cs8900.c,cs8900.h拷贝到drivers/net目录下
修改Drivers/net/Kconfig,增加以下内容:
config ARM_CS8900
tristate "CS8900 support"
depends on NET_ETHERNET && ARM && ARCH_SMDK2410
help
Support for CS8900A chipset based Ethernet cards. If you have a
network (Ethernet) card of this type, say Y and read the
Ethernet-HOWTO, available from
<http://www.tldp.org/docs.html#howto> as well as
<file:Documentation/networking/cs89x0.txt>.
To compile this driver as a module, choose M here and read
<file:Documentation/networking/net-modules.txt>.
The module will be called cs8900.o.
修改Drivers/net/Makeflie,增加以下内容:
obj-$(CONFIG_ARM_CS8900) += cs8900.o
把smdk2410.h 拷贝到include/asm-arm/arch-s3c2410目录下
smdk2410.h的内容为 :
#ifndef _INCLUDE_SMDK2410_H_
#define _INCLUDE_SMDK2410_H_
#include <linux/config.h>
#define pSMDK2410_ETH_IO 0x19000000
#define vSMDK2410_ETH_IO 0xE0000000
#define SMDK2410_ETH_IRQ IRQ_EINT9
#endif // _INCLUDE_SMDK2410_H_
修改arch/arm/machs3c2410/machsmdk2410.c
在static struct map_desc smdk2410_iodesc[] __initdata内增加以下部分(本来为空):
{vSMDK2410_ETH_IO, pSMDK2410_ETH_IO, SZ_1M, MT_DEVICE}
以及增加包含头文件#include "asm/arch/smdk2410.h"
在内核配置中选上:
Device Drivers..>
Network device support…>
Ethernet (10 or 100 Mbit)
[*] CS8900 support.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -