Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
mips
pnx8550
stb810
prom_init.c
Go to the documentation of this file.
1
/*
2
* STB810 specific prom routines
3
*
4
* Author: MontaVista Software, Inc.
5
*
[email protected]
6
*
7
* Copyright 2005 MontaVista Software Inc.
8
*
9
* This program is free software; you can redistribute it and/or modify it
10
* under the terms of the GNU General Public License as published by the
11
* Free Software Foundation; either version 2 of the License, or (at your
12
* option) any later version.
13
*/
14
15
#include <
linux/init.h
>
16
#include <
linux/mm.h
>
17
#include <linux/sched.h>
18
#include <
linux/bootmem.h
>
19
#include <asm/addrspace.h>
20
#include <asm/bootinfo.h>
21
#include <linux/string.h>
22
#include <linux/kernel.h>
23
24
int
prom_argc
;
25
char
**
prom_argv
, **
prom_envp
;
26
extern
void
__init
prom_init_cmdline
(
void
);
27
extern
char
*
prom_getenv
(
char
*envname);
28
29
const
char
*
get_system_type
(
void
)
30
{
31
return
"NXP PNX8950/STB810"
;
32
}
33
34
void
__init
prom_init
(
void
)
35
{
36
unsigned
long
memsize
;
37
38
prom_argc
= (
int
)
fw_arg0
;
39
prom_argv
= (
char
**)
fw_arg1
;
40
prom_envp
= (
char
**)
fw_arg2
;
41
42
prom_init_cmdline
();
43
44
memsize = 0x08000000;
/* Trimedia uses memory above */
45
add_memory_region
(0, memsize,
BOOT_MEM_RAM
);
46
}
Generated on Thu Jan 10 2013 13:12:08 for Linux Kernel by
1.8.2