FSP 1.0: Fix CAR issues - broken timestamps and console
[coreboot.git] / src / include / bootmode.h
blob9feb5af008d08827db2cc4e344c1848672c60277
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef __BOOTMODE_H__
17 #define __BOOTMODE_H__
19 /* functions implemented per mainboard: */
20 void init_bootmode_straps(void);
21 int get_write_protect_state(void);
22 int get_sw_write_protect_state(void);
23 int get_developer_mode_switch(void);
24 int get_recovery_mode_switch(void);
25 int clear_recovery_mode_switch(void);
26 int get_wipeout_mode_switch(void);
27 int get_lid_switch(void);
30 /* Return 1 if display initialization is required. 0 if not. */
31 int display_init_required(void);
32 int gfx_get_init_done(void);
33 void gfx_set_init_done(int done);
35 #if CONFIG_BOOTMODE_STRAPS
36 int developer_mode_enabled(void);
37 int recovery_mode_enabled(void);
38 #else
39 static inline int recovery_mode_enabled(void) { return 0; }
40 static inline int developer_mode_enabled(void) { return 0; }
41 #endif
43 #endif /* __BOOTMODE_H__ */