|
各位高手,小弟正在移植linux内核到友善之臂的mini6410平台上。移植完成DM9000网卡驱动后,编译linux内核,遇到以下错误:error:’struct dm9000_plat_data’ has no member named ’param_addr’。可是,我已经在/include/linux/dm9000.h文件中添加了param_addr成员。但是,仍然编译报错。请教其中的原因,谢谢。代码如下:
代码所在文件:/include/linux/dm9000.h
struct dm9000_plat_data {
unsigned int flags;
unsigned char dev_addr[6];
unsigned char param_addr[6];
/* allow replacement IO routines */
void (*inblk)(void __iomem *reg, void *data, int len);
void (*outblk)(void __iomem *reg, void *data, int len);
void (*dumpblk)(void __iomem *reg, int len);
};
|
|