Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
setup.c File Reference
#include <linux/delay.h>
#include <linux/console.h>
#include <linux/bootmem.h>
#include <linux/seq_file.h>
#include <linux/cpu.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/tty.h>
#include <linux/pfn.h>
#include <asm/cplb.h>
#include <asm/cacheflush.h>
#include <asm/blackfin.h>
#include <asm/cplbinit.h>
#include <asm/clocks.h>
#include <asm/div64.h>
#include <asm/cpu.h>
#include <asm/fixed_code.h>
#include <asm/early_printk.h>
#include <asm/irq_handler.h>
#include <asm/pda.h>

Go to the source code of this file.

Data Structures

struct  bfin_memmap
 
struct  bfin_memmap::bfin_memmap_entry
 
struct  change_member
 

Macros

#define BFIN_MEMMAP_MAX   128 /* number of entries in bfin_memmap */
 
#define BFIN_MEMMAP_RAM   1
 
#define BFIN_MEMMAP_RESERVED   2
 
#define EBSZ_TO_MEG(ebsz)
 

Functions

 EXPORT_SYMBOL (_bfin_swrst)
 
 EXPORT_SYMBOL (memory_start)
 
 EXPORT_SYMBOL (memory_end)
 
 EXPORT_SYMBOL (physical_mem_end)
 
 EXPORT_SYMBOL (_ramend)
 
 EXPORT_SYMBOL (reserved_mem_dcache_on)
 
 DEFINE_PER_CPU (struct blackfin_cpudata, cpu_data)
 
void __cpuinit bfin_setup_caches (unsigned int cpu)
 
void __cpuinit bfin_setup_cpudata (unsigned int cpu)
 
void __init bfin_cache_init (void)
 
void __init bfin_relocate_l1_mem (void)
 
void __init find_min_max_pfn (void)
 
 __attribute__ ((weak))
 
void __init setup_arch (char **cmdline_p)
 
 subsys_initcall (topology_init)
 
 early_param ("clkin_hz=", early_init_clkin_hz)
 
u_long get_cclk (void)
 
 EXPORT_SYMBOL (get_cclk)
 
u_long get_sclk (void)
 
 EXPORT_SYMBOL (get_sclk)
 
unsigned long sclk_to_usecs (unsigned long sclk)
 
 EXPORT_SYMBOL (sclk_to_usecs)
 
unsigned long usecs_to_sclk (unsigned long usecs)
 
 EXPORT_SYMBOL (usecs_to_sclk)
 
void __init cmdline_init (const char *r0)
 

Variables

u16 _bfin_swrst
 
unsigned long memory_start
 
unsigned long memory_end
 
unsigned long physical_mem_end
 
unsigned long _rambase
 
unsigned long _ramstart
 
unsigned long _ramend
 
unsigned long reserved_mem_dcache_on
 
unsigned long reserved_mem_icache_on
 
char __initdata command_line [COMMAND_LINE_SIZE]
 
struct blackfin_initial_pda
__initdata 
initial_pda
 
struct seq_operations cpuinfo_op
 

Macro Definition Documentation

#define BFIN_MEMMAP_MAX   128 /* number of entries in bfin_memmap */

Definition at line 64 of file setup.c.

#define BFIN_MEMMAP_RAM   1

Definition at line 65 of file setup.c.

#define BFIN_MEMMAP_RESERVED   2

Definition at line 66 of file setup.c.

#define EBSZ_TO_MEG (   ebsz)
Value:
({ \
int meg = 0; \
switch (ebsz & 0xf) { \
case 0x1: meg = 16; break; \
case 0x3: meg = 32; break; \
case 0x5: meg = 64; break; \
case 0x7: meg = 128; break; \
case 0x9: meg = 256; break; \
case 0xb: meg = 512; break; \
} \
meg; \
})

Definition at line 805 of file setup.c.

Function Documentation

__attribute__ ( (weak)  )
read

Definition at line 888 of file setup.c.

void __init bfin_cache_init ( void  )

Definition at line 176 of file setup.c.

void __init bfin_relocate_l1_mem ( void  )

Definition at line 184 of file setup.c.

void __cpuinit bfin_setup_caches ( unsigned int  cpu)

Definition at line 102 of file setup.c.

void __cpuinit bfin_setup_cpudata ( unsigned int  cpu)

Definition at line 168 of file setup.c.

void __init cmdline_init ( const char r0)

Definition at line 1457 of file setup.c.

DEFINE_PER_CPU ( struct blackfin_cpudata  ,
cpu_data   
)
early_param ( )
EXPORT_SYMBOL ( _bfin_swrst  )
EXPORT_SYMBOL ( memory_start  )
EXPORT_SYMBOL ( memory_end  )
EXPORT_SYMBOL ( physical_mem_end  )
EXPORT_SYMBOL ( _ramend  )
EXPORT_SYMBOL ( reserved_mem_dcache_on  )
EXPORT_SYMBOL ( get_cclk  )
EXPORT_SYMBOL ( get_sclk  )
EXPORT_SYMBOL ( sclk_to_usecs  )
EXPORT_SYMBOL ( usecs_to_sclk  )
void __init find_min_max_pfn ( void  )

Definition at line 707 of file setup.c.

u_long get_cclk ( void  )

Definition at line 1164 of file setup.c.

u_long get_sclk ( void  )

Definition at line 1216 of file setup.c.

unsigned long sclk_to_usecs ( unsigned long  sclk)

Definition at line 1245 of file setup.c.

void __init setup_arch ( char **  cmdline_p)

Definition at line 909 of file setup.c.

subsys_initcall ( topology_init  )
unsigned long usecs_to_sclk ( unsigned long  usecs)

Definition at line 1253 of file setup.c.

Variable Documentation

u16 _bfin_swrst

Definition at line 39 of file setup.c.

unsigned long _rambase

Definition at line 43 of file setup.c.

unsigned long _ramend

Definition at line 43 of file setup.c.

unsigned long _ramstart

Definition at line 43 of file setup.c.

Definition at line 60 of file setup.c.

struct seq_operations cpuinfo_op
Initial value:
= {
.start = c_start,
.next = c_next,
.stop = c_stop,
.show = show_cpuinfo,
}

Definition at line 1450 of file setup.c.

Definition at line 61 of file setup.c.

unsigned long memory_end

Definition at line 42 of file setup.c.

unsigned long memory_start

Definition at line 42 of file setup.c.

unsigned long physical_mem_end

Definition at line 42 of file setup.c.

unsigned long reserved_mem_dcache_on

Definition at line 44 of file setup.c.

unsigned long reserved_mem_icache_on

Definition at line 45 of file setup.c.