/** * Upgrade * * @author sjlee@suprema.co.kr * @see */ /* * Copyright (c) 2006 Suprema Co., Ltd. All Rights Reserved. * * This software is the confidential and proprietary information of * Suprema Co., Ltd. ("Confidential Information"). You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Suprema. */ #ifndef __BS_UPGRADE_H__ #define __BS_UPGRADE_H__ #define WIN32_LEAN_AND_MEAN #include #define VALID_UPGRADE_HEADER 0x1c1d1e1f typedef struct { enum { // Upgrade Type UPGRADE_KERNEL = 0x01, UPGRADE_FIRMWARE = 0x02, UPGRADE_BLACKFIN = 0x04, UPGRADE_RESOURCE = 0x08, UPGRADE_ROOT = 0x10, UPGRADE_FILE = 0x20, UPGRADE_SCRIPT = 0x40, UPGRADE_BOOTLOADER = 0x80, }; unsigned magicNo; int numOfData; int totalDataSize; unsigned checksum; unsigned char reserved[16]; } BSUpgradeHeader; typedef struct { int type; int dataLength; } BSUpgradeDataHeader; #ifdef __cplusplus extern "C" { #endif int BS_MakeHybridUpgradeFile( const char* upgradeFile, int numOfFile, int* upgradeType, unsigned char** privateData, const char** dataFile ); int BS_MakeUpgradeFile( const char* upgradeFile, int type, unsigned char* privateData, const char* dataFile ); #ifdef __cplusplus } #endif #endif