00001 /* src_experimental/config/config.h 00002 CubeOS Version 0.4.90 experimental 00003 Copyright (C) 1999,2000 Holger Kenn 00004 00005 CubeOS is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or any later version. 00009 00010 CubeOS is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 */ 00016 #ifndef CONFIG_H 00017 00018 #define CONFIG_H 00019 #include <asm_config.h> 00020 00021 #define ATYPE unsigned int 00022 #define VTYPE unsigned char 00023 #define BTYPE unsigned char 00024 00025 struct config_struct { 00026 ATYPE eprom_base; 00027 ATYPE cpuram_base; 00028 ATYPE duart_base; 00029 VTYPE ptimer_vn; 00030 ATYPE sci_base; 00031 VTYPE sciqsm_vn; 00032 ATYPE tpu_base; 00033 VTYPE tpu_vn; 00034 ATYPE i2ca_base; 00035 ATYPE i2cb_base; 00036 VTYPE i2ca_vn; 00037 VTYPE i2cb_vn; 00038 ATYPE fastbin_base; 00039 ATYPE rcjfb_base; 00040 ATYPE rcj_base; 00041 ATYPE rg_base; 00042 BTYPE i2ca_initcs; 00043 BTYPE i2cb_initcs; 00044 }; 00045 #if defined(RC02) 00046 00047 #include <rc02_config.h> 00048 00049 #elif defined(RCJ) 00050 00051 #include <rcj_config.h> 00052 00053 #elif defined (RCJ_CAM) 00054 00055 #include <rcj_cam_config.h> 00056 00057 #elif defined (RG) 00058 00059 #include <rg_config.h> 00060 00061 #elif defined (RGD) 00062 00063 #include <rgd_config.h> 00064 00065 #elif defined(CUBE3) 00066 00067 #include <cube3_config.h> 00068 00069 #elif defined(CUBE1) 00070 00071 #include <cube1_config.h> 00072 00073 #else 00074 00075 #define EPROM_BASE (config.eprom_base) 00076 #define CPURAM_BASE (config.cpuram_base) 00077 #define DUART_BASE (config.duart_base) 00078 #define PTIMER_VECTORNUM (config.ptimer_vn) 00079 #define SCI_BASE (config.sci_base) 00080 #define QSM_VECTORNUM (config.sciqsm_vn) 00081 #define TPU_BASE (config.tpu_base) 00082 #define TPU_VECTORBASE (config.tpu_vn) 00083 #define I2CA_BASE (config.i2ca_base) 00084 #define I2CB_BASE (config.i2cb_base) 00085 #define I2CA_VECTORNUM (config.i2ca_vn) 00086 #define I2CB_VECTORNUM (config.i2cb_vn) 00087 #define FASTBIN_BASE (config.fastbin_base) 00088 #define RCJFB_BASE (config.rcjfb_base) 00089 #define RCJ_BASE (config.rcj_base) 00090 #define RG_BASE (config.rg_base) 00091 #define I2C_INITCSA (config.i2ca_initcs) 00092 #define I2C_INITCSB (config.i2cb_initcs) 00093 00094 extern struct config_struct config; 00095 00096 #define FILL_CONFIG 00097 00098 #endif 00099 00100 00101 00102 #endif 00103