Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
prom.h File Reference
#include <linux/types.h>
#include <asm/addrspace.h>

Go to the source code of this file.

Data Structures

struct  memmap
 

Macros

#define VEC_RESET   (u64 *)CKSEG1ADDR(0x1fc00000)
 
#define PMAX_PROM_ENTRY(x)   (VEC_RESET + (x)) /* Prom jump table */
 
#define PMAX_PROM_HALT   PMAX_PROM_ENTRY(2) /* valid on MIPSen */
 
#define PMAX_PROM_AUTOBOOT   PMAX_PROM_ENTRY(5) /* valid on MIPSen */
 
#define PMAX_PROM_OPEN   PMAX_PROM_ENTRY(6)
 
#define PMAX_PROM_READ   PMAX_PROM_ENTRY(7)
 
#define PMAX_PROM_CLOSE   PMAX_PROM_ENTRY(10)
 
#define PMAX_PROM_LSEEK   PMAX_PROM_ENTRY(11)
 
#define PMAX_PROM_GETCHAR   PMAX_PROM_ENTRY(12)
 
#define PMAX_PROM_PUTCHAR   PMAX_PROM_ENTRY(13) /* 12 on MIPSen */
 
#define PMAX_PROM_GETS   PMAX_PROM_ENTRY(15)
 
#define PMAX_PROM_PRINTF   PMAX_PROM_ENTRY(17)
 
#define PMAX_PROM_GETENV   PMAX_PROM_ENTRY(33) /* valid on MIPSen */
 
#define REX_PROM_MAGIC   0x30464354
 
#define prom_is_rex(magic)   ((magic) == REX_PROM_MAGIC)
 
#define REX_PROM_GETBITMAP   0x84/4 /* get mem bitmap */
 
#define REX_PROM_GETCHAR   0x24/4 /* getch() */
 
#define REX_PROM_GETENV   0x64/4 /* get env. variable */
 
#define REX_PROM_GETSYSID   0x80/4 /* get system id */
 
#define REX_PROM_GETTCINFO   0xa4/4
 
#define REX_PROM_PRINTF   0x30/4 /* printf() */
 
#define REX_PROM_SLOTADDR   0x6c/4 /* slotaddr */
 
#define REX_PROM_BOOTINIT   0x54/4 /* open() */
 
#define REX_PROM_BOOTREAD   0x58/4 /* read() */
 
#define REX_PROM_CLEARCACHE   0x7c/4
 
#define rex_bootinit   __rex_bootinit
 
#define rex_bootread   __rex_bootread
 
#define rex_getbitmap   __rex_getbitmap
 
#define rex_slot_address   __rex_slot_address
 
#define rex_gettcinfo   __rex_gettcinfo
 
#define rex_getsysid   __rex_getsysid
 
#define rex_clear_cache   __rex_clear_cache
 
#define prom_getchar   __prom_getchar
 
#define prom_getenv   __prom_getenv
 
#define prom_printf   __prom_printf
 
#define pmax_open   __pmax_open
 
#define pmax_lseek   __pmax_lseek
 
#define pmax_read   __pmax_read
 
#define pmax_close   __pmax_close
 

Functions

void prom_meminit (u32)
 
void prom_identify_arch (u32)
 
void prom_init_cmdline (s32, s32 *, u32)
 
void register_prom_console (void)
 
void unregister_prom_console (void)
 

Variables

int(* __rex_bootinit )(void)
 
int(* __rex_bootread )(void)
 
int(* __rex_getbitmap )(memmap *)
 
unsigned long *(* __rex_slot_address )(int)
 
void *(* __rex_gettcinfo )(void)
 
int(* __rex_getsysid )(void)
 
void(* __rex_clear_cache )(void)
 
int(* __prom_getchar )(void)
 
char *(* __prom_getenv )(char *)
 
int(* __prom_printf )(char *,...)
 
int(* __pmax_open )(char *, int)
 
int(* __pmax_lseek )(int, long, int)
 
int(* __pmax_read )(int, void *, int)
 
int(* __pmax_close )(int)
 

Macro Definition Documentation

#define pmax_close   __pmax_close

Definition at line 162 of file prom.h.

#define pmax_lseek   __pmax_lseek

Definition at line 160 of file prom.h.

#define pmax_open   __pmax_open

Definition at line 159 of file prom.h.

#define PMAX_PROM_AUTOBOOT   PMAX_PROM_ENTRY(5) /* valid on MIPSen */

Definition at line 32 of file prom.h.

#define PMAX_PROM_CLOSE   PMAX_PROM_ENTRY(10)

Definition at line 35 of file prom.h.

#define PMAX_PROM_ENTRY (   x)    (VEC_RESET + (x)) /* Prom jump table */

Definition at line 29 of file prom.h.

#define PMAX_PROM_GETCHAR   PMAX_PROM_ENTRY(12)

Definition at line 37 of file prom.h.

