Home | History | Annotate | Line # | Download | only in include
pmap.h revision 1.1
      1  1.1  thorpej /*	$NetBSD: pmap.h,v 1.1 2024/01/02 07:41:01 thorpej Exp $	*/
      2  1.1  thorpej 
      3  1.1  thorpej #ifndef _VIRT68K_PMAP_H_
      4  1.1  thorpej #define	_VIRT68K_PMAP_H_
      5  1.1  thorpej 
      6  1.1  thorpej #include <m68k/pmap_motorola.h>
      7  1.1  thorpej #include <m68k/mmu_30.h>
      8  1.1  thorpej 
      9  1.1  thorpej /*
     10  1.1  thorpej  * Qemu places the virtual devices in the last 16MB of physical
     11  1.1  thorpej  * address space (0xff00.0000).  We use a Transparent Translation
     12  1.1  thorpej  * register to map these VA==PA for convenience.
     13  1.1  thorpej  */
     14  1.1  thorpej 
     15  1.1  thorpej #define	VIRT68K_IO_BASE		0xff000000
     16  1.1  thorpej 
     17  1.1  thorpej #define	VIRT68K_TT30_IO		(VIRT68K_IO_BASE |			\
     18  1.1  thorpej 				 TT30_E | TT30_CI | TT30_RWM |		\
     19  1.1  thorpej 				 TT30_SUPERD)
     20  1.1  thorpej 
     21  1.1  thorpej #define	VIRT68K_TT40_IO		(VIRT68K_IO_BASE |			\
     22  1.1  thorpej 				 TTR40_E | TTR40_SUPER |		\
     23  1.1  thorpej 				 PTE40_CM_NC_SER)
     24  1.1  thorpej 
     25  1.1  thorpej #endif /* _VIRT68K_PMAP_H_ */
     26