74 typedef unsigned int t_yamon_uint32;
75 typedef unsigned short t_yamon_uint16;
76 typedef unsigned char t_yamon_uint8;
77 typedef signed int t_yamon_int32;
78 typedef signed short t_yamon_int16;
79 typedef signed char t_yamon_int8;
81 typedef unsigned char t_yamon_bool;
84 #define YAMON_TRUE (!YAMON_FALSE) 95 typedef t_yamon_uint32
100 t_yamon_uint32 memsize );
104 typedef t_yamon_uint32 t_yamon_syscon_id;
110 #define YAMON_DEFAULT_HANDLER 0xfffffff0 115 #define YAMON_DEFAULT_EJTAG_ESR 0xfffffff1 118 typedef void (*t_yamon_isr)(
void *data);
121 typedef void (*t_yamon_esr)(void);
124 typedef void (*t_yamon_retfunc)(void);
127 typedef void *t_yamon_ref;
131 #define YAMON_FUNCTION_BASE 0x9fc00500 134 #define YAMON_FUNC_PRINT_COUNT_OFS 0x04 135 #define YAMON_FUNC_EXIT_OFS 0x20 136 #define YAMON_FUNC_FLUSH_CACHE_OFS 0x2C 137 #define YAMON_FUNC_PRINT_OFS 0x34 138 #define YAMON_FUNC_REGISTER_CPU_ISR_OFS 0x38 139 #define YAMON_FUNC_DEREGISTER_CPU_ISR_OFS 0x3c 140 #define YAMON_FUNC_REGISTER_IC_ISR_OFS 0x40 141 #define YAMON_FUNC_DEREGISTER_IC_ISR_OFS 0x44 142 #define YAMON_FUNC_REGISTER_ESR_OFS 0x48 143 #define YAMON_FUNC_DEREGISTER_ESR_OFS 0x4c 144 #define YAMON_FUNC_GETCHAR_OFS 0x50 145 #define YAMON_FUNC_SYSCON_READ_OFS 0x54 148 #define YAMON_FUNC(ofs)\ 149 (*(t_yamon_uint32 *)(YAMON_FUNCTION_BASE + (ofs))) 184 #define YAMON_FUNC_EXIT( rc )\ 185 ((t_yamon_exit)( YAMON_FUNC(YAMON_FUNC_EXIT_OFS) ))\ 214 #define YAMON_FUNC_PRINT( s )\ 215 ((t_yamon_print)( YAMON_FUNC(YAMON_FUNC_PRINT_OFS) ))\ 241 (*t_yamon_print_count)(
244 t_yamon_uint32 count );
246 #define YAMON_FUNC_PRINT_COUNT( s, count )\ 247 ((t_yamon_print_count)( YAMON_FUNC(YAMON_FUNC_PRINT_COUNT_OFS) ))\ 277 #define YAMON_FUNC_GETCHAR( ch )\ 278 ((t_yamon_getchar)( YAMON_FUNC(YAMON_FUNC_GETCHAR_OFS) ))\ 307 typedef t_yamon_int32
308 (*t_yamon_syscon_read)(
309 t_yamon_syscon_id id,
311 t_yamon_uint32
size);
313 #define YAMON_FUNC_SYSCON_READ( id, param, size )\ 314 ((t_yamon_syscon_read)( YAMON_FUNC(YAMON_FUNC_SYSCON_READ_OFS) ))\ 341 (*t_yamon_flush_cache)(
342 #define YAMON_FLUSH_ICACHE 0 343 #define YAMON_FLUSH_DCACHE 1 344 t_yamon_uint32 type );
346 #define YAMON_FUNC_FLUSH_CACHE( type )\ 347 ((t_yamon_flush_cache)( YAMON_FUNC(YAMON_FUNC_FLUSH_CACHE_OFS) ))\ 419 typedef t_yamon_int32
420 (*t_yamon_register_esr)(
421 t_yamon_uint32 exception,
424 t_yamon_retfunc *retfunc );
426 #define YAMON_FUNC_REGISTER_ESR( exc, esr, ref, retfunc )\ 427 ((t_yamon_register_esr)( YAMON_FUNC(YAMON_FUNC_REGISTER_ESR_OFS) ))\ 428 ( exc, esr, ref, retfunc ) 451 typedef t_yamon_int32
452 (*t_yamon_deregister_esr)(
455 #define YAMON_FUNC_DEREGISTER_ESR( ref )\ 456 ((t_yamon_deregister_esr)( YAMON_FUNC(YAMON_FUNC_DEREGISTER_ESR_OFS) ))\ 504 typedef t_yamon_int32
505 (*t_yamon_register_cpu_isr)(
506 t_yamon_uint32 cpu_int,
511 #define YAMON_FUNC_REGISTER_CPU_ISR( cpu_int, isr, data, ref )\ 512 ((t_yamon_register_cpu_isr)( YAMON_FUNC(YAMON_FUNC_REGISTER_CPU_ISR_OFS) ))\ 513 ( cpu_int, isr, data, ref ) 536 typedef t_yamon_int32
537 (*t_yamon_deregister_cpu_isr)(
540 #define YAMON_FUNC_DEREGISTER_CPU_ISR( ref )\ 541 ((t_yamon_deregister_cpu_isr)( YAMON_FUNC(YAMON_FUNC_DEREGISTER_CPU_ISR_OFS) ))\ 584 typedef t_yamon_int32
585 (*t_yamon_register_ic_isr)(
586 t_yamon_uint32 ic_line,
591 #define YAMON_FUNC_REGISTER_IC_ISR( ic_line, isr, data, ref )\ 592 ((t_yamon_register_ic_isr)( YAMON_FUNC(YAMON_FUNC_REGISTER_IC_ISR_OFS) ))\ 593 ( ic_line, isr, data, ref ) 616 typedef t_yamon_int32
617 (*t_yamon_deregister_ic_isr)(
620 #define YAMON_FUNC_DEREGISTER_IC_ISR( ref )\ 621 ((t_yamon_deregister_ic_isr)( YAMON_FUNC(YAMON_FUNC_DEREGISTER_IC_ISR_OFS) ))\ unsigned size
Definition: tte.h:74
Definition: yamon_api.h:87
Definition: main_edit.c:207