nosrmmu.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * nosrmmu.c: This file is a bunch of dummies for sun4 compiles,
  3. * so that it does not need srmmu and avoid ifdefs.
  4. *
  5. * Copyright (C) 1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
  6. */
  7. #include <linux/kernel.h>
  8. #include <linux/mm.h>
  9. #include <linux/init.h>
  10. #include <asm/mbus.h>
  11. static char shouldnothappen[] __initdata = "SUN4 kernel can only run on SUN4\n";
  12. enum mbus_module srmmu_modtype;
  13. void *srmmu_nocache_pool;
  14. int vac_cache_size = 0;
  15. static void __init should_not_happen(void)
  16. {
  17. prom_printf(shouldnothappen);
  18. prom_halt();
  19. }
  20. void __init srmmu_frob_mem_map(unsigned long start_mem)
  21. {
  22. should_not_happen();
  23. }
  24. unsigned long __init srmmu_paging_init(unsigned long start_mem, unsigned long end_mem)
  25. {
  26. should_not_happen();
  27. return 0;
  28. }
  29. void __init ld_mmu_srmmu(void)
  30. {
  31. should_not_happen();
  32. }
  33. void srmmu_mapioaddr(unsigned long physaddr, unsigned long virt_addr, int bus_type, int rdonly)
  34. {
  35. }
  36. void srmmu_unmapioaddr(unsigned long virt_addr)
  37. {
  38. }
  39. __u32 iounit_map_dma_init(struct sbus_bus *sbus, int size)
  40. {
  41. return 0;
  42. }
  43. __u32 iounit_map_dma_page(__u32 vaddr, void *addr, struct sbus_bus *sbus)
  44. {
  45. return 0;
  46. }