2002-04-26 15:23:50 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2001
|
|
|
|
* Denis Peter, MPL AG Switzerland, d.peter@mpl.ch
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2002-04-26 15:23:50 +00:00
|
|
|
*/
|
|
|
|
#ifndef _COMMON_UTIL_H_
|
|
|
|
#define _COMMON_UTIL_H_
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char signature[4];
|
2008-05-20 14:00:29 +00:00
|
|
|
char serial_name[17]; /* "MIP405_1000xxxxx" */
|
2003-05-23 11:38:58 +00:00
|
|
|
char eth_addr[21]; /* "00:60:C2:0a:00:00" */
|
2002-04-26 15:23:50 +00:00
|
|
|
} backup_t;
|
|
|
|
|
2011-12-22 12:38:19 +00:00
|
|
|
extern flash_info_t flash_info[]; /* info for FLASH chips */
|
|
|
|
|
2002-04-26 15:23:50 +00:00
|
|
|
void get_backup_values(backup_t *buf);
|
2003-09-10 22:30:53 +00:00
|
|
|
|
2003-05-23 11:38:58 +00:00
|
|
|
#define BOOT_MPS 0x01
|
|
|
|
#define BOOT_PCI 0x02
|
2011-12-22 12:38:19 +00:00
|
|
|
int get_boot_mode(void);
|
|
|
|
void setup_cs_reloc(void);
|
2003-05-23 11:38:58 +00:00
|
|
|
|
2002-04-26 15:23:50 +00:00
|
|
|
void check_env(void);
|
|
|
|
|
|
|
|
#endif /* _COMMON_UTIL_H_ */
|