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 <generated/utsrelease.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/fb.h>
#include <linux/console.h>
#include <linux/genhd.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/major.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
#include <linux/seq_file.h>
#include <linux/serial.h>
#include <linux/serial_core.h>
#include <linux/serial_reg.h>
#include <linux/serial_8250.h>
#include <asm/setup.h>
#include <asm/irq.h>
#include <asm/sections.h>
#include <asm/pgalloc.h>
#include <asm/busctl-regs.h>
#include <asm/serial-regs.h>
#include <asm/timer-regs.h>
#include <asm/irc-regs.h>
#include <asm/spr-regs.h>
#include <asm/mb-regs.h>
#include <asm/mb93493-regs.h>
#include <asm/gdb-stub.h>
#include <asm/io.h>
#include "local.h"

Go to the source code of this file.

Data Structures

struct  clock_cmode
 

Macros

#define __pminit   __init
 
#define __pminitdata   __initdata
 
#define __pminitconst   __initconst
 
#define _frac(N, D)   ((N)<<4 | (D))
 
#define _x0_16   _frac(1,6)
 
#define _x0_25   _frac(1,4)
 
#define _x0_33   _frac(1,3)
 
#define _x0_375   _frac(3,8)
 
#define _x0_5   _frac(1,2)
 
#define _x0_66   _frac(2,3)
 
#define _x0_75   _frac(3,4)
 
#define _x1   _frac(1,1)
 
#define _x1_5   _frac(3,2)
 
#define _x2   _frac(2,1)
 
#define _x3   _frac(3,1)
 
#define _x4   _frac(4,1)
 
#define _x4_5   _frac(9,2)
 
#define _x6   _frac(6,1)
 
#define _x8   _frac(8,1)
 
#define _x9   _frac(9,1)
 
#define CLOCK_CMODES_PERMITTED_FR405   0xd31f
 
#define CLOCK(SRC, RATIO)   ((SRC) * (((RATIO) >> 4) & 0x0f) / ((RATIO) & 0x0f))
 
#define print_clk(TAG, VAR)   seq_printf(m, "Clock-" TAG ":\t%lu.%2.2lu MHz\n", VAR / 1000000, (VAR / 10000) % 100)
 

Functions

void __pminit determine_clocks (int verbose)
 
void __cpuinit calibrate_delay (void)
 
void __init setup_arch (char **cmdline_p)
 
void arch_gettod (int *year, int *mon, int *day, int *hour, int *min, int *sec)
 

Variables

const char __frv_unknown_system [] = "unknown"
 
const char __frv_mb93091_cb10 [] = "mb93091-cb10"
 
const char __frv_mb93091_cb11 [] = "mb93091-cb11"
 
const char __frv_mb93091_cb30 [] = "mb93091-cb30"
 
const char __frv_mb93091_cb41 [] = "mb93091-cb41"
 
const char __frv_mb93091_cb60 [] = "mb93091-cb60"
 
const char __frv_mb93091_cb70 [] = "mb93091-cb70"
 
const char __frv_mb93091_cb451 [] = "mb93091-cb451"
 
const char __frv_mb93090_mb00 [] = "mb93090-mb00"
 
const char __frv_mb93493 [] = "mb93493"
 
const char __frv_mb93093 [] = "mb93093"
 
unsigned long __nongprelbss pdm_suspend_mode
 
unsigned long __nongprelbss rom_length
 
unsigned long __nongprelbss memory_start
 
unsigned long __nongprelbss memory_end
 
unsigned long __nongprelbss dma_coherent_mem_start
 
unsigned long __nongprelbss dma_coherent_mem_end
 
unsigned long __initdata __sdram_old_base
 
unsigned long __initdata num_mappedpages
 
struct cpuinfo_frv __nongprelbss boot_cpu_data
 
char __initdata command_line [COMMAND_LINE_SIZE]
 
char __initdata redboot_command_line [COMMAND_LINE_SIZE]
 
int __nongprelbss clock_p0_current
 
int __nongprelbss clock_cm_current
 
int __nongprelbss clock_cmode_current
 
struct seq_operations cpuinfo_op
 

Macro Definition Documentation

#define __pminit   __init

Definition at line 117 of file setup.c.

#define __pminitconst   __initconst

Definition at line 119 of file setup.c.

#define __pminitdata   __initdata

Definition at line 118 of file setup.c.

#define _frac (   N,
  D 
)    ((N)<<4 | (D))

Definition at line 126 of file setup.c.

#define _x0_16   _frac(1,6)

