2004-02-15 20:46:45 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* from MMU_asm.S */
|
|
|
|
|
|
|
|
void get_TC(unsigned long *TC);
|
|
|
|
void get_SRP(unsigned long *SRP);
|
|
|
|
void get_CRP(unsigned long *CRP);
|
|
|
|
void get_TT0(unsigned long *TT0);
|
|
|
|
void get_TT1(unsigned long *TT1);
|
2004-02-21 01:52:51 +00:00
|
|
|
int ptest(unsigned long logical, unsigned long* physical);
|
2004-02-17 10:30:42 +00:00
|
|
|
unsigned long read_phys(unsigned long addr);
|
2004-02-15 20:46:45 +00:00
|
|
|
void write_phys(void *addr, unsigned long value);
|
|
|
|
|
|
|
|
/* from MMU.c */
|
|
|
|
|
2004-02-26 22:57:37 +00:00
|
|
|
extern unsigned long MMU_get_page_size(void);
|
|
|
|
extern int MMU_logical2physicalAttr(unsigned long logical, unsigned long *physicalAddr, unsigned long *attr);
|
|
|
|
extern int MMU_logical2physical(unsigned long logical, unsigned long *physicalAddr);
|
2004-02-21 01:52:51 +00:00
|
|
|
#ifdef TRACE_MMU
|
|
|
|
extern void MMU_set_trace(int enable);
|
|
|
|
#endif
|
2004-02-17 10:30:42 +00:00
|
|
|
#ifdef MMU_DUMP
|
2004-02-26 22:57:37 +00:00
|
|
|
extern void MMU_dump_table();
|
2004-02-17 10:30:42 +00:00
|
|
|
#endif
|