--- trunk/src/include/memory.h 2007/10/08 16:18:51 14 +++ trunk/src/include/memory.h 2007/10/08 16:19:11 18 @@ -28,7 +28,7 @@ * SUCH DAMAGE. * * - * $Id: memory.h,v 1.37 2005/09/22 09:07:00 debug Exp $ + * $Id: memory.h,v 1.40 2005/10/23 14:24:15 debug Exp $ * * Memory controller related functions. */ @@ -64,6 +64,7 @@ const char *dev_name[MAX_DEVICES]; uint64_t dev_baseaddr[MAX_DEVICES]; + uint64_t dev_endaddr[MAX_DEVICES]; /* after the end! */ uint64_t dev_length[MAX_DEVICES]; int dev_flags[MAX_DEVICES]; void *dev_extra[MAX_DEVICES]; @@ -169,8 +170,10 @@ int userland_memory_rw(struct cpu *cpu, struct memory *mem, uint64_t vaddr, unsigned char *data, size_t len, int writeflag, int cache); -#define MEMORY_ACCESS_FAILED 0 -#define MEMORY_ACCESS_OK 1 +#define MEMORY_ACCESS_FAILED 0 +#define MEMORY_ACCESS_OK 1 +#define MEMORY_ACCESS_OK_WRITE 2 +#define MEMORY_NOT_FULL_PAGE 256 void memory_device_dyntrans_access(struct cpu *, struct memory *mem, void *extra, uint64_t *low, uint64_t *high); @@ -192,6 +195,7 @@ #define MEM_DYNTRANS_OK 1 #define MEM_DYNTRANS_WRITE_OK 2 #define MEM_READING_HAS_NO_SIDE_EFFECTS 4 +#define MEM_EMULATED_RAM 8 #endif /* MEMORY_H */