Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
planetcore.h File Reference
#include "types.h"

Go to the source code of this file.

Macros

#define PLANETCORE_KEY_BOARD_TYPE   "BO"
 
#define PLANETCORE_KEY_BOARD_REV   "BR"
 
#define PLANETCORE_KEY_MB_RAM   "D1"
 
#define PLANETCORE_KEY_MAC_ADDR   "EA"
 
#define PLANETCORE_KEY_FLASH_SPEED   "FS"
 
#define PLANETCORE_KEY_IP_ADDR   "IP"
 
#define PLANETCORE_KEY_KB_NVRAM   "NV"
 
#define PLANETCORE_KEY_PROCESSOR   "PR"
 
#define PLANETCORE_KEY_PROC_VARIANT   "PV"
 
#define PLANETCORE_KEY_SERIAL_BAUD   "SB"
 
#define PLANETCORE_KEY_SERIAL_PORT   "SP"
 
#define PLANETCORE_KEY_SWITCH   "SW"
 
#define PLANETCORE_KEY_TEMP_OFFSET   "TC"
 
#define PLANETCORE_KEY_TARGET_IP   "TIP"
 
#define PLANETCORE_KEY_CRYSTAL_HZ   "XT"
 

Functions

void planetcore_prepare_table (char *table)
 
const charplanetcore_get_key (const char *table, const char *key)
 
int planetcore_get_decimal (const char *table, const char *key, u64 *val)
 
int planetcore_get_hex (const char *table, const char *key, u64 *val)
 
void planetcore_set_mac_addrs (const char *table)
 
void planetcore_set_stdout_path (const char *table)
 
void planetcore_set_serial_speed (const char *table)
 

Macro Definition Documentation

#define PLANETCORE_KEY_BOARD_REV   "BR"

Definition at line 7 of file planetcore.h.

#define PLANETCORE_KEY_BOARD_TYPE   "BO"

Definition at line 6 of file planetcore.h.

#define PLANETCORE_KEY_CRYSTAL_HZ   "XT"

Definition at line 20 of file planetcore.h.

#define PLANETCORE_KEY_FLASH_SPEED   "FS"

Definition at line 10 of file planetcore.h.

#define PLANETCORE_KEY_IP_ADDR   "IP"

Definition at line 11 of file planetcore.h.

#define PLANETCORE_KEY_KB_NVRAM   "NV"

Definition at line 12 of file planetcore.h.

#define PLANETCORE_KEY_MAC_ADDR   "EA"

Definition at line 9 of file planetcore.h.

#define PLANETCORE_KEY_MB_RAM   "D1"

Definition at line 8 of file planetcore.h.

#define PLANETCORE_KEY_PROC_VARIANT   "PV"

Definition at line 14 of file planetcore.h.

#define PLANETCORE_KEY_PROCESSOR   "PR"

Definition at line 13 of file planetcore.h.

#define PLANETCORE_KEY_SERIAL_BAUD   "SB"

Definition at line 15 of file planetcore.h.

#define PLANETCORE_KEY_SERIAL_PORT   "SP"

Definition at line 16 of file planetcore.h.

#define PLANETCORE_KEY_SWITCH   "SW"

Definition at line 17 of file planetcore.h.

#define PLANETCORE_KEY_TARGET_IP   "TIP"

Definition at line 19 of file planetcore.h.

#define PLANETCORE_KEY_TEMP_OFFSET   "TC"

Definition at line 18 of file planetcore.h.

Function Documentation

int planetcore_get_decimal ( const char table,
const char key,
u64 val 
)

Definition at line 55 of file planetcore.c.

int planetcore_get_hex ( const char table,
const char key,
u64 val 
)

Definition at line 65 of file planetcore.c.

const char* planetcore_get_key ( const char table,
const char key 
)

Definition at line 41 of file planetcore.c.

void planetcore_prepare_table ( char table)

Definition at line 29 of file planetcore.c.

void planetcore_set_mac_addrs ( const char table)

Definition at line 82 of file planetcore.c.

void planetcore_set_serial_speed ( const char table)

Definition at line 135 of file planetcore.c.

void planetcore_set_stdout_path ( const char table)

Definition at line 107 of file planetcore.c.