/* $NetBSD: pmap.h,v 1.7 2026/11/14 23:08:26 thorpej Exp $ */ #ifndef _VIRT68K_PMAP_H_ #define _VIRT68K_PMAP_H_ #include #include /* * Qemu places the virtual devices in the last 16MB of physical * address space (0xff00.0000). We use a Transparent Translation * register to map these VA==PA for convenience. */ #define VIRT68K_IO_BASE 0xff000000 #define VIRT68K_IO_SIZE 0x01000000 #define VIRT68K_TT30_IO (VIRT68K_IO_BASE | \ TT30_E | TT30_CI | TT30_RWM | \ TT30_SUPERD) #define VIRT68K_TT40_IO (VIRT68K_IO_BASE | \ TTR40_E | TTR40_SUPER | \ PTE40_CM_NC_SER) /* * We will place our cpu_info at the beginning of the last 32MB * segment of kernel VA, below the IO_BASE. */ #define CPUINFO_VA 0xfe000000 #ifdef __HAVE_NEW_PMAP_68K #include #else #define SYSMAP_VA ((vaddr_t)(VIRT68K_IO_BASE-PAGE_SIZE*NPTEPG)) #include #endif /* __HAVE_NEW_PMAP_68K */ #endif /* _VIRT68K_PMAP_H_ */