blob: 0061aa13a340a3ca8be926a2e056b4a808e923cc [file] [log] [blame]
Michal Simekec9f9102009-03-27 14:25:24 +01001/*
Michal Simeka43acfb2009-05-26 16:30:10 +02002 * Copyright (C) 2007-2009 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2007-2009 PetaLogix
Michal Simekec9f9102009-03-27 14:25:24 +01004 * 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
11#ifndef _ASM_MICROBLAZE_SETUP_H
12#define _ASM_MICROBLAZE_SETUP_H
13
14#define COMMAND_LINE_SIZE 256
15
16# ifndef __ASSEMBLY__
17
18# ifdef __KERNEL__
19extern unsigned int boot_cpuid; /* move to smp.h */
20
21extern char cmd_line[COMMAND_LINE_SIZE];
Michal Simekec9f9102009-03-27 14:25:24 +010022
David Howellsc40d04d2012-03-28 18:30:02 +010023extern char *klimit;
24
Michal Simekec9f9102009-03-27 14:25:24 +010025void early_printk(const char *fmt, ...);
26
27int setup_early_printk(char *opt);
Michal Simeke721a452011-04-04 15:45:06 +020028void remap_early_printk(void);
Michal Simekec9f9102009-03-27 14:25:24 +010029void disable_early_printk(void);
30
31void heartbeat(void);
32void setup_heartbeat(void);
33
Michal Simeka43acfb2009-05-26 16:30:10 +020034# ifdef CONFIG_MMU
35extern void mmu_reset(void);
36extern void early_console_reg_tlb_alloc(unsigned int addr);
37# endif /* CONFIG_MMU */
38
Michal Simek42a24782009-10-02 12:48:47 +020039extern void of_platform_reset_gpio_probe(void);
40
Michal Simekec9f9102009-03-27 14:25:24 +010041void time_init(void);
42void init_IRQ(void);
43void machine_early_init(const char *cmdline, unsigned int ram,
Michal Simek95b0f9e2010-02-08 16:41:38 +010044 unsigned int fdt, unsigned int msr, unsigned int tlb0,
45 unsigned int tlb1);
Michal Simekec9f9102009-03-27 14:25:24 +010046
47void machine_restart(char *cmd);
48void machine_shutdown(void);
49void machine_halt(void);
50void machine_power_off(void);
51
David Howellsc40d04d2012-03-28 18:30:02 +010052void free_init_pages(char *what, unsigned long begin, unsigned long end);
53extern void *alloc_maybe_bootmem(size_t size, gfp_t mask);
54extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
55
Michal Simeka43acfb2009-05-26 16:30:10 +020056# endif/* __KERNEL__ */
Michal Simekec9f9102009-03-27 14:25:24 +010057# endif /* __ASSEMBLY__ */
58#endif /* _ASM_MICROBLAZE_SETUP_H */