diff options
Diffstat (limited to 'sys/arch/sparc/include/autoconf.h')
-rw-r--r-- | sys/arch/sparc/include/autoconf.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/sys/arch/sparc/include/autoconf.h b/sys/arch/sparc/include/autoconf.h index 08b44eb4407..4cb7f4b25f6 100644 --- a/sys/arch/sparc/include/autoconf.h +++ b/sys/arch/sparc/include/autoconf.h @@ -138,13 +138,30 @@ char *clockfreq __P((int freq)); * it will use that instead of creating one, but you must only do this if * you get it from ../sparc/vaddrs.h. */ -void *mapdev __P((void *pa, int va, int size, int bustype)); -#define mapiodev(pa, size, bustype) mapdev(pa, 0, size, bustype) +void *mapdev __P((struct rom_reg *rr, int va, int offset, + int size, int bustype)); +#define mapiodev(rr, offset, size, bustype) mapdev(rr, 0, offset, size, bustype) void *bus_map __P((void *pa, int len, int bustype)); void *bus_tmp __P((void *pa, int bustype)); void bus_untmp __P((void)); +#ifdef notyet +/* + * REG2PHYS is provided for drivers with a `d_mmap' function. + */ +#define REG2PHYS(rr, offset, bt) \ + (((u_int)(rr)->rr_paddr + (offset)) | \ + ((cputyp == CPU_SUN4M) \ + ? ((rr)->rr_iospace << PMAP_SHFT4M) \ + : bt2pmt[bt]) \ + ) +#else +#define REG2PHYS(rr, offset, bt) \ + (((u_int)(rr)->rr_paddr + (offset)) | (bt2pmt[bt]) \ + ) +#endif + /* * Memory description arrays. Shared between pmap.c and autoconf.c; no * one else should use this (except maybe mem.c, e.g., if we fix the VM to |