setup.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
  3. * Copyright (C) 2007-2009 PetaLogix
  4. * Copyright (C) 2006 Atmark Techno, Inc.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #ifndef _ASM_MICROBLAZE_SETUP_H
  11. #define _ASM_MICROBLAZE_SETUP_H
  12. #include <uapi/asm/setup.h>
  13. # ifndef __ASSEMBLY__
  14. extern unsigned int boot_cpuid; /* move to smp.h */
  15. extern char cmd_line[COMMAND_LINE_SIZE];
  16. extern char *klimit;
  17. int setup_early_printk(char *opt);
  18. void remap_early_printk(void);
  19. void disable_early_printk(void);
  20. void microblaze_heartbeat(void);
  21. void microblaze_setup_heartbeat(void);
  22. # ifdef CONFIG_MMU
  23. extern void mmu_reset(void);
  24. extern void early_console_reg_tlb_alloc(unsigned int addr);
  25. # endif /* CONFIG_MMU */
  26. extern void of_platform_reset_gpio_probe(void);
  27. void time_init(void);
  28. void init_IRQ(void);
  29. void machine_early_init(const char *cmdline, unsigned int ram,
  30. unsigned int fdt, unsigned int msr, unsigned int tlb0,
  31. unsigned int tlb1);
  32. void machine_restart(char *cmd);
  33. void machine_shutdown(void);
  34. void machine_halt(void);
  35. void machine_power_off(void);
  36. extern void *alloc_maybe_bootmem(size_t size, gfp_t mask);
  37. extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
  38. # endif /* __ASSEMBLY__ */
  39. #endif /* _ASM_MICROBLAZE_SETUP_H */