src/include: Open brace on same line as enum or struct
[coreboot.git] / src / include / bootmode.h
blobdb40a6de55060a97772dc9fd25a3fcfb99ac9d95
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 get_recovery_mode_retrain_switch(void);
26 int clear_recovery_mode_switch(void);
27 void log_recovery_mode_switch(void);
28 int get_wipeout_mode_switch(void);
29 int get_lid_switch(void);
31 /* Return 1 if display initialization is required. 0 if not. */
32 int display_init_required(void);
33 int gfx_get_init_done(void);
34 void gfx_set_init_done(int done);
36 #endif /* __BOOTMODE_H__ */