EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

S3C24xxPkg/vivi/include/priv_data.h

Go to the documentation of this file.
00001 /* $Id: priv_data.h,v 1.1.1.1 2004/02/04 06:22:25 laputa Exp $ */
00002 
00003 #ifndef __VIVI_PRIV_DATA_H__
00004 #define __VIVI_PRIV_DATA_H__
00005 
00006 #include <types.h>
00007 
00008 #define MAX_PART_NAME           16
00009 #define MAX_PARAM_NAME          24
00010 
00011 #define MF_LOCKED               0x00000001
00012 #define MF_MUSTERASE            0x00000002
00013 #define MF_BONFS                0x00000004
00014 #define MF_JFFS2                0x00000008
00015 
00016 #define UNKNOWN_MODEM           0
00017 #define X_MODEM                 1
00018 #define Y_MODEM                 2
00019 #define Z_MODEM                 3
00020 
00021 typedef struct mtd_partiton {
00022         char name[MAX_PART_NAME];       /* partition name */
00023         ulong offset;
00024         ulong size;
00025         ulong flag;
00026 } mtd_partition_t;
00027 
00028 typedef unsigned long param_value_t;
00029 
00030 typedef struct parameter {
00031         char name[MAX_PARAM_NAME];
00032         param_value_t value;
00033         void (*update_func)(param_value_t value);
00034 } vivi_parameter_t;     
00035 
00036 extern const char vivi_param_magic[8];
00037 extern const char linux_cmd_magic[8];
00038 extern const char mtd_part_magic[8];
00039 
00040 extern mtd_partition_t default_mtd_partitions[];
00041 extern int default_nb_part;
00042 extern vivi_parameter_t default_vivi_parameters[];
00043 extern int default_nb_params;
00044 extern char linux_cmd[];
00045 
00046 extern int *nb_mtd_parts;
00047 extern int *nb_params;
00048 
00049 /* API */
00050 int get_default_mtd_partition(void);
00051 int get_default_param_tlb(void);
00052 int get_default_linux_cmd(void);
00053 mtd_partition_t *get_mtd_partition(const char *);
00054 mtd_partition_t *find_mtd_partition(ulong ofs);
00055 vivi_parameter_t *get_param(const char*);
00056 param_value_t get_param_value(const char *, int *);
00057 int set_param_value(const char *name, param_value_t value);
00058 char *get_linux_cmd_line(void);
00059 void display_param_tlb(void);
00060 void display_mtd_partition(void);
00061 int save_priv_data_blk(void);
00062 int init_priv_data(void);
00063 
00064 #endif /* __VIVI_PRIV_DATA_H__ */
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines