rdram.h
725 Bytes
/* XXX Need to put somewhere else */
/* these constants are per rdram */
#define MAIN_MEMORY_SIZE 0x200000
#define HIDDEN_FACTOR 8
#define HIDDEN_MEMORY_SIZE (MAIN_MEMORY_SIZE/HIDDEN_FACTOR)
#define TOTAL_MEMORY_SIZE (MAIN_MEMORY_SIZE + HIDDEN_MEMORY_SIZE)
#ifndef NULL
#define NULL 0
#endif
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
#define RDRAM_RDONLY FALSE
#define RDRAM_RW TRUE
#define RDRAM_NOHIDDEN FALSE
#define RDRAM_NEEDHIDDEN TRUE
int rdraminit(char *file, int rw, int hflag, int nrdrams, \
unsigned char **mainaddrp, long *mainsizep, \
unsigned char **hiddenaddrp, long *hiddensizep);