Mercurial > ecos-v3_0-branch
comparison packages/redboot/current/include/flash_config.h @ 115:6ed91473a1cd ecos-sw-2000-08-21
Merge from eCos master repository on 2000-08-21-22:40:54-BST
| author | jlarmour |
|---|---|
| date | Fri, 25 Aug 2000 17:32:38 +0000 |
| parents | |
| children | bd1a71e3e476 |
comparison
equal
deleted
inserted
replaced
| 114:5ad2b71d525e | 115:6ed91473a1cd |
|---|---|
| 1 //========================================================================== | |
| 2 // | |
| 3 // flash_config.h | |
| 4 // | |
| 5 // Flash configuration data tables for RedBoot | |
| 6 // | |
| 7 //========================================================================== | |
| 8 //####COPYRIGHTBEGIN#### | |
| 9 // | |
| 10 // ------------------------------------------- | |
| 11 // The contents of this file are subject to the Red Hat eCos Public License | |
| 12 // Version 1.1 (the "License"); you may not use this file except in | |
| 13 // compliance with the License. You may obtain a copy of the License at | |
| 14 // http://www.redhat.com/ | |
| 15 // | |
| 16 // Software distributed under the License is distributed on an "AS IS" | |
| 17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 18 // License for the specific language governing rights and limitations under | |
| 19 // the License. | |
| 20 // | |
| 21 // The Original Code is eCos - Embedded Configurable Operating System, | |
| 22 // released September 30, 1998. | |
| 23 // | |
| 24 // The Initial Developer of the Original Code is Red Hat. | |
| 25 // Portions created by Red Hat are | |
| 26 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. | |
| 27 // All Rights Reserved. | |
| 28 // ------------------------------------------- | |
| 29 // | |
| 30 //####COPYRIGHTEND#### | |
| 31 //========================================================================== | |
| 32 //#####DESCRIPTIONBEGIN#### | |
| 33 // | |
| 34 // Author(s): gthomas | |
| 35 // Contributors: gthomas | |
| 36 // Date: 2000-08-21 | |
| 37 // Purpose: | |
| 38 // Description: | |
| 39 // | |
| 40 // This code is part of RedBoot (tm). | |
| 41 // | |
| 42 //####DESCRIPTIONEND#### | |
| 43 // | |
| 44 //========================================================================== | |
| 45 | |
| 46 #ifndef _FLASH_CONFIG_H_ | |
| 47 #define _FLASH_CONFIG_H_ | |
| 48 | |
| 49 #define MAX_SCRIPT_LENGTH 512 | |
| 50 | |
| 51 #define CONFIG_BOOL 1 | |
| 52 #define CONFIG_INT 2 | |
| 53 #define CONFIG_STRING 3 | |
| 54 #define CONFIG_SCRIPT 4 | |
| 55 #ifdef CYGPKG_REDBOOT_NETWORKING | |
| 56 #define CONFIG_IP 5 | |
| 57 #define CONFIG_ESA 6 | |
| 58 #endif | |
| 59 | |
| 60 struct config_option { | |
| 61 char *key; | |
| 62 char *title; | |
| 63 char *enable; | |
| 64 bool enable_sense; | |
| 65 int type; | |
| 66 }; | |
| 67 | |
| 68 #define ALWAYS_ENABLED (char *)0 | |
| 69 | |
| 70 #define RedBoot_config_option(_t_,_n_,_e_,_ie_,_type_) \ | |
| 71 struct config_option _config_option_##_n_ \ | |
| 72 CYG_HAL_TABLE_ENTRY(RedBoot_config_options) = {#_n_,_t_,/*&_v_,*/_e_,_ie_,_type_}; | |
| 73 | |
| 74 void flash_get_config(char *key, void *val, int type); | |
| 75 | |
| 76 #endif // _FLASH_CONFIG_H_ |
