setup.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. void early_printk(const char *fmt, ...);
  18. int setup_early_printk(char *opt);
  19. void remap_early_printk(void);
  20. void disable_early_printk(void);
  21. #if defined(CONFIG_EARLY_PRINTK)
  22. #define eprintk early_printk
  23. #else
  24. #define eprintk printk
  25. #endif
  26. void heartbeat(void);
  27. void setup_heartbeat(void);
  28. # ifdef CONFIG_MMU
  29. extern void mmu_reset(void);
  30. extern void early_console_reg_tlb_alloc(unsigned int addr);
  31. # endif /* CONFIG_MMU */
  32. extern void of_platform_reset_gpio_probe(void);
  33. void time_init(void);
  34. void init_IRQ(void);
  35. void machine_early_init(const char *cmdline, unsigned int ram,
  36. unsigned int fdt, unsigned int msr);
  37. void machine_restart(char *cmd);
  38. void machine_shutdown(void);
  39. void machine_halt(void);
  40. void machine_power_off(void);
  41. # endif/* __KERNEL__ */
  42. # endif /* __ASSEMBLY__ */
  43. #endif /* _ASM_MICROBLAZE_SETUP_H */