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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? flash.c

?? 三星2410的BOOTLOADER,WINDOESCE5.0版本
?? C
字號:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//

#include <windows.h>
#include <bsp.h>
#include "loader.h"

extern IMAGE_TYPE    g_ImageType;

/*
    @func   BOOL | OEMIsFlashAddr | Tests whether the address provided resides in the Samsung's flash.
    @rdesc  TRUE = Specified address resides in flash, FALSE = Specified address doesn't reside in flash.
    @comm    
    @xref   
*/
BOOL OEMIsFlashAddr(DWORD dwAddr)
{
    // Does the specified address fall in the AMD flash address range?
    //
    if ((dwAddr >= AMD_FLASH_START) && (dwAddr < (AMD_FLASH_START + AMD_FLASH_LENGTH)))
    {
        return(TRUE);
    }

    return(FALSE);
}


/*
    @func   LPBYTE | OEMMapMemAddr | Remaps a specified address to a file cache location.  The file cache is used as a temporary store for flash images before they're written to flash.
    @rdesc  Corresponding address within a file cache area.
    @comm    
    @xref   
*/
LPBYTE OEMMapMemAddr(DWORD dwImageStart, DWORD dwAddr)
{
    UINT32 MappedAddr = dwAddr;

    OALMSG(OAL_FUNC, (TEXT("+OEMMapMemAddr (Address=0x%x).\r\n"), dwAddr));

    // If it's a flash address, translate it by "rebasing" the address into the file cache area.
    //
    if (OEMIsFlashAddr(dwAddr) && (dwImageStart <= dwAddr))
    {
        MappedAddr = (FILE_CACHE_START + (dwAddr - dwImageStart));
    }
    else if ((g_ImageType == IMAGE_LOADER) && (dwAddr >= EBOOT_RAM_IMAGE_BASE))
    {
        // Special case for bootloader - it's destined for flash, cached in the file cache area, but fixed-up to run from yet another RAM area (the romheader is "located" here).
        //
        MappedAddr = (FILE_CACHE_START + (dwAddr - EBOOT_RAM_IMAGE_BASE));
    }

    OALMSG(OAL_FUNC, (TEXT("-OEMMapMemAddr (Address=0x%x.\r\n"), MappedAddr));

    return((LPBYTE)MappedAddr);
}


/*
    @func   BOOL | OEMStartEraseFlash | Called at the start of image download, this routine begins the flash erase process.
    @rdesc  TRUE = Success, FALSE = Failure.
    @comm    
    @xref   
*/
BOOL OEMStartEraseFlash(DWORD dwStartAddr, DWORD dwLength)
{
    // Nothing to do (erase done in OEMWriteFlash)...
    //
    return(TRUE);
}


/*
    @func   void | OEMContinueEraseFlash | Called frequenty during image download, this routine continues the flash erase process.
    @rdesc  N/A.
    @comm    
    @xref   
*/
void OEMContinueEraseFlash(void)
{
    // Nothing to do (erase done in OEMWriteFlash)...
    //
}


/*
    @func   BOOL | OEMFinishEraseFlash | Called following the image download, this routine completes the flash erase process.
    @rdesc  TRUE = Success, FALSE = Failure.
    @comm    
    @xref   
*/
BOOL OEMFinishEraseFlash(void)
{
    // Nothing to do (erase done in OEMWriteFlash)...
    //
    return(TRUE);
}


