Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
prom.c File Reference
#include <linux/types.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/ioport.h>
#include <asm/bootinfo.h>
#include <asm/lasat/lasat.h>
#include <asm/cpu.h>
#include "at93c.h"
#include <asm/lasat/eeprom.h>
#include "prom.h"

Go to the source code of this file.

Macros

#define RESET_VECTOR   0xbfc00000
 
#define PROM_JUMP_TABLE_ENTRY(n)   (*((u32 *)(RESET_VECTOR + 0x20) + n))
 
#define PROM_DISPLAY_ADDR   PROM_JUMP_TABLE_ENTRY(0)
 
#define PROM_PUTC_ADDR   PROM_JUMP_TABLE_ENTRY(1)
 
#define PROM_MONITOR_ADDR   PROM_JUMP_TABLE_ENTRY(2)
 

Functions

void prom_putchar (char c)
 
void __init prom_init (void)
 
void __init prom_free_prom_memory (void)
 
const charget_system_type (void)
 

Variables

void(* prom_display )(const char *string, int pos, int clear)
 
void(* prom_monitor )(void) = null_prom_monitor
 
unsigned int lasat_ndelay_divider
 

Macro Definition Documentation

#define PROM_DISPLAY_ADDR   PROM_JUMP_TABLE_ENTRY(0)

Definition at line 22 of file prom.c.

#define PROM_JUMP_TABLE_ENTRY (   n)    (*((u32 *)(RESET_VECTOR + 0x20) + n))

Definition at line 21 of file prom.c.

#define PROM_MONITOR_ADDR   PROM_JUMP_TABLE_ENTRY(2)

Definition at line 24 of file prom.c.

#define PROM_PUTC_ADDR   PROM_JUMP_TABLE_ENTRY(1)

Definition at line 23 of file prom.c.

#define RESET_VECTOR   0xbfc00000

Definition at line 20 of file prom.c.

Function Documentation

const char* get_system_type ( void  )

Definition at line 121 of file prom.c.

void __init prom_free_prom_memory ( void  )

Definition at line 117 of file prom.c.

void __init prom_init ( void  )

Early entry point for arch setup

Definition at line 82 of file prom.c.

void prom_putchar ( char  c)

Definition at line 41 of file prom.c.

Variable Documentation

unsigned int lasat_ndelay_divider

Definition at line 50 of file prom.c.

void(* prom_display)(const char *string, int pos, int clear)
Initial value:
=
null_prom_display

Definition at line 46 of file prom.c.

void(* prom_monitor)(void) = null_prom_monitor

Definition at line 48 of file prom.c.