• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/powerpc/boot/
1#ifndef _PPC_BOOT_PLANETCORE_H_
2#define _PPC_BOOT_PLANETCORE_H_
3
4#include "types.h"
5
6#define PLANETCORE_KEY_BOARD_TYPE   "BO"
7#define PLANETCORE_KEY_BOARD_REV    "BR"
8#define PLANETCORE_KEY_MB_RAM       "D1"
9#define PLANETCORE_KEY_MAC_ADDR     "EA"
10#define PLANETCORE_KEY_FLASH_SPEED  "FS"
11#define PLANETCORE_KEY_IP_ADDR      "IP"
12#define PLANETCORE_KEY_KB_NVRAM     "NV"
13#define PLANETCORE_KEY_PROCESSOR    "PR"
14#define PLANETCORE_KEY_PROC_VARIANT "PV"
15#define PLANETCORE_KEY_SERIAL_BAUD  "SB"
16#define PLANETCORE_KEY_SERIAL_PORT  "SP"
17#define PLANETCORE_KEY_SWITCH       "SW"
18#define PLANETCORE_KEY_TEMP_OFFSET  "TC"
19#define PLANETCORE_KEY_TARGET_IP    "TIP"
20#define PLANETCORE_KEY_CRYSTAL_HZ   "XT"
21
22/* Prepare the table for processing, by turning all newlines
23 * into NULL bytes.
24 */
25void planetcore_prepare_table(char *table);
26
27/* Return the value associated with a given key in text,
28 * decimal, or hex format.
29 *
30 * Returns zero/NULL on failure, non-zero on success.
31 */
32const char *planetcore_get_key(const char *table, const char *key);
33int planetcore_get_decimal(const char *table, const char *key, u64 *val);
34int planetcore_get_hex(const char *table, const char *key, u64 *val);
35
36/* Updates the device tree local-mac-address properties based
37 * on the EA tag.
38 */
39void planetcore_set_mac_addrs(const char *table);
40
41/* Sets the linux,stdout-path in the /chosen node.  This requires the
42 * linux,planetcore-label property in each serial node.
43 */
44void planetcore_set_stdout_path(const char *table);
45
46/* Sets the current-speed property in the serial node. */
47void planetcore_set_serial_speed(const char *table);
48
49#endif
50