|
我在pxa270板子上扩展了cs8900的网卡,把cs89x0.c的驱动编译进内核了,其中修改了网卡的虚拟地址为:0xf0000300,中断为IRQ_GPIO(9),内核启动打印信息如下:
cs89x0:cs89x0_probe(0x0)
PP_addr=0xa031
cs89x0.c: v2.4.3-pre1 Russell Nelson <[email protected]>, Andrew Morton <[email protected]>
eth0: cs8920 rev D found at 0xf0000300
cs89x0: EEPROM read failed, relying on command line.
cs89x0 media RJ-45, IRQ 14, programmed I/O, MAC 00:00:c0:ff:ee:08
cs89x0_probe1() successful
cs89x0:cs89x0_probe(0x0)
cs89x0: request_region(0xf0000300, 0x10) failed
cs89x0: no cs8900 or cs8920 detected. Be sure to disable PnP with SETUP
我的网卡是挂在片选2上,物理地址为0x80000000,虚拟地址为0xf0000000,在mainstone.c里面定义如下:
static struct map_desc mainstone_io_desc[] __initdata = {
#ifdef CONFIG_MACH_MAINSTONE//add by zjx
{ 0xf0000000, 0x08000000, 0x00100000, MT_DEVICE }, /* CS2 */
#else
{ MST_FPGA_VIRT, MST_FPGA_PHYS, 0x00100000, MT_DEVICE }, /* CPLD */
#endif
};
请教问题出在那呢? |
|