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/export.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/utsname.h>
#include <linux/initrd.h>
#include <linux/console.h>
#include <linux/bootmem.h>
#include <linux/seq_file.h>
#include <linux/screen_info.h>
#include <linux/init.h>
#include <linux/kexec.h>
#include <linux/of_fdt.h>
#include <linux/cpu.h>
#include <linux/interrupt.h>
#include <linux/smp.h>
#include <linux/proc_fs.h>
#include <linux/memblock.h>
#include <linux/bug.h>
#include <linux/compiler.h>
#include <linux/sort.h>
#include <asm/unified.h>
#include <asm/cp15.h>
#include <asm/cpu.h>
#include <asm/cputype.h>
#include <asm/elf.h>
#include <asm/procinfo.h>
#include <asm/sections.h>
#include <asm/setup.h>
#include <asm/smp_plat.h>
#include <asm/mach-types.h>
#include <asm/cacheflush.h>
#include <asm/cachetype.h>
#include <asm/tlbflush.h>
#include <asm/prom.h>
#include <asm/mach/arch.h>
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
#include <asm/system_info.h>
#include <asm/system_misc.h>
#include <asm/traps.h>
#include <asm/unwind.h>
#include <asm/memblock.h>
#include <asm/virt.h>
#include "atags.h"
#include "tcm.h"

Go to the source code of this file.

Data Structures

struct  stack
 

Macros

#define ENDIANNESS   ((char)endian_test.l)
 
#define video_ram   mem_res[0]
 
#define kernel_code   mem_res[1]
 
#define kernel_data   mem_res[2]
 
#define lp0   io_res[0]
 
#define lp1   io_res[1]
 
#define lp2   io_res[2]
 
#define PLC   "I"
 

Functions

void paging_init (struct machine_desc *desc)
 
void sanity_check_meminfo (void)
 
void reboot_setup (char *str)
 
void setup_dma_zone (struct machine_desc *desc)
 
 EXPORT_SYMBOL (processor_id)
 
 EXPORT_SYMBOL (__machine_arch_type)
 
 EXPORT_SYMBOL (cacheid)
 
 EXPORT_SYMBOL (system_rev)
 
 EXPORT_SYMBOL (system_serial_low)
 
 EXPORT_SYMBOL (system_serial_high)
 
 EXPORT_SYMBOL (elf_hwcap)
 
 EXPORT_SYMBOL (elf_platform)
 
 DEFINE_PER_CPU (struct cpuinfo_arm, cpu_data)
 
int __pure cpu_architecture (void)
 
struct proc_info_list * lookup_processor_type (unsigned int)
 
void __init early_print (const char *str,...)
 
void cpu_init (void)
 
void __init smp_setup_processor_id (void)
 
void __init dump_machine_table (void)
 
int __init arm_add_memory (phys_addr_t start, phys_addr_t size)
 
 early_param ("mem", early_mem)
 
 arch_initcall (customize_machine)
 
 late_initcall (init_machine_late)
 
void __init hyp_mode_check (void)
 
void __init setup_arch (char **cmdline_p)
 
 subsys_initcall (topology_init)
 

Variables

unsigned int processor_id
 
unsigned int __machine_arch_type __read_mostly = CPU_ARCH_UNKNOWN
 
unsigned int __atags_pointer __initdata = { { 'l', '?', '?', 'b' } }
 
unsigned int system_rev
 
unsigned int system_serial_low
 
unsigned int system_serial_high
 
struct stack ____cacheline_aligned
 
char elf_platform [ELF_PLATFORM_SIZE]
 
int __cpu_logical_map [NR_CPUS]
 
struct seq_operations cpuinfo_op
 

Macro Definition Documentation

#define ENDIANNESS   ((char)endian_test.l)

Definition at line 142 of file setup.c.

#define kernel_code   mem_res[1]

Definition at line 171 of file setup.c.

#define kernel_data   mem_res[2]

Definition at line 172 of file setup.c.

#define lp0   io_res[0]

Definition at line 195 of file setup.c.

#define lp1   io_res[1]

Definition at line 196 of file setup.c.

#define lp2   io_res[2]

Definition at line 197 of file setup.c.

#define PLC   "I"
#define video_ram   mem_res[0]

Definition at line 170 of file setup.c.

Function Documentation

arch_initcall ( customize_machine  )
int __init arm_add_memory ( phys_addr_t  start,
phys_addr_t  size 
)

Definition at line 503 of file setup.c.

int __pure cpu_architecture ( void  )

Definition at line 252 of file setup.c.

void cpu_init ( void  )

Definition at line 376 of file setup.c.

DEFINE_PER_CPU ( struct cpuinfo_arm  ,
cpu_data   
)
void __init dump_machine_table ( void  )

Definition at line 489 of file setup.c.

early_param ( "mem"  ,
early_mem   
)
void __init early_print ( const char str,
  ... 
)

Definition at line 340 of file setup.c.

EXPORT_SYMBOL ( processor_id  )
EXPORT_SYMBOL ( __machine_arch_type  )
EXPORT_SYMBOL ( cacheid  )
EXPORT_SYMBOL ( system_rev  )
EXPORT_SYMBOL ( system_serial_low  )
EXPORT_SYMBOL ( system_serial_high  )
EXPORT_SYMBOL ( elf_hwcap  )
EXPORT_SYMBOL ( elf_platform  )
void __init hyp_mode_check ( void  )

Definition at line 707 of file setup.c.

late_initcall ( init_machine_late  )
struct proc_info_list* lookup_processor_type ( unsigned  int)
read
void paging_init ( struct machine_desc desc)

Definition at line 1211 of file mmu.c.

void reboot_setup ( char str)

Definition at line 232 of file process.c.

void sanity_check_meminfo ( void  )

Definition at line 912 of file mmu.c.

void __init setup_arch ( char **  cmdline_p)

Definition at line 722 of file setup.c.

void setup_dma_zone ( struct machine_desc desc)

Definition at line 230 of file init.c.

void __init smp_setup_processor_id ( void  )

Definition at line 426 of file setup.c.

subsys_initcall ( topology_init  )

Variable Documentation

int __cpu_logical_map[NR_CPUS]

Definition at line 424 of file setup.c.

union { ... } __initdata

Definition at line 86 of file setup.c.

int __cpu_architecture __read_mostly = CPU_ARCH_UNKNOWN

Definition at line 81 of file setup.c.

u8 c

Definition at line 141 of file setup.c.

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

Definition at line 920 of file setup.c.

char elf_platform[ELF_PLATFORM_SIZE]

Definition at line 133 of file setup.c.

short l

Definition at line 141 of file setup.c.

unsigned int processor_id

Definition at line 79 of file setup.c.

unsigned int system_rev

Definition at line 88 of file setup.c.

unsigned int system_serial_high

Definition at line 94 of file setup.c.

unsigned int system_serial_low

Definition at line 91 of file setup.c.