00001 /* clib/include/sys/malloc.h 00002 * 00003 * ABLE Version and Release identifiers 00004 * 00005 * Copyright 2002 Simtec Electronics 00006 * 00007 * Permission is hereby granted, free of charge, to any person 00008 * obtaining a copy of this software and associated documentation 00009 * files (the "Software"), to deal in the Software without 00010 * restriction, including without limitation the rights to use, copy, 00011 * modify, merge, publish, distribute, sublicense, and/or sell copies 00012 * of the Software, and to permit persons to whom the Software is 00013 * furnished to do so, subject to the following conditions: 00014 * 00015 * The above copyright notice and this permission notice shall be 00016 * included in all copies or substantial portions of the Software. 00017 * 00018 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00019 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00020 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00021 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00022 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00023 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00024 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00025 * SOFTWARE. 00026 * 00027 */ 00028 00029 #ifndef _ABLE_CLIB_SYS_VERSION_H 00030 #define _ABLE_CLIB_SYS_VERSION_H __FILE__ 00031 00032 /* HEADER1 and HEADER2 should never appear after each other than to list 00033 * the version information 00034 * 00035 * the romwriter picks up the version information by looking through the 00036 * image to find these values, and then using them... 00037 * 00038 * HEADER3 is used with HEADER1 as a magic for file to read 00039 * which forms: 00040 * 00041 * 16K-16 = HEADER1 00042 * 16K-12 = HEADER3 00043 * 16K-8 = Header flags (see ABLE_VFLAG_*) 00044 * 16K-4 = Version * 100 (ie, 2.31 becomes 231) 00045 */ 00046 00047 #define ABLE_VERSION_HEADER1 (0x454C4241) /* ABLE */ 00048 #define ABLE_VERSION_HEADER2 (0x464E4956) /* VINF (tagged) */ 00049 #define ABLE_VERSION_HEADER3 (0x4E524556) /* VERN (untagged) */ 00050 00051 #define ABLE_VERSION_TAG_VER (0x00000001) 00052 #define ABLE_VERSION_TAG_REL (0x00000002) 00053 #define ABLE_VERSION_TAG_MACH (0x00000003) /* an supported machine */ 00054 00055 #define ABLE_VFLAG_ABLE (1<<0) 00056 #define ABLE_VFLAG_NAND (1<<1) 00057 #define ABLE_VFLAG_LZMA (1<<2) 00058 00059 #endif /* _ABLE_CLIB_SYS_VERSION_H */