nosrmmu.c 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* $Id: nosrmmu.c,v 1.5 1999/11/19 04:11:54 davem Exp $
  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. #include <asm/sbus.h>
  12. static char shouldnothappen[] __initdata = "SUN4 kernel can only run on SUN4\n";
  13. enum mbus_module srmmu_modtype;
  14. void *srmmu_nocache_pool;
  15. int vac_cache_size = 0;
  16. static void __init should_not_happen(void)
  17. {
  18. prom_printf(shouldnothappen);
  19. prom_halt();
  20. }
  21. void __init srmmu_frob_mem_map(unsigned long start_mem)
  22. {
  23. should_not_happen();
  24. }
  25. unsigned long __init srmmu_paging_init(unsigned long start_mem, unsigned long end_mem)
  26. {
  27. should_not_happen();
  28. return 0;
  29. }
  30. void __init ld_mmu_srmmu(void)
  31. {
  32. should_not_happen();
  33. }
  34. void srmmu_mapioaddr(unsigned long physaddr, unsigned long virt_addr, int bus_type, int rdonly)
  35. {
  36. }
  37. void srmmu_unmapioaddr(unsigned long virt_addr)
  38. {
  39. }
  40. __u32 iounit_map_dma_init(struct sbus_bus *sbus, int size)
  41. {
  42. return 0;
  43. }
  44. __u32 iounit_map_dma_page(__u32 vaddr, void *addr, struct sbus_bus *sbus)
  45. {
  46. return 0;
  47. }