• 大小: 2.14MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-25
  • 语言: 其他
  • 标签: 硬件驱动  

资源简介

Intel PXA270各外设 硬件驱动,大部分外设驱动都已经调试过 方便开发

资源截图

代码片段和文件信息

/******************************************************************************
**
**  COPYRIGHT (C) 2000 2001 Intel Corporation.
**
**  This software as well as the software described in it is furnished under 
**  license and may only be used or copied in accordance with the terms of the 
**  license. The information in this file is furnished for informational use 
**  only is subject to change without notice and should not be construed as 
**  a commitment by Intel Corporation. Intel Corporation assumes no 
**  responsibility or liability for any errors or inaccuracies that may appear 
**  in this document or any software that may be provided in association with 
**  this document. 
**  Except as permitted by such license no part of this document may be 
**  reproduced stored in a retrieval system or transmitted in any form or by 
**  any means without the express written consent of Intel Corporation. 
**
**  FILENAME:       flashLoader.c
**
**  PURPOSE:        This file contains the Flash Loader application code.
**
**  LAST MODIFIED:  $Modtime: 7/17/03 1:01p $
******************************************************************************/

#include 
#include 
#include “systypes.h“
#include “dm_debug.h“
#include “dm_perf.h“
#include “dm_errors.h“
#include “platform.h“
#include “cotulla.h“
#include “mallocx.h“
#include “xllp_ethernet.h“
#include “EthernetCntr.h“
#include “network.h“
#include “networkAPI.h“
#include “intelFlashAPI.h“
#include “FlashAPI.h“
#include “flashloader.h“
#include “memoryLoaderApi.h“
#include “stubs.h“

/*
*******************************************************************************
*   EXTERNAL DEFINITIONS
*******************************************************************************
*/
extern int atoi(const char * /*nptr*/);
extern INT our_ip;
extern INT our_boot_server;
extern CHAR our_mac_addr[6];
extern CHAR our_bootfile[128];

/*
*******************************************************************************
*   LOCAL DEFINITIONS
*******************************************************************************
*/
static Intel_Flash_ContextT * FlashCtxP = NULL;
static CHAR desc[4096];
static PCHAR buf;
static INT buflen;
static CHAR filename[256];
static char vbuf[512];

// Enable/disable tracing
VOID FlashLoader_Trace(PVOID ctxP PCHAR flag)
{
    DM_ControlWordsDebugPrintPutBit(DM_CW_FLASH_LOADER_0 atoi(flag));
}

// Point to the first region/filename pair in the description buffer
LoaderRegion_T * firstRegion(PCHAR buf)
{
    PCHAR p = strchr(buf‘\n‘);
    static LoaderRegion_T region;

    while (p && (buf[0] == ‘#‘))
    {
        *p = ‘\0‘;
        *p = ‘\n‘;
        buf = p+1;
        p = strchr(buf‘\n‘);
    }

    if (p == NULL)
    {
        return NULL;
    }

    *p = ‘\0‘;
    region.nextP = p+1;
    if (sscanf(buf“%x %s“ ®ion.base ®ion.file) != 2)
    {
        return NULL

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      31918  2005-05-30 15:30  PXA270硬件测试源代码\POST_PXA27x\Access Paths.xml

     文件      13728  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\FlashLoader\flashLoader.c

     文件       1605  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\FlashLoader\flashLoader.h

     文件       1668  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\FlashLoader\flashLoaderAPI.h

     文件         80  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\FlashLoader\vssver.scc

     文件       7334  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\MemoryLoader\MemoryLoader.c

     文件       1415  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\MemoryLoader\MemoryLoaderAPI.h

     文件         64  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\MemoryLoader\vssver.scc

     文件      11879  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\arp.c

     文件       1688  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\arp.h

     文件       1498  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\arpAPI.h

     文件      26448  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\dhcp.c

     文件       2417  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\dhcp.h

     文件       1600  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\dhcpAPI.h

     文件      12030  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\ethernet.c

     文件       3690  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\ethernet.h

     文件       1544  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\ethernetAPI.h

     文件       2903  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\icmp.c

     文件       1365  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\icmp.h

     文件       1341  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\icmpAPI.h

     文件      14711  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\inet.c

     文件       1704  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\inet.h

     文件       1442  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\inetAPI.h

     文件       7740  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\ip.c

     文件       2742  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\ip.h

     文件       1608  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\ipAPI.h

     文件        738  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\netdb.h

     文件        283  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\nettime.h

     文件       1649  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\network.h

     文件       1481  2004-04-29 10:12  PXA270硬件测试源代码\POST_PXA27x\Applications\Network\select.h

............此处省略765个文件信息

评论

共有 条评论