Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cvmx-sysinfo.h File Reference

Go to the source code of this file.

Data Structures

struct  cvmx_sysinfo
 

Macros

#define OCTEON_SERIAL_LEN   20
 

Functions

struct cvmx_sysinfocvmx_sysinfo_get (void)
 
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)
 

Macro Definition Documentation

#define OCTEON_SERIAL_LEN   20

Definition at line 35 of file cvmx-sysinfo.h.

Function Documentation

struct cvmx_sysinfo* cvmx_sysinfo_get ( void  )
read

This function returns the system/board information as obtained by the bootloader.

Returns Pointer to the boot information structure

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.