Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
memory.c File Reference
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/bootmem.h>
#include <linux/pfn.h>
#include <linux/string.h>
#include <asm/bootinfo.h>
#include <asm/page.h>
#include <asm/sections.h>
#include <asm/mips-boards/prom.h>
#include <asm/mach-powertv/asic.h>
#include <asm/mach-powertv/ioremap.h>
#include "init.h"

Go to the source code of this file.

Data Structures

struct  low_mem_reserved
 
struct  mem_layout
 
struct  mem_layout_list
 

Macros

#define KIBIBYTE(n)   ((n) * 1024) /* Number of kibibytes */
 
#define MEBIBYTE(n)   ((n) * KIBIBYTE(1024)) /* Number of mebibytes */
 
#define DEFAULT_MEMSIZE   MEBIBYTE(128) /* If no memsize provided */
 
#define BLDR_SIZE   KIBIBYTE(256) /* Memory reserved for bldr */
 
#define RV_SIZE   MEBIBYTE(4) /* Size of reset vector */
 
#define LOW_MEM_END   0x20000000 /* Highest low memory address */
 
#define BLDR_ALIAS   0x10000000 /* Bootloader address */
 
#define RV_PHYS   0x1fc00000 /* Reset vector address */
 
#define LOW_RAM_END   RV_PHYS /* End of real RAM in low mem */
 
#define PHYS_TO_DMA(paddr)   ((paddr) + (CONFIG_LOW_RAM_DMA - LOW_RAM_ALIAS))
 

Functions

void __init prom_meminit (void)
 
void __init prom_free_prom_memory (void)
 

Variables

unsigned long ptv_memsize
 
struct low_mem_reserved low_mem_reserved []
 

Macro Definition Documentation

#define BLDR_ALIAS   0x10000000 /* Bootloader address */

Definition at line 47 of file memory.c.

#define BLDR_SIZE   KIBIBYTE(256) /* Memory reserved for bldr */

Definition at line 43 of file memory.c.

#define DEFAULT_MEMSIZE   MEBIBYTE(128) /* If no memsize provided */

Definition at line 41 of file memory.c.

#define KIBIBYTE (   n)    ((n) * 1024) /* Number of kibibytes */

Definition at line 39 of file memory.c.

#define LOW_MEM_END   0x20000000 /* Highest low memory address */

Definition at line 46 of file memory.c.

#define LOW_RAM_END   RV_PHYS /* End of real RAM in low mem */

Definition at line 49 of file memory.c.

#define MEBIBYTE (   n)    ((n) * KIBIBYTE(1024)) /* Number of mebibytes */

Definition at line 40 of file memory.c.

#define PHYS_TO_DMA (   paddr)    ((paddr) + (CONFIG_LOW_RAM_DMA - LOW_RAM_ALIAS))

Definition at line 55 of file memory.c.

#define RV_PHYS   0x1fc00000 /* Reset vector address */

Definition at line 48 of file memory.c.

#define RV_SIZE   MEBIBYTE(4) /* Size of reset vector */

Definition at line 44 of file memory.c.

Function Documentation

void __init prom_free_prom_memory ( void  )

Definition at line 341 of file memory.c.

void __init prom_meminit ( void  )

Definition at line 335 of file memory.c.

Variable Documentation

Initial value:
= {
{BLDR_ALIAS, BLDR_SIZE, true},
{RV_PHYS, RV_SIZE, false},
}

Definition at line 76 of file memory.c.

unsigned long ptv_memsize

Definition at line 57 of file memory.c.