TOC结构体

来源:互联网 发布:nodejs json 编辑:程序博客网 时间:2024/06/05 01:55
typedef struct _TOC {
   DWORD               dwSignature;
         BYTE                                     udid[8];
    // How to boot the images in this TOC.
    // This could be moved into the image descriptor if desired,
    // but I prefer to conserve space.
    BOOT_CFG            BootCfg;
    // Array of Image Descriptors.
    IMAGE_DESCRIPTOR    id[MAX_TOC_DESCRIPTORS];
//    UCHAR Pad[12];      // align on SECTOR_SIZE
    CHAININFO           chainInfo;
} TOC, *PTOC;           // 512 bytes
 
typedef struct _BOOTCFG {
    ULONG       ImageIndex;
    ULONG       ConfigFlags;
    ULONG       BootDelay;
    EDBG_ADDR   EdbgAddr;
    ULONG       SubnetMask;
} BOOT_CFG
 
typedef struct _IMAGE_DESCRIPTOR {
    // File version info
    DWORD dwVersion;                    // e.g: build number
    DWORD dwSignature;                  // e.g: "EBOT", "CFSH", etc
    UCHAR ucString[IMAGE_STRING_LEN];   // e.g: "PocketPC_2002"
    DWORD dwImageType;      // IMAGE_TYPE_ flags
    DWORD dwTtlSectors;     // TTL image size in sectors.
                            // We store size in sectors instead of bytes
                            // to simplify sector reads in Nboot.
    DWORD dwLoadAddress;    // Virtual address to load image (ImageStart)
    DWORD dwJumpAddress;    // Virtual address to jump (StartAddress/LaunchAddr)
    // This array equates to a sector-based MXIP MultiBINInfo in blcommon.
    // Unused entries are zeroed.
    // You could chain image descriptors if needed.
    SG_SECTOR sgList[MAX_SG_SECTORS];
    // BinFS support to load nk region only struct
         //{
                   ULONG dwStoreOffset;    // byte offset - not needed - remove!
                   //ULONG RunAddress;     // nk dwRegionStart address
                   //ULONG Length;         // nk dwRegionLength in bytes
                   //ULONG LaunchAddress;  // nk dwLaunchAddr
         //} NKRegion;
} IMAGE_DESCRIPTOR, *PIMAGE_DESCRIPTOR;
typedef struct _CHAININFO {
    DWORD   dwLoadAddress;          // Load address in SDRAM
    DWORD   dwFlashAddress;         // Start location on the NAND
    DWORD   dwLength;               // The length of the image
} CHAININFO, *PCHAININFO;
 
typedef struct _SG_SECTOR {
    DWORD dwSector;     // Starting sector of the image segment
    DWORD dwLength;     // Image length of this segment, in contigious sectors.
} SG_SECTOR, *PSG_SECTOR;
 
typedef struct _EDBG_ADDR {
         DWORD  dwIP;         // @field IP address (net byte order)
         USHORT wMAC[3];      // @field Ethernet address (net byte order)
         USHORT wPort;        // @field UDP port # (net byte order) - only used if appropriate
} EDBG_ADDR;
阅读(1539) | 评论(0) | 转发(0) |
0

上一篇:关于wince文件夹下文章的声明

下一篇:wince存储与地址映射技术

相关热门文章
  • 御马脚垫背胶采用优质原料柔...
  • 影响网站权重的' target='blank' >com">影响网站权重的
  • 注意教学实施中关注学生...
  • 在教学中适当介绍生物...
  •   3、模板建站没法
  • 10种启动故障解决方法(转)...
  • 关于自动弹出网页的解决方法...
  • Auto CAD 2007中文版 迅雷免费...
  • 出现“high definition audio...
  • 全国计算机一级考试试题...
  • 如何编写一个C程序实现将字符...
  • C程序能不能在main函数之前调...
  • 看一个程序调用了哪些动态库用...
  • 回复不了你啊,咋,威望值不够...
  • mysql的medium.cnf在哪里?...
给主人留下些什么吧!~~
原创粉丝点击