setup.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. void heartbeat(void);
  21. void setup_heartbeat(void);
  22. unsigned long long sched_clock(void);
  23. # ifdef CONFIG_MMU
  24. extern void mmu_reset(void);
  25. extern void early_console_reg_tlb_alloc(unsigned int addr);
  26. # endif /* CONFIG_MMU */
  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);
  31. void machine_restart(char *cmd);
  32. void machine_shutdown(void);
  33. void machine_halt(void);
  34. void machine_power_off(void);
  35. # endif/* __KERNEL__ */
  36. # endif /* __ASSEMBLY__ */
  37. #endif /* _ASM_MICROBLAZE_SETUP_H */