#define PMAX_PROM_GETENV   PMAX_PROM_ENTRY(33) /* valid on MIPSen */

Definition at line 41 of file prom.h.

#define PMAX_PROM_GETS   PMAX_PROM_ENTRY(15)

Definition at line 39 of file prom.h.

#define PMAX_PROM_HALT   PMAX_PROM_ENTRY(2) /* valid on MIPSen */

Definition at line 31 of file prom.h.

#define PMAX_PROM_LSEEK   PMAX_PROM_ENTRY(11)

Definition at line 36 of file prom.h.

#define PMAX_PROM_OPEN   PMAX_PROM_ENTRY(6)

Definition at line 33 of file prom.h.

#define PMAX_PROM_PRINTF   PMAX_PROM_ENTRY(17)

Definition at line 40 of file prom.h.

#define PMAX_PROM_PUTCHAR   PMAX_PROM_ENTRY(13) /* 12 on MIPSen */

Definition at line 38 of file prom.h.

#define PMAX_PROM_READ   PMAX_PROM_ENTRY(7)

Definition at line 34 of file prom.h.

#define pmax_read   __pmax_read

Definition at line 161 of file prom.h.

#define prom_getchar   __prom_getchar

Definition at line 155 of file prom.h.

#define prom_getenv   __prom_getenv

Definition at line 156 of file prom.h.

#define prom_is_rex (   magic)    ((magic) == REX_PROM_MAGIC)

Definition at line 56 of file prom.h.

#define prom_printf   __prom_printf

Definition at line 157 of file prom.h.

#define rex_bootinit   __rex_bootinit

Definition at line 147 of file prom.h.

#define rex_bootread   __rex_bootread

Definition at line 148 of file prom.h.

#define rex_clear_cache   __rex_clear_cache

Definition at line 153 of file prom.h.

#define rex_getbitmap   __rex_getbitmap

Definition at line 149 of file prom.h.

#define rex_getsysid   __rex_getsysid

Definition at line 152 of file prom.h.

#define rex_gettcinfo   __rex_gettcinfo

Definition at line 151 of file prom.h.

#define REX_PROM_BOOTINIT   0x54/4 /* open() */

Definition at line 72 of file prom.h.

#define REX_PROM_BOOTREAD   0x58/4 /* read() */

Definition at line 73 of file prom.h.

#define REX_PROM_CLEARCACHE   0x7c/4

Definition at line 74 of file prom.h.

#define REX_PROM_GETBITMAP   0x84/4 /* get mem bitmap */

Definition at line 65 of file prom.h.

#define REX_PROM_GETCHAR   0x24/4 /* getch() */

Definition at line 66 of file prom.h.

#define REX_PROM_GETENV   0x64/4 /* get env. variable */

Definition at line 67 of file prom.h.

#define REX_PROM_GETSYSID   0x80/4 /* get system id */

Definition at line 68 of file prom.h.

#define REX_PROM_GETTCINFO   0xa4/4

Definition at line 69 of file prom.h.

#define REX_PROM_MAGIC   0x30464354

Definition at line 48 of file prom.h.

#define REX_PROM_PRINTF   0x30/4 /* printf() */

Definition at line 70 of file prom.h.

#define REX_PROM_SLOTADDR   0x6c/4 /* slotaddr */

Definition at line 71 of file prom.h.

#define rex_slot_address   __rex_slot_address

Definition at line 150 of file prom.h.

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

Definition at line 26 of file prom.h.

Function Documentation

void prom_identify_arch ( u32  )

Definition at line 114 of file identify.c.

void prom_init_cmdline ( s32  ,
s32 ,
u32   
)

Definition at line 17 of file cmdline.c.

void prom_meminit ( u32  )

Definition at line 87 of file memory.c.

void register_prom_console ( void  )

Definition at line 42 of file console.c.

void unregister_prom_console ( void  )

Variable Documentation

int(* __pmax_close)(int)

Definition at line 36 of file init.c.

int(* __pmax_lseek)(int, long, int)

Definition at line 34 of file init.c.

int(* __pmax_open)(char *, int)

Definition at line 33 of file init.c.

int(* __pmax_read)(int, void *, int)

Definition at line 35 of file init.c.

int(* __prom_getchar)(void)

Definition at line 29 of file init.c.

char*(* __prom_getenv)(char *)

Definition at line 30 of file init.c.

int(* __prom_printf)(char *,...)

Definition at line 31 of file init.c.

int(* __rex_bootinit)(void)

Definition at line 21 of file init.c.

int(* __rex_bootread)(void)

Definition at line 22 of file init.c.

void(* __rex_clear_cache)(void)

Definition at line 27 of file init.c.

int(* __rex_getbitmap)(memmap *)

Definition at line 23 of file init.c.

int(* __rex_getsysid)(void)

Definition at line 26 of file init.c.

void*(* __rex_gettcinfo)(void)

Definition at line 25 of file init.c.

unsigned long*(* __rex_slot_address)(int)

Definition at line 24 of file init.c.