]>
Commit | Line | Data |
---|---|---|
5f2d51b2 WD |
1 | /* |
2 | * (C) Copyright 2001 | |
3 | * Denis Peter, MPL AG Switzerland, d.peter@mpl.ch | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
5f2d51b2 WD |
6 | */ |
7 | #ifndef _COMMON_UTIL_H_ | |
8 | #define _COMMON_UTIL_H_ | |
9 | ||
10 | typedef struct { | |
11 | char signature[4]; | |
53677ef1 | 12 | char serial_name[17]; /* "MIP405_1000xxxxx" */ |
33149b88 | 13 | char eth_addr[21]; /* "00:60:C2:0a:00:00" */ |
5f2d51b2 WD |
14 | } backup_t; |
15 | ||
4b11dba9 DM |
16 | extern flash_info_t flash_info[]; /* info for FLASH chips */ |
17 | ||
5f2d51b2 | 18 | void get_backup_values(backup_t *buf); |
7205e407 | 19 | |
33149b88 WD |
20 | #define BOOT_MPS 0x01 |
21 | #define BOOT_PCI 0x02 | |
4b11dba9 DM |
22 | int get_boot_mode(void); |
23 | void setup_cs_reloc(void); | |
33149b88 | 24 | |
5f2d51b2 | 25 | void check_env(void); |
5f2d51b2 WD |
26 | |
27 | #endif /* _COMMON_UTIL_H_ */ |