/*
    @func   BOOL | OEMWriteFlash | Writes data to flash (the source location is determined using OEMMapMemAddr).
    @rdesc  TRUE = Success, FALSE = Failure.
    @comm    
    @xref   
*/
BOOL OEMWriteFlash(DWORD dwStartAddr, DWORD dwLength)
{

    // Are we updating the bootloader in AMD flash?
    //
    if (g_ImageType == IMAGE_LOADER)
    {
        PBYTE pCachedData = OEMMapMemAddr(dwStartAddr, dwStartAddr);

        // Erase AMD flash.
        //
        if (!AM29LV800_EraseFlash(EBOOT_STORE_OFFSET, dwLength))
        {
            RETAILMSG(1, (TEXT("ERROR: OEMWriteFlash: Flash erase failed.\r\n")));
            return(FALSE);
        }

        // Write flash image.
        //
        if (!AM29LV800_WriteFlash(EBOOT_STORE_OFFSET, pCachedData, dwLength))
        {
            RETAILMSG(1, (TEXT("ERROR: OEMWriteFlash: Flash write failed.\r\n")));
            return(FALSE);
        }

        if (!memcmp((const void *)EBOOT_STORE_ADDRESS, (const void *)pCachedData, dwLength))
        {
            RETAILMSG(1, (TEXT("\r\n*** Bootloader updated - please reboot system. ***\r\n")));

            // Update LEDs to indicate that flash write is done.
            //
            OEMWriteDebugLED(0, 0);

            while (1);
        }
        else
        {
            RETAILMSG(1, (TEXT("ERROR: OEMWriteFlash: Flash verification failed.\r\n")));
            return(FALSE);
        }

    }

    RETAILMSG(1, (TEXT("ERROR: OEMWriteFlash: Unknown image type.\r\n")));

    return(FALSE);
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产性做久久久久久| 一本大道久久精品懂色aⅴ| 91精品国产综合久久小美女| 亚洲国产精品久久一线不卡| 欧美亚洲一区三区| 婷婷成人激情在线网| 欧美一级国产精品| 国产一区三区三区| 亚洲三级视频在线观看| 欧美一a一片一级一片| 日韩在线一区二区| 欧美精品一区二| av午夜精品一区二区三区| 亚洲欧美成人一区二区三区| 在线观看不卡一区| 精品亚洲成a人| 国产精品久久久久久妇女6080 | 日本一区中文字幕| 久久亚洲综合av| av福利精品导航| 午夜一区二区三区视频| 欧美一区二区三区在线视频| 国产99久久久国产精品潘金| 亚洲人妖av一区二区| 6080yy午夜一二三区久久| 国产mv日韩mv欧美| 亚洲韩国一区二区三区| 精品国产91洋老外米糕| 91久久奴性调教| 美日韩一区二区| 亚洲婷婷国产精品电影人久久| 欧美日韩国产a| 成人免费观看视频| 日本成人在线电影网| 成人欧美一区二区三区小说 | 欧美日韩国产高清一区二区| 国产麻豆精品视频| 亚洲成av人片| 中文字幕在线一区免费| 日韩欧美不卡在线观看视频| 在线观看视频欧美| 高清久久久久久| 日本不卡一区二区三区| 亚洲欧美另类在线| 久久久99久久精品欧美| 欧美综合欧美视频| 成人h版在线观看| 国模娜娜一区二区三区| 亚洲成av人影院在线观看网| 国产精品久久久久久久久免费丝袜 | 午夜视频在线观看一区二区三区| 国产亚洲精品aa午夜观看| 色综合久久中文字幕综合网| 国产一区二区三区久久悠悠色av| 一区av在线播放| 日本一区二区久久| 精品国产乱码久久久久久久久| 在线看国产日韩| 亚洲最新在线观看| 国产精品久久久久久亚洲伦 | 亚洲视频狠狠干| 国产精品午夜电影| 国产蜜臀97一区二区三区 | 欧美绝品在线观看成人午夜影视 | 91一区二区三区在线观看| 国产精品一区二区不卡| 久久国产欧美日韩精品| 亚洲大尺度视频在线观看| 亚洲啪啪综合av一区二区三区| 国产视频一区二区在线观看| 精品成人私密视频| 日韩网站在线看片你懂的| 这里只有精品电影| 欧美浪妇xxxx高跟鞋交| 欧美日韩国产一二三| 在线观看成人小视频| 欧美亚洲一区二区在线观看| 欧美亚洲一区二区在线观看| 欧美日韩一区国产| 欧美人动与zoxxxx乱| 欧美日韩成人高清| 欧美日韩国产电影| 日韩欧美国产一二三区| 欧美白人最猛性xxxxx69交| 久久亚洲影视婷婷| 日本一区二区三级电影在线观看| 国产拍欧美日韩视频二区| 亚洲国产经典视频| 国产精品初高中害羞小美女文| 中文字幕日韩欧美一区二区三区| 日韩理论片中文av| 亚洲五月六月丁香激情| 日韩高清不卡在线| 另类人妖一区二区av| 九色综合国产一区二区三区| 国产精品伊人色| 91网站最新地址| 欧美男人的天堂一二区| 欧美变态tickling挠脚心| 国产精品视频你懂的| 玉米视频成人免费看| 日韩精品国产欧美| 国产精品一区在线观看乱码| 不卡一卡二卡三乱码免费网站| 欧美在线一区二区三区| 精品国产污网站| 国产精品国产a| 性做久久久久久免费观看| 精品亚洲成a人| 一本久道久久综合中文字幕| 欧美日韩成人高清| 国产欧美一区二区三区鸳鸯浴| 亚洲一区二区欧美日韩| 国内精品伊人久久久久av影院| 成人国产一区二区三区精品| 欧美亚洲高清一区| 26uuu亚洲婷婷狠狠天堂| 亚洲裸体xxx| 激情综合色综合久久| 色中色一区二区| 欧美videos中文字幕| 亚洲女人的天堂| 国产精品一区免费在线观看| 91福利在线看| 国产欧美日韩一区二区三区在线观看| 夜夜嗨av一区二区三区四季av| 久久国产欧美日韩精品| 一本到高清视频免费精品| 久久这里只精品最新地址| 亚洲自拍欧美精品| 成人黄色777网| 久久蜜桃av一区二区天堂 | 久久色视频免费观看| 一区二区三区四区av| 国产传媒欧美日韩成人| 欧美猛男gaygay网站| 亚洲品质自拍视频网站| 国产综合色视频| 欧美美女一区二区| 亚洲综合色丁香婷婷六月图片| 国产精品系列在线播放| 日韩精品一区二区三区四区| 一区二区三区在线播| 成人av资源在线观看| 国产亚洲午夜高清国产拍精品 | 国产精品 日产精品 欧美精品| 欧美日韩一区二区不卡| 亚洲色图制服诱惑 | 欧美va在线播放| 三级欧美在线一区| 欧美在线免费观看视频| 亚洲婷婷综合色高清在线| 国产成人午夜高潮毛片| 欧美sm极限捆绑bd| 另类的小说在线视频另类成人小视频在线 | 国产精品美日韩| 国产乱一区二区| 精品国产制服丝袜高跟| 另类小说图片综合网| 欧美一区二区三区公司| 天天色天天爱天天射综合| 欧美色老头old∨ideo| 一个色在线综合| 日本精品视频一区二区| 伊人夜夜躁av伊人久久| 在线观看欧美日本| 丝袜国产日韩另类美女| 69堂精品视频| 日本不卡不码高清免费观看| 日韩一区二区麻豆国产| 精品一区二区免费看| www国产精品av| 国产成人精品一区二区三区四区| 国产日韩成人精品| 成人av在线观| 一区二区在线观看免费| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲成人自拍偷拍| 欧美日韩一本到| 美腿丝袜亚洲一区| 久久综合给合久久狠狠狠97色69| 国产精品资源站在线| 国产精品色眯眯| 一本大道久久a久久综合婷婷 | 日韩影视精彩在线| 精品对白一区国产伦| 国产传媒欧美日韩成人| 亚洲欧美电影院| 在线综合+亚洲+欧美中文字幕| 欧美aaa在线| 欧美极品aⅴ影院| 在线视频国内自拍亚洲视频| 日韩激情一二三区| 久久久久久久久免费| 99精品国产热久久91蜜凸| 肉肉av福利一精品导航| 久久免费精品国产久精品久久久久| av资源站一区| 奇米影视一区二区三区小说| 国产片一区二区三区|