Definition at line 127 of file setup.c.

#define _x0_25   _frac(1,4)

Definition at line 128 of file setup.c.

#define _x0_33   _frac(1,3)

Definition at line 129 of file setup.c.

#define _x0_375   _frac(3,8)

Definition at line 130 of file setup.c.

#define _x0_5   _frac(1,2)

Definition at line 131 of file setup.c.

#define _x0_66   _frac(2,3)

Definition at line 132 of file setup.c.

#define _x0_75   _frac(3,4)

Definition at line 133 of file setup.c.

#define _x1   _frac(1,1)

Definition at line 134 of file setup.c.

#define _x1_5   _frac(3,2)

Definition at line 135 of file setup.c.

#define _x2   _frac(2,1)

Definition at line 136 of file setup.c.

#define _x3   _frac(3,1)

Definition at line 137 of file setup.c.

#define _x4   _frac(4,1)

Definition at line 138 of file setup.c.

#define _x4_5   _frac(9,2)

Definition at line 139 of file setup.c.

#define _x6   _frac(6,1)

Definition at line 140 of file setup.c.

#define _x8   _frac(8,1)

Definition at line 141 of file setup.c.

#define _x9   _frac(9,1)

Definition at line 142 of file setup.c.

#define CLOCK (   SRC,
  RATIO 
)    ((SRC) * (((RATIO) >> 4) & 0x0f) / ((RATIO) & 0x0f))
#define CLOCK_CMODES_PERMITTED_FR405   0xd31f
#define print_clk (   TAG,
  VAR 
)    seq_printf(m, "Clock-" TAG ":\t%lu.%2.2lu MHz\n", VAR / 1000000, (VAR / 10000) % 100)

Function Documentation

void arch_gettod ( int year,
int mon,
int day,
int hour,
int min,
int sec 
)

Definition at line 1124 of file setup.c.

void __cpuinit calibrate_delay ( void  )

Definition at line 712 of file setup.c.

void __pminit determine_clocks ( int  verbose)

Definition at line 525 of file setup.c.

void __init setup_arch ( char **  cmdline_p)

Definition at line 755 of file setup.c.

Variable Documentation

const char __frv_mb93090_mb00[] = "mb93090-mb00"

Definition at line 78 of file setup.c.

const char __frv_mb93091_cb10[] = "mb93091-cb10"

Definition at line 71 of file setup.c.

const char __frv_mb93091_cb11[] = "mb93091-cb11"

Definition at line 72 of file setup.c.

const char __frv_mb93091_cb30[] = "mb93091-cb30"

Definition at line 73 of file setup.c.

const char __frv_mb93091_cb41[] = "mb93091-cb41"

Definition at line 74 of file setup.c.

const char __frv_mb93091_cb451[] = "mb93091-cb451"

Definition at line 77 of file setup.c.

const char __frv_mb93091_cb60[] = "mb93091-cb60"

Definition at line 75 of file setup.c.

const char __frv_mb93091_cb70[] = "mb93091-cb70"

Definition at line 76 of file setup.c.

const char __frv_mb93093[] = "mb93093"

Definition at line 82 of file setup.c.

const char __frv_mb93493[] = "mb93493"

Definition at line 80 of file setup.c.

const char __frv_unknown_system[] = "unknown"

Definition at line 70 of file setup.c.

unsigned long __initdata __sdram_old_base

Definition at line 104 of file setup.c.

struct cpuinfo_frv __nongprelbss boot_cpu_data

Definition at line 107 of file setup.c.

int __nongprelbss clock_cm_current

Definition at line 145 of file setup.c.

int __nongprelbss clock_cmode_current

Definition at line 146 of file setup.c.

int __nongprelbss clock_p0_current

Definition at line 144 of file setup.c.

Definition at line 109 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 1117 of file setup.c.

unsigned long __nongprelbss dma_coherent_mem_end

Definition at line 102 of file setup.c.

unsigned long __nongprelbss dma_coherent_mem_start

Definition at line 101 of file setup.c.

unsigned long __nongprelbss memory_end

Definition at line 99 of file setup.c.

unsigned long __nongprelbss memory_start

Definition at line 98 of file setup.c.

unsigned long __initdata num_mappedpages

Definition at line 105 of file setup.c.

unsigned long __nongprelbss pdm_suspend_mode

Definition at line 95 of file setup.c.

char __initdata redboot_command_line[COMMAND_LINE_SIZE]

Definition at line 110 of file setup.c.

unsigned long __nongprelbss rom_length

Definition at line 97 of file setup.c.