setup.h 1.3 KB

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