Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
cvmx-sysinfo.c File Reference
#include <linux/module.h>
#include <asm/octeon/cvmx.h>
#include <asm/octeon/cvmx-spinlock.h>
#include <asm/octeon/cvmx-sysinfo.h>

Go to the source code of this file.

Functions

struct cvmx_sysinfocvmx_sysinfo_get (void)
 
 EXPORT_SYMBOL (cvmx_sysinfo_get)
 
int cvmx_sysinfo_minimal_initialize (void *phy_mem_desc_ptr, uint16_t board_type, uint8_t board_rev_major, uint8_t board_rev_minor, uint32_t cpu_clock_hz)
 

Variables

uint64_t linux_mem32_min
 
uint64_t linux_mem32_max
 
uint64_t linux_mem32_wired
 
uint64_t linux_mem32_offset
 

Function Documentation

struct cvmx_sysinfo* cvmx_sysinfo_get ( void  )
read

This function returns the application information as obtained by the bootloader. This provides the core mask of the cores running the same application image, as well as the physical memory regions available to the core.

Returns Pointer to the boot information structure

Definition at line 69 of file cvmx-sysinfo.c.

int cvmx_sysinfo_minimal_initialize ( void phy_mem_desc_ptr,
uint16_t  board_type,
uint8_t  board_rev_major,
uint8_t  board_rev_minor,
uint32_t  cpu_clock_hz 
)

This function is used in non-simple executive environments (such as Linux kernel, u-boot, etc.) to configure the minimal fields that are required to use simple executive files directly.

Locking (if required) must be handled outside of this function

: Pointer to global physical memory descriptor (bootmem descriptor) : Octeon board type enumeration

: Board major revision : Board minor revision : CPU clock freqency in hertz

Returns 0: Failure 1: success

Definition at line 98 of file cvmx-sysinfo.c.

EXPORT_SYMBOL ( cvmx_sysinfo_get  )

Variable Documentation

uint64_t linux_mem32_max

Definition at line 56 of file cvmx-sysinfo.c.

uint64_t linux_mem32_min

Definition at line 55 of file cvmx-sysinfo.c.

uint64_t linux_mem32_offset

Definition at line 58 of file cvmx-sysinfo.c.

uint64_t linux_mem32_wired

Definition at line 57 of file cvmx-sysinfo.c.

Definition at line 44 of file cvmx-sysinfo.c.

Definition at line 43 of file cvmx-sysinfo.c.