• 大小: 1.31MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-31
  • 语言: 其他
  • 标签: 8548  bsp  vxworks  6.6  

资源简介

使用bootloader启动,8548平台vxworks6.6 bsp源码,

资源截图

代码片段和文件信息

/* am29lv64xdMtd.c - MTD for Am29Lv64Xd */

/*
 * Copyright (c) 2003-2005 Wind River Systems Inc.
 *
 * The right to copy distribute or otherwise make use of this software
 * may be licensed only pursuant to the terms of an applicable Wind River
 * license agreement. No license to Wind River intellectual property rights
 * is granted herein. All rights not licensed by Wind River are reserved
 * by Wind River.
 */

#include “copyright_wrs.h“

/* FAT-FTL Lite Software Development Kit
 * Copyright (C) M-Systems Ltd. 1995-2001       */

/*
modification history
--------------------
01d24mar05mdo  Documentation changes for apigen
01c22mar05dtr  Typo fixes.
01b18nov04jln  fix compiler warning
01a22oct04jln  modified from 01l/cfiamd.c 
*/

/*
DEscriptION
This library provides a MTD for Am29Lv641D on cds8541/cds8555 reference boards.
It only supports 16 bit bus access to flash chips.  

INCLUDE FILES:
 
\NOMANUAL
*/

#include 
#include “tffs/flflash.h“
#include “tffs/backgrnd.h“

#define  MAXSECTORS 128 /* should work with any value */

typedef enum
    {
    BOOTBLOCK_NONE
    BOOTBLOCK_TOP
    BOOTBLOCK_BOTTOM
    }BOOTBLOCK;

typedef union
    {
    UCHAR uchar[4];
    UINT32 uint32;
    } CFI_DWORD;

typedef union
    {
    UCHAR uchar[2];
    USHORT ushort;
    } CFI_WORD;

/* Instance specific CFI data so that a system may have more than one CFI
 * device. */
typedef struct
    {

    unsigned         commandSetId;            /* id of a specific command set. */
    unsigned         altCommandSetId;         /* id of alternate command set.  */
    FLBoolean        wordMode;                /* TRUE - word mode.             */
    /* FALSE - byte mode.            */
    int              multiplier;              /* the number of bytes between   */
    /* 1st Q and 1st R in query      */
    int          interleaveWidth;     /* 1 - byte 2 - word interleaved */ 
    unsigned         maxBytesWrite;           /* maximum number of bytes       */
    /* in multi-byte write.          */
    FLBoolean        vpp;                     /* if = TRUE need vpp.          */
    long             optionalCommands;        /* optional commands supported   */
    /* (1 = yes 0 = no):            */
    /* bit 0 - chip erase.           */
    /* bit 1 - suspend erase.        */
    /* bit 2 - suspend write         */
    /* bit 3 - lock/unlock.          */
    /* bit 4 - queued erase.         */
    unsigned         afterSuspend;            /* functions supported after     */
    /* suspend (1 = yes 0 = no):    */
    /* bit 0 - write after erase     */
    /*         suspend.              */
    int          sectorDefs;          /* Number of sector definitions  */
    struct
        {                  /* sector descriptions as found  */
        long     secSize;         /* in CFI query.       */
        int      numSecs;         /*      */
        }secDesc[8];                  /* assume 8 is enough      */
    struct
        {                  /*

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-08-07 22:09  BSP6.6\
     文件        1726  2010-11-15 16:24  BSP6.6\20bsp.cdf
     文件        3996  2010-11-15 16:24  BSP6.6\20comp_tipcsm.cdf
     文件        1194  2010-11-15 16:24  BSP6.6\20comp_tipc_hend.cdf
     文件       27392  2010-11-15 16:24  BSP6.6\am29lv64xdMtd.c
     文件       16817  2010-11-15 16:24  BSP6.6\bnc8548.h
     文件      258048  2010-11-15 16:24  BSP6.6\BNC8548_66.IAB
     文件        2848  2010-11-15 16:24  BSP6.6\BNC8548_66.IAD
     文件       69632  2010-11-15 16:24  BSP6.6\BNC8548_66.IMB
     文件        1008  2010-11-15 16:24  BSP6.6\BNC8548_66.IMD
     文件         148  2010-11-15 16:24  BSP6.6\BNC8548_66.PFI
     文件         776  2010-11-15 16:24  BSP6.6\BNC8548_66.PO
     文件       13928  2010-11-15 16:24  BSP6.6\BNC8548_66.PR
     文件       87544  2010-11-15 16:24  BSP6.6\BNC8548_66.PRI
     文件      500000  2010-11-15 16:24  BSP6.6\BNC8548_66.PS
     文件         133  2010-11-15 16:24  BSP6.6\BNC8548_66.SearchResults
     文件       72451  2010-11-15 16:24  BSP6.6\BNC8548_66.WK3
     文件        1480  2010-11-15 16:24  BSP6.6\bootInit.o
     文件        1212  2010-11-15 16:24  BSP6.6\bootInit_uncmp.o
     文件     1137904  2010-11-15 16:24  BSP6.6\bootrom_uncmp
     文件     1048576  2010-11-15 16:24  BSP6.6\bootrom_uncmp.bin
     文件      181089  2010-11-15 16:24  BSP6.6\cds8548.vsh
     文件       23354  2010-11-15 16:24  BSP6.6\config.h
     文件        3089  2010-11-15 16:24  BSP6.6\configNet.h
     文件         584  2010-11-15 16:24  BSP6.6\ctdt.c
     文件         544  2010-11-15 16:24  BSP6.6\ctdt.o
     文件       90101  2010-11-15 16:24  BSP6.6\depend.bnc8548_66
     文件       77761  2010-11-15 16:24  BSP6.6\depend.cds8548
     文件       24541  2010-11-15 16:24  BSP6.6\hwconf.c
     文件       31950  2010-11-15 16:24  BSP6.6\m85xxTimer.c
     文件        2059  2010-11-15 16:24  BSP6.6\Makefile
............此处省略37个文件信息

评论

共有 条评论