Line 54... |
Line 54... |
unsigned long addr_mask;
|
unsigned long addr_mask;
|
unsigned long addr_compare;
|
unsigned long addr_compare;
|
unsigned long size;
|
unsigned long size;
|
unsigned long size_mask; /* Address mask, calculated out of size */
|
unsigned long size_mask; /* Address mask, calculated out of size */
|
unsigned long granularity; /* how many bytes read/write accepts: 1/2/4 */
|
unsigned long granularity; /* how many bytes read/write accepts: 1/2/4 */
|
|
int delayr; /* Read delay */
|
|
int delayw; /* Write delay */
|
|
|
int chip_select; /* Needed by memory controller; specifies chip select number for this memory area. */
|
int chip_select; /* Needed by memory controller; specifies chip select number for this memory area. */
|
|
|
unsigned long (*readfunc)(unsigned long);
|
unsigned long (*readfunc)(unsigned long);
|
void (*writefunc)(unsigned long, unsigned long);
|
void (*writefunc)(unsigned long, unsigned long);
|
Line 82... |
Line 84... |
unsigned char evalsim_mem8(unsigned long);
|
unsigned char evalsim_mem8(unsigned long);
|
void setsim_mem32(unsigned long,unsigned long);
|
void setsim_mem32(unsigned long,unsigned long);
|
void setsim_mem16(unsigned long,unsigned short);
|
void setsim_mem16(unsigned long,unsigned short);
|
void setsim_mem8(unsigned long,unsigned char);
|
void setsim_mem8(unsigned long,unsigned char);
|
|
|
void sim_read_memory_table (char *filename);
|
void init_memory_table ();
|
|
|
|
/* Changes read/write memory in read/write only */
|
|
void lock_memory_table ();
|
|
|
/* Register read and write function for a memory area.
|
/* Register read and write function for a memory area.
|
addr is inside the area, if addr & addr_mask == addr_compare
|
addr is inside the area, if addr & addr_mask == addr_compare
|
(used also by peripheral devices like 16450 UART etc.) */
|
(used also by peripheral devices like 16450 UART etc.) */
|
void register_memoryarea_mask(unsigned long addr_mask, unsigned long addr_compare,
|
void register_memoryarea_mask(unsigned long addr_mask, unsigned long addr_compare,
|