diff options
Diffstat (limited to 'include/asm-mips/mips-boards/prom.h')
-rw-r--r-- | include/asm-mips/mips-boards/prom.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/include/asm-mips/mips-boards/prom.h b/include/asm-mips/mips-boards/prom.h new file mode 100644 index 000000000000..4168c7fcd43e --- /dev/null +++ b/include/asm-mips/mips-boards/prom.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Carsten Langgaard, carstenl@mips.com | ||
3 | * Copyright (C) 2000 MIPS Technologies, Inc. All rights reserved. | ||
4 | * | ||
5 | * ######################################################################## | ||
6 | * | ||
7 | * This program is free software; you can distribute it and/or modify it | ||
8 | * under the terms of the GNU General Public License (Version 2) as | ||
9 | * published by the Free Software Foundation. | ||
10 | * | ||
11 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
14 | * for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License along | ||
17 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
18 | * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. | ||
19 | * | ||
20 | * ######################################################################## | ||
21 | * | ||
22 | * MIPS boards bootprom interface for the Linux kernel. | ||
23 | * | ||
24 | */ | ||
25 | |||
26 | #ifndef _MIPS_PROM_H | ||
27 | #define _MIPS_PROM_H | ||
28 | |||
29 | extern char *prom_getcmdline(void); | ||
30 | extern char *prom_getenv(char *name); | ||
31 | extern void setup_prom_printf(int tty_no); | ||
32 | extern void prom_printf(char *fmt, ...); | ||
33 | extern void prom_init_cmdline(void); | ||
34 | extern void prom_meminit(void); | ||
35 | extern void prom_fixup_mem_map(unsigned long start_mem, unsigned long end_mem); | ||
36 | extern unsigned long prom_free_prom_memory (void); | ||
37 | extern void mips_display_message(const char *str); | ||
38 | extern void mips_display_word(unsigned int num); | ||
39 | extern int get_ethernet_addr(char *ethernet_addr); | ||
40 | |||
41 | /* Memory descriptor management. */ | ||
42 | #define PROM_MAX_PMEMBLOCKS 32 | ||
43 | struct prom_pmemblock { | ||
44 | unsigned long base; /* Within KSEG0. */ | ||
45 | unsigned int size; /* In bytes. */ | ||
46 | unsigned int type; /* free or prom memory */ | ||
47 | }; | ||
48 | |||
49 | #endif /* !(_MIPS_PROM_H) */ | ||