/[gxemul]/trunk/src/include/memory.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/include/memory.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 24 by dpavlin, Mon Oct 8 16:19:56 2007 UTC revision 28 by dpavlin, Mon Oct 8 16:20:26 2007 UTC
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: memory.h,v 1.49 2006/06/16 18:31:26 debug Exp $   *  $Id: memory.h,v 1.51 2006/07/08 12:30:03 debug Exp $
32   *   *
33   *  Memory controller related functions.   *  Memory controller related functions.
34   */   */
# Line 95  char *memory_conv_to_string(struct cpu * Line 95  char *memory_conv_to_string(struct cpu *
95  unsigned char *memory_paddr_to_hostaddr(struct memory *mem,  unsigned char *memory_paddr_to_hostaddr(struct memory *mem,
96          uint64_t paddr, int writeflag);          uint64_t paddr, int writeflag);
97    
 /*  memory_fast_v2h.c:  */  
 unsigned char *fast_vaddr_to_hostaddr(struct cpu *cpu, uint64_t vaddr,  
         int writeflag);  
   
 /*  MIPS stuff:  */  
 int translate_address_mmu3k(struct cpu *cpu, uint64_t vaddr,  
         uint64_t *return_addr, int flags);  
 int translate_address_mmu8k(struct cpu *cpu, uint64_t vaddr,  
         uint64_t *return_addr, int flags);  
 int translate_address_mmu10k(struct cpu *cpu, uint64_t vaddr,  
         uint64_t *return_addr, int flags);  
 int translate_address_mmu4100(struct cpu *cpu, uint64_t vaddr,  
         uint64_t *return_addr, int flags);  
 int translate_address_generic(struct cpu *cpu, uint64_t vaddr,  
         uint64_t *return_addr, int flags);  
   
98    
99  /*  Writeflag:  */  /*  Writeflag:  */
100  #define MEM_READ                        0  #define MEM_READ                        0
# Line 152  void memory_device_dyntrans_access(struc Line 136  void memory_device_dyntrans_access(struc
136          struct memory *mem, uint64_t relative_addr, unsigned char *data,  \          struct memory *mem, uint64_t relative_addr, unsigned char *data,  \
137          size_t len, int writeflag, void *extra)          size_t len, int writeflag, void *extra)
138    
139    void memory_device_update_data(struct memory *mem, void *extra,
140            unsigned char *data);
141    
142  void memory_device_register(struct memory *mem, const char *,  void memory_device_register(struct memory *mem, const char *,
143          uint64_t baseaddr, uint64_t len, int (*f)(struct cpu *,          uint64_t baseaddr, uint64_t len, int (*f)(struct cpu *,
144              struct memory *,uint64_t,unsigned char *,size_t,int,void *),              struct memory *,uint64_t,unsigned char *,size_t,int,void *),

Legend:
Removed from v.24  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26