QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3071|回复: 1

请问u-boot中的flash_real_protect函数

[复制链接]
发表于 2007-3-27 00:25:48 | 显示全部楼层 |阅读模式
请问u-boot中的flash_real_protect函数是在哪个文件中定义的
在include/flash.h中:

/* board/?/flash.c */
#if defined(CFG_FLASH_PROTECTION)
extern int flash_real_protect(flash_info_t *info, long sector, int prot);
extern void flash_read_user_serial(flash_info_t * info, void * buffer, int offset, int len);
extern void flash_read_factory_serial(flash_info_t * info, void * buffer, int offset, int len);
#endif        /* CFG_FLASH_PROTECTION */

但是board下有很多目录中都有flash.c文件
我用的是从lumit修改版本的u-boot1.1.3
发表于 2007-3-27 08:15:14 | 显示全部楼层
使用命令 "grep -nr flash_real_protect *"查找一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 07:08 , Processed in 0.071269 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表