setup.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. #define COMMAND_LINE_SIZE 256
  13. # ifndef __ASSEMBLY__
  14. # ifdef __KERNEL__
  15. extern unsigned int boot_cpuid; /* move to smp.h */
  16. extern char cmd_line[COMMAND_LINE_SIZE];
  17. extern char *klimit;
  18. void early_printk(const char *fmt, ...);
  19. int setup_early_printk(char *opt);
  20. void remap_early_printk(void);
  21. void disable_early_printk(void);
  22. void heartbeat(void);
  23. void setup_heartbeat(void);
  24. # ifdef CONFIG_MMU
  25. extern void mmu_reset(void);
  26. extern void early_console_reg_tlb_alloc(unsigned int addr);
  27. # endif /* CONFIG_MMU */
  28. extern void of_platform_reset_gpio_probe(void);
  29. void time_init(void);
  30. void init_IRQ(void);
  31. void machine_early_init(const char *cmdline, unsigned int ram,
  32. unsigned int fdt, unsigned int msr, unsigned int tlb0,
  33. unsigned int tlb1);
  34. void machine_restart(char *cmd);
  35. void machine_shutdown(void);
  36. void machine_halt(void);
  37. void machine_power_off(void);
  38. void free_init_pages(char *what, unsigned long begin, unsigned long end);
  39. extern void *alloc_maybe_bootmem(size_t size, gfp_t mask);
  40. extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
  41. # endif/* __KERNEL__ */
  42. # endif /* __ASSEMBLY__ */
  43. #endif /* _ASM_MICROBLAZE_SETUP_H */