summaryrefslogtreecommitdiffstats
path: root/src/include/console/cfr.h
blob: 899fb3e4646563c929107f3a4f62b3a448462a2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* SPDX-License-Identifier: GPL-2.0-only */

/*
 * CFR enums and structs for console
 */

#ifndef _CONSOLE_CFR_H_
#define _CONSOLE_CFR_H_

#include <drivers/option/cfr_frontend.h>

const struct sm_object debug_level = SM_DECLARE_ENUM({
	.opt_name	= "debug_level",
	.ui_name	= "Console Log Level",
	.ui_helptext	= "Set the verbosity of the coreboot console output.",
	.default_value	= CONFIG_DEFAULT_CONSOLE_LOGLEVEL,
	.values		= (const struct sm_enum_value[]) {
				{ "Emergency",		0		},
				{ "Alert",		1		},
				{ "Critical",		2		},
				{ "Error",		3		},
				{ "Warning",		4		},
				{ "Notice",		5		},
				{ "Info",		6		},
				{ "Debug",		7		},
				{ "Spew",		8		},
				SM_ENUM_VALUE_END			},
});

#endif /* _CONSOLE_CFR_H_ */