亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? erase.c

?? MIPS YAMON, a famous monitor inc. source, make file and PDF manuals.
?? C
?? 第 1 頁 / 共 2 頁
字號:
/************************************************************************ * *  erase.c * *  Shell erase command * *  erase [-s|-e|<address> <size>] * *  We differentiate between "monitor flash", "environment flash"  and  *  "system flash". * *  Monitor flash is the flash memory used for holding YAMON. *  Environment flash is the flash memory used for environment variables. *  System flash is the flash available for the user. * *  -s ( "Erase system flash" ) option is only available on boards  *  having system flash. * * ###################################################################### * * mips_start_of_legal_notice *  * Copyright (c) 2004 MIPS Technologies, Inc. All rights reserved. * * * Unpublished rights (if any) reserved under the copyright laws of the * United States of America and other countries. * * This code is proprietary to MIPS Technologies, Inc. ("MIPS * Technologies"). Any copying, reproducing, modifying or use of this code * (in whole or in part) that is not expressly permitted in writing by MIPS * Technologies or an authorized third party is strictly prohibited. At a * minimum, this code is protected under unfair competition and copyright * laws. Violations thereof may result in criminal penalties and fines. * * MIPS Technologies reserves the right to change this code to improve * function, design or otherwise. MIPS Technologies does not assume any * liability arising out of the application or use of this code, or of any * error or omission in such code. Any warranties, whether express, * statutory, implied or otherwise, including but not limited to the implied * warranties of merchantability or fitness for a particular purpose, are * excluded. Except as expressly provided in any written license agreement * from MIPS Technologies or an authorized third party, the furnishing of * this code does not give recipient any license to any intellectual * property rights, including any patent rights, that cover this code. * * This code shall not be exported, reexported, transferred, or released, * directly or indirectly, in violation of the law of any country or * international law, regulation, treaty, Executive Order, statute, * amendments or supplements thereto. Should a conflict arise regarding the * export, reexport, transfer, or release of this code, the laws of the * United States of America shall be the governing law. * * This code constitutes one or more of the following: commercial computer * software, commercial computer software documentation or other commercial * items. If the user of this code, or any related documentation of any * kind, including related technical data or manuals, is an agency, * department, or other entity of the United States government * ("Government"), the use, duplication, reproduction, release, * modification, disclosure, or transfer of this code, or any related * documentation of any kind, is restricted in accordance with Federal * Acquisition Regulation 12.212 for civilian agencies and Defense Federal * Acquisition Regulation Supplement 227.7202 for military agencies. The use * of this code by the Government is further restricted in accordance with * the terms of the license agreement(s) and/or applicable contract terms * and conditions covering this code from MIPS Technologies or an authorized * third party. * * * *  * mips_end_of_legal_notice *  * ************************************************************************//************************************************************************ *  Include files ************************************************************************/#include <sysdefs.h>#include <shell_api.h>#include <syscon_api.h>#include <flash_api.h>#include <sysdev.h>#include <io_api.h>#include <ctype.h>#include <stdio.h>#include <string.h>#include <sysenv_api.h>#include <sys_api.h>#include <env_api.h>#include <shell.h>/************************************************************************ *  Definitions ************************************************************************//************************************************************************ *  Public variables ************************************************************************//************************************************************************ *  Static variables ************************************************************************//* OPTIONS */static t_cmd_option options[] ={ #define OPTION_ENV	0  { "e",  "Erase and reinitialise entire environment area." },#define OPTION_SYSTEM	1  { "s",  "Erase entire system flash (default option)." }};#define OPTION_COUNT	(sizeof(options)/sizeof(t_cmd_option))static char erase_msg[]         = "Erasing...";static char *syntax_sysflash    = "erase [-s|-e|<address> <size>]";static char *syntax_no_sysflash = "erase -e | <address> <size>";static UINT32 default_start;static UINT32 default_size;static UINT32 option_count;static bool   sysflash_avail;/************************************************************************ *  Static function prototypes ************************************************************************/static UINT32 get_options(    UINT32 argc,    char   **argv,    bool   *system,    bool   *env,    UINT32 *start,    UINT32 *size );static boolget_default_range(    UINT32 *start,    UINT32 *size );static UINT32do_erase(    bool   system,    bool   env,    UINT32 start,    UINT32 size );/************************************************************************ *  Implementation : Static functions ************************************************************************//************************************************************************ *                          erase ************************************************************************/static MON_FUNC(erase){    UINT32 start;    UINT32 size;    bool   system, env;    UINT32 rc;        rc = get_options( argc, argv, &system, &env, &start, &size );    if( rc == OK )        rc = do_erase( system, env, start, size );    return rc;}/************************************************************************ *                          erase_sdb ************************************************************************/static MON_FUNC(erase_sdb){    if( argc != 1 )    {        if( *(argv[1]) == '-' )	{	    shell_error_data = argv[1];	    return SHELL_ERROR_OPTION;        }        else	    return SHELL_ERROR_SYNTAX;    }    return do_erase( FALSE, FALSE, default_start, default_size );}   /************************************************************************ *                          get_default_range ************************************************************************/static boolget_default_range(    UINT32 *start,    UINT32 *size ){    if(         (SYSCON_read( SYSCON_BOARD_SYSTEMFLASH_BASE_ID,		     (void *)start,		     sizeof(UINT32) ) == OK) &&        (SYSCON_read( SYSCON_BOARD_SYSTEMFLASH_SIZE_ID,		     (void *)size,		     sizeof(UINT32) ) == OK) )    {        /* System flash available */	return TRUE;    }    else    {	        /* System flash not available */        return FALSE;    }}/************************************************************************ *                          do_erase ************************************************************************/static UINT32do_erase(    bool   system,    bool   env,    UINT32 start,    UINT32 size ){    UINT32 rc = OK;    t_FLASH_ctrl_descriptor   flash_ctrl;    char		      msg[120];    char		      ch;    bool		      cancelled = FALSE;    if( system || env )    {	if(SHELL_PUTS( erase_msg )) return OK;        if( system )        {            /* Erase entire system flash */            flash_ctrl.command = FLASH_CTRL_ERASE_SYSTEMFLASH;            rc = IO_ctrl( SYS_MAJOR_FLASH_STRATA, 0, (UINT8 *)(&flash_ctrl) );            if(rc != OK )	    {	        SHELL_PUTC( '\n' );                return rc;	    }        }        if( env )        {            /* Erase entire file flash */            flash_ctrl.command = FLASH_CTRL_ERASE_FILEFLASH;            rc = IO_ctrl( SYS_MAJOR_FLASH_STRATA, 0, (UINT8 *)(&flash_ctrl) );            if(rc != OK)	    {	        SHELL_PUTC( '\n' );                return rc;	    }	    /* Reinit sysenv (handling of environment records in flash) */	    SYSENV_init();        }    }    else    {        /* Inquire what will actually be erased */        flash_ctrl.command      = FLASH_CTRL_INQUIRE_FLASH_AREA;        flash_ctrl.user_physadr = PHYS(start);        flash_ctrl.user_length  = size;        rc = IO_ctrl( SYS_MAJOR_FLASH_STRATA, 0, (UINT8 *)(&flash_ctrl) );        if(rc != OK)	{            return rc;	}        flash_ctrl.user_physadr = flash_ctrl.driver_physadr;        flash_ctrl.user_length  = flash_ctrl.driver_length;        sprintf( msg,	    "The following area will be erased:\n"	    "Start address = 0x%08x\n"

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美综合色| 亚洲天堂免费看| 99久久精品国产观看| 亚洲国产精品一区二区www| 精品国产一区a| 91国产精品成人| 国产精品911| 日本欧美一区二区在线观看| 国产精品久久久久四虎| 91精品欧美综合在线观看最新| 高清av一区二区| 美女在线视频一区| 一区二区在线电影| 国产精品青草综合久久久久99| 欧美一区二区女人| 欧美三区在线观看| 99精品久久免费看蜜臀剧情介绍| 韩国欧美国产一区| 精品中文字幕一区二区| 视频精品一区二区| 亚洲一区在线免费观看| 亚洲男人的天堂一区二区| 亚洲国产精品99久久久久久久久| 日韩女优av电影| 69成人精品免费视频| 欧美性三三影院| 欧美性色欧美a在线播放| 色激情天天射综合网| av不卡免费电影| fc2成人免费人成在线观看播放 | 一区二区久久久久| 欧美日韩国产成人在线免费| 国产二区国产一区在线观看| 精品国产乱码久久久久久久 | 黑人精品欧美一区二区蜜桃| 天天亚洲美女在线视频| 国产色综合一区| 欧美日韩在线播放三区| 中文字幕精品一区| 欧美日韩第一区日日骚| 丰满少妇在线播放bd日韩电影| 午夜精品久久久久久久久久| 中文字幕高清不卡| 国产jizzjizz一区二区| 成人综合在线观看| 久久国产精品99精品国产| 亚洲综合激情小说| 日韩三区在线观看| 久久久另类综合| 91精品国产乱码久久蜜臀| 99久久精品免费看| 欧美亚州韩日在线看免费版国语版| 色婷婷综合久久久中文字幕| 国产精品中文有码| 免费高清不卡av| 国产亚洲女人久久久久毛片| 中文字幕精品—区二区四季| 久久综合99re88久久爱| 91精品婷婷国产综合久久竹菊| 国产精品88888| 久久99精品久久久久久动态图| 一区二区三区电影在线播| 欧美激情在线观看视频免费| 国产精品成人一区二区艾草| 国产欧美va欧美不卡在线| 久久毛片高清国产| 精品国产青草久久久久福利| 国产精品美女久久久久久久| 欧美精品一区二区三区视频| 日韩视频中午一区| 欧美一区午夜视频在线观看| 久久日韩精品一区二区五区| 91精品在线免费| 在线综合+亚洲+欧美中文字幕| 欧美日韩精品一区二区三区蜜桃| 秋霞影院一区二区| 日韩精品国产精品| 1区2区3区精品视频| 日本亚洲三级在线| 麻豆精品一区二区| 麻豆精品视频在线| 欧美精品高清视频| 国产欧美精品一区| 欧美国产一区视频在线观看| 久久久国产精华| 成人动漫在线一区| 6080yy午夜一二三区久久| 91蜜桃在线免费视频| 男人的天堂久久精品| 九色综合狠狠综合久久| 国产精品正在播放| 91麻豆精品国产91久久久久久 | 国产精品视频观看| 国产精品免费视频一区| 精品久久久网站| 久久久精品蜜桃| 亚洲欧美综合另类在线卡通| 一区二区三区小说| 国产成人av电影在线| 风间由美一区二区av101| 99精品欧美一区二区三区小说| 91福利国产精品| 国产蜜臀av在线一区二区三区| 亚洲色欲色欲www在线观看| 一区二区三区四区亚洲| 亚洲色图在线播放| 国产白丝网站精品污在线入口 | av在线一区二区三区| 91性感美女视频| 欧美高清视频一二三区| 久久精品视频在线看| 国产精品国产三级国产普通话蜜臀| 精品一区二区国语对白| 国产91在线看| 91福利区一区二区三区| 欧美亚洲尤物久久| 国产精品国产a| 亚洲精品免费在线播放| 久久精品国产精品青草| 99re热视频这里只精品| 久久精品亚洲麻豆av一区二区| 1024成人网| 精品一区二区三区的国产在线播放| 理论电影国产精品| 91社区在线播放| 日韩欧美精品三级| 亚洲欧美日韩国产手机在线| 99视频一区二区三区| 欧美成人bangbros| 一区二区三区鲁丝不卡| 91久久精品午夜一区二区| 欧美成人一区二区三区| 一区二区三区中文在线观看| 日本中文字幕一区二区视频| 99在线热播精品免费| 日韩精品专区在线影院观看| 亚洲毛片av在线| 欧美自拍偷拍一区| 中文字幕va一区二区三区| 蜜臂av日日欢夜夜爽一区| 欧美一级夜夜爽| 一区二区高清免费观看影视大全| 国产一区二区在线影院| 播五月开心婷婷综合| 中文字幕日韩精品一区| 久久丁香综合五月国产三级网站| 精品一区二区三区免费| 亚洲va欧美va国产va天堂影院| 91精品综合久久久久久| 中文字幕一区二区三| 久久电影网站中文字幕| 国产欧美一区二区精品秋霞影院 | 午夜精品久久久久久久99樱桃| 成人美女在线观看| 精品粉嫩超白一线天av| 国产成人综合视频| 欧美大胆人体bbbb| 视频一区免费在线观看| 亚洲精品在线三区| 毛片一区二区三区| 91精品国产品国语在线不卡| 久久五月婷婷丁香社区| 日日夜夜免费精品视频| 精品国产123| 奇米四色…亚洲| 这里只有精品电影| 免费观看日韩av| 99视频有精品| 亚洲欧美日韩一区二区 | 1000精品久久久久久久久| 日本精品一区二区三区四区的功能| 欧美激情一区三区| 国产成人h网站| 精品国产一区二区在线观看| 奇米影视7777精品一区二区| 欧美一区二区视频免费观看| 中文文精品字幕一区二区| 色就色 综合激情| 亚洲影院久久精品| 国产suv精品一区二区883| 亚洲高清在线视频| 88在线观看91蜜桃国自产| 一区二区三区欧美视频| 久久婷婷国产综合精品青草| 韩国女主播一区| 26uuu欧美| 欧美三级在线播放| 男人的天堂久久精品| 色婷婷综合久久久中文一区二区| 久久99精品国产.久久久久久| 久久久精品2019中文字幕之3| 视频一区免费在线观看| 亚洲视频网在线直播| 欧美性猛片aaaaaaa做受| 在线视频欧美精品| 国产一级精品在线| 中文字幕在线一区二区三区| 婷婷国产在线综合| 久久久久9999亚洲精品| 97久久超碰国产精品|