Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
sniprom.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/console.h>
#include <asm/addrspace.h>
#include <asm/sni.h>
#include <asm/mipsprom.h>
#include <asm/mipsregs.h>
#include <asm/bootinfo.h>

Go to the source code of this file.

Macros

#define PROM_GET_MEMCONF   58
 
#define PROM_GET_HWCONF   61
 
#define PROM_VEC   (u64 *)CKSEG1ADDR(0x1fc00000)
 
#define PROM_ENTRY(x)   (PROM_VEC + (x))
 
#define ___prom_putchar   ((int *(*)(int))PROM_ENTRY(PROM_PUTCHAR))
 
#define ___prom_getenv   ((char *(*)(char *))PROM_ENTRY(PROM_GETENV))
 
#define ___prom_get_memconf   ((void (*)(void *))PROM_ENTRY(PROM_GET_MEMCONF))
 
#define ___prom_get_hwconf   ((u32 (*)(void))PROM_ENTRY(PROM_GET_HWCONF))
 
#define _prom_putchar(x)   ___prom_putchar(x)
 
#define _prom_getenv(x)   ___prom_getenv(x)
 
#define _prom_get_memconf(x)   ___prom_get_memconf(x)
 
#define _prom_get_hwconf(x)   ___prom_get_hwconf(x)
 

Functions

void prom_putchar (char c)
 
charprom_getenv (char *s)
 
voidprom_get_hwconf (void)
 
void __init prom_free_prom_memory (void)
 
const charget_system_type (void)
 
void __init prom_init (void)
 

Variables

charsystem_type = "Unknown"
 

Macro Definition Documentation

#define ___prom_get_hwconf   ((u32 (*)(void))PROM_ENTRY(PROM_GET_HWCONF))

Definition at line 39 of file sniprom.c.

#define ___prom_get_memconf   ((void (*)(void *))PROM_ENTRY(PROM_GET_MEMCONF))

Definition at line 38 of file sniprom.c.

#define ___prom_getenv   ((char *(*)(char *))PROM_ENTRY(PROM_GETENV))

Definition at line 37 of file sniprom.c.

#define ___prom_putchar   ((int *(*)(int))PROM_ENTRY(PROM_PUTCHAR))

Definition at line 36 of file sniprom.c.

#define _prom_get_hwconf (   x)    ___prom_get_hwconf(x)

Definition at line 63 of file sniprom.c.

#define _prom_get_memconf (   x)    ___prom_get_memconf(x)

Definition at line 62 of file sniprom.c.

#define _prom_getenv (   x)    ___prom_getenv(x)

Definition at line 61 of file sniprom.c.

#define _prom_putchar (   x)    ___prom_putchar(x)

Definition at line 60 of file sniprom.c.

#define PROM_ENTRY (   x)    (PROM_VEC + (x))

Definition at line 34 of file sniprom.c.

#define PROM_GET_HWCONF   61

Definition at line 31 of file sniprom.c.

#define PROM_GET_MEMCONF   58

Definition at line 30 of file sniprom.c.

#define PROM_VEC   (u64 *)CKSEG1ADDR(0x1fc00000)

Definition at line 33 of file sniprom.c.

Function Documentation

const char* get_system_type ( void  )

Definition at line 96 of file sniprom.c.

void __init prom_free_prom_memory ( void  )

Definition at line 87 of file sniprom.c.

void* prom_get_hwconf ( void  )

Definition at line 77 of file sniprom.c.

char* prom_getenv ( char s)

Definition at line 72 of file sniprom.c.

void __init prom_init ( void  )

Early entry point for arch setup

Definition at line 137 of file sniprom.c.

void prom_putchar ( char  c)

Definition at line 66 of file sniprom.c.

Variable Documentation

char* system_type = "Unknown"

Definition at line 95 of file sniprom.c.