Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
setup.c File Reference
#include <linux/init.h>
#include <linux/console.h>
#include <linux/delay.h>
#include <linux/export.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/serial.h>
#include <linux/smp.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/tty.h>
#include <linux/time.h>
#include <linux/platform_device.h>
#include <linux/serial_core.h>
#include <linux/serial_8250.h>
#include <linux/of_fdt.h>
#include <linux/libfdt.h>
#include <asm/processor.h>
#include <asm/reboot.h>
#include <asm/smp-ops.h>
#include <asm/irq_cpu.h>
#include <asm/mipsregs.h>
#include <asm/bootinfo.h>
#include <asm/sections.h>
#include <asm/time.h>
#include <asm/octeon/octeon.h>
#include <asm/octeon/pci-octeon.h>
#include <asm/octeon/cvmx-mio-defs.h>

Go to the source code of this file.

Functions

 EXPORT_SYMBOL (octeon_bootinfo)
 
asmlinkage void handle_int (void)
 
asmlinkage void plat_irq_dispatch (void)
 
int octeon_is_simulation (void)
 
 EXPORT_SYMBOL (octeon_is_simulation)
 
int octeon_is_pci_host (void)
 
uint64_t octeon_get_clock_rate (void)
 
 EXPORT_SYMBOL (octeon_get_clock_rate)
 
u64 octeon_get_io_clock_rate (void)
 
 EXPORT_SYMBOL (octeon_get_io_clock_rate)
 
void octeon_write_lcd (const char *s)
 
int octeon_get_boot_uart (void)
 
int octeon_get_boot_coremask (void)
 
void octeon_check_cpu_bist (void)
 
const charocteon_board_type_string (void)
 
const charget_system_type (void)
 
void __init prom_init (void)
 
void __init plat_mem_setup (void)
 
int prom_putchar (char c)
 
 EXPORT_SYMBOL (prom_putchar)
 
void prom_free_prom_memory (void)
 
int octeon_prune_device_tree (void)
 
void __init device_tree_init (void)
 

Variables

struct plat_smp_ops octeon_smp_ops
 
struct octeon_boot_descriptorocteon_boot_desc_ptr
 
struct cvmx_bootinfoocteon_bootinfo
 
const char __dtb_octeon_3xxx_begin
 
const char __dtb_octeon_3xxx_end
 
const char __dtb_octeon_68xx_begin
 
const char __dtb_octeon_68xx_end
 

Function Documentation

void __init device_tree_init ( void  )

Definition at line 788 of file setup.c.

EXPORT_SYMBOL ( octeon_bootinfo  )
EXPORT_SYMBOL ( octeon_is_simulation  )
EXPORT_SYMBOL ( octeon_get_clock_rate  )
EXPORT_SYMBOL ( octeon_get_io_clock_rate  )
EXPORT_SYMBOL ( prom_putchar  )
const char* get_system_type ( void  )

Definition at line 285 of file setup.c.

asmlinkage void handle_int ( void  )
const char* octeon_board_type_string ( void  )

Handle all the error condition interrupts that might occur. Return a string representing the system type

Returns

Definition at line 276 of file setup.c.

void octeon_check_cpu_bist ( void  )

Check the hardware BIST results for a CPU

Definition at line 171 of file setup.c.

int octeon_get_boot_coremask ( void  )

Get the coremask Linux was booted on.

Returns Core mask

Definition at line 163 of file setup.c.

int octeon_get_boot_uart ( void  )

Return the console uart passed by the bootloader

Returns uart (0 or 1)

Definition at line 146 of file setup.c.

uint64_t octeon_get_clock_rate ( void  )

Get the clock rate of Octeon

Returns Clock rate in HZ

Definition at line 100 of file setup.c.

u64 octeon_get_io_clock_rate ( void  )

Definition at line 110 of file setup.c.

int octeon_is_pci_host ( void  )

Return true if Octeon is in PCI Host mode. This means Linux can control the PCI bus.

Returns Non zero if Octeon in host mode.

Definition at line 86 of file setup.c.

int octeon_is_simulation ( void  )

Return non zero if we are currently running in the Octeon simulator

Returns

Definition at line 74 of file setup.c.

int octeon_prune_device_tree ( void  )

Definition at line 452 of file octeon-platform.c.

void octeon_write_lcd ( const char s)

Write to the LCD display connected to the bootbus. This display exists on most Cavium evaluation boards. If it doesn't exist, then this function doesn't do anything.

: String to write

Definition at line 124 of file setup.c.

asmlinkage void plat_irq_dispatch ( void  )

Definition at line 993 of file irq.c.

void __init plat_mem_setup ( void  )

Definition at line 640 of file setup.c.

void prom_free_prom_memory ( void  )

Definition at line 744 of file setup.c.

void __init prom_init ( void  )

Early entry point for arch setup

Definition at line 415 of file setup.c.

int prom_putchar ( char  c)

Definition at line 729 of file setup.c.

Variable Documentation

const char __dtb_octeon_3xxx_begin
const char __dtb_octeon_3xxx_end
const char __dtb_octeon_68xx_begin
const char __dtb_octeon_68xx_end
struct octeon_boot_descriptor* octeon_boot_desc_ptr

Definition at line 54 of file setup.c.

struct cvmx_bootinfo* octeon_bootinfo

Definition at line 56 of file setup.c.

struct plat_smp_ops octeon_smp_ops

Definition at line 406 of file smp.c.