Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
prpmc2800.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include "types.h"
#include "elf.h"
#include "page.h"
#include "string.h"
#include "stdio.h"
#include "io.h"
#include "ops.h"
#include "gunzip_util.h"
#include "mv64x60.h"

Go to the source code of this file.

Data Structures

struct  prpmc2800_board_info
 

Macros

#define KB   1024U
 
#define MB   (KB*KB)
 
#define GB   (KB*MB)
 
#define MHz   (1000U*1000U)
 
#define GHz   (1000U*MHz)
 
#define BOARD_MODEL   "PrPMC2800"
 
#define BOARD_MODEL_MAX   32 /* max strlen(BOARD_MODEL) + 1 */
 
#define EEPROM2_ADDR   0xa4
 
#define EEPROM3_ADDR   0xa8
 
#define MV64x60_MPP_CNTL_0   0xf000
 
#define MV64x60_MPP_CNTL_2   0xf008
 
#define MV64x60_GPP_IO_CNTL   0xf100
 
#define MV64x60_GPP_LEVEL_CNTL   0xf110
 
#define MV64x60_GPP_VALUE_SET   0xf118
 
#define HEAP_SIZE   (16*MB)
 

Enumerations

enum  prpmc2800_board_model { BOARD_MODEL_PRPMC280, BOARD_MODEL_PRPMC2800 }
 
enum  prpmc2800_bridge_type { BRIDGE_TYPE_MV64360, BRIDGE_TYPE_MV64362 }
 

Functions

 BSS_STACK (16 *KB)
 
void platform_init (unsigned long r3, unsigned long r4, unsigned long r5, unsigned long r6, unsigned long r7)
 
 asm (" .globl _zimage_start\n\ _zimage_start:\n\ mfmsr 10\n\ rlwinm 10,10,0,~(1<<15) /* Clear MSR_EE */\n\ sync\n\ mtmsr 10\n\ isync\n\ b _zimage_start_lib\n\ ")
 

Macro Definition Documentation

#define BOARD_MODEL   "PrPMC2800"

Definition at line 30 of file prpmc2800.c.

#define BOARD_MODEL_MAX   32 /* max strlen(BOARD_MODEL) + 1 */

Definition at line 31 of file prpmc2800.c.

#define EEPROM2_ADDR   0xa4

Definition at line 33 of file prpmc2800.c.

#define EEPROM3_ADDR   0xa8

Definition at line 34 of file prpmc2800.c.

#define GB   (KB*MB)

Definition at line 26 of file prpmc2800.c.

#define GHz   (1000U*MHz)

Definition at line 28 of file prpmc2800.c.

#define HEAP_SIZE   (16*MB)

Definition at line 510 of file prpmc2800.c.

#define KB   1024U

Definition at line 24 of file prpmc2800.c.

#define MB   (KB*KB)

Definition at line 25 of file prpmc2800.c.

#define MHz   (1000U*1000U)

Definition at line 27 of file prpmc2800.c.

#define MV64x60_GPP_IO_CNTL   0xf100

Definition at line 468 of file prpmc2800.c.

#define MV64x60_GPP_LEVEL_CNTL   0xf110

Definition at line 469 of file prpmc2800.c.

#define MV64x60_GPP_VALUE_SET   0xf118

Definition at line 470 of file prpmc2800.c.

#define MV64x60_MPP_CNTL_0   0xf000

Definition at line 466 of file prpmc2800.c.

#define MV64x60_MPP_CNTL_2   0xf008

Definition at line 467 of file prpmc2800.c.

Enumeration Type Documentation

Enumerator:
BOARD_MODEL_PRPMC280 
BOARD_MODEL_PRPMC2800 

Definition at line 40 of file prpmc2800.c.

Enumerator:
BRIDGE_TYPE_MV64360 
BRIDGE_TYPE_MV64362 

Definition at line 45 of file prpmc2800.c.

Function Documentation

asm ( " .globl _zimage_start\n\ _zimage_start:\n\ mfmsr 10\n\ rlwinm  10,
10  ,
,
~(1<< 15)/*Clear MSR_EE */\n\sync\n\mtmsr 10\n\isync\n\b _zimage_start_lib\n\"   
)
BSS_STACK ( 16 *  KB)
void platform_init ( unsigned long  r3,
unsigned long  r4,
unsigned long  r5,
unsigned long  r6,
unsigned long  r7 
)

Definition at line 513 of file prpmc2800.c.