File: op-panel.h

package info (click to toggle)
skiboot 7.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 35,624 kB
  • sloc: ansic: 221,198; sh: 11,580; cpp: 5,767; python: 3,421; makefile: 1,773; asm: 1,503; perl: 1,479; tcl: 1,188; pascal: 107
file content (58 lines) | stat: -rw-r--r-- 1,791 bytes parent folder | download | duplicates (12)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
/* Copyright 2013-2019 IBM Corp. */

#ifndef __OP_PANEL_H
#define __OP_PANEL_H

#include <stdint.h>

/* Operator Panel Dimensions */
#define OP_PANEL_NUM_LINES	2
#define OP_PANEL_LINE_LEN	16

/* Severity */
enum op_severity {
	OP_LOG		= 0x4342,	/* 'CB' - Progress info */
	OP_WARN		= 0x4542,	/* 'EB' - Information condition */
	OP_ERROR	= 0x4442,	/* 'DB' - Non fatal error */
	OP_FATAL	= 0x4242,	/* 'BB' - Fatal error */
};

/* Module */
enum op_module {
	OP_MOD_CORE	= 0x3030,	/* '00' - Anything really */
	OP_MOD_INIT	= 0x3031,	/* '01' - init */
	OP_MOD_LOCK	= 0x3032,	/* '02' - spinlocks */
	OP_MOD_FSP	= 0x3033,	/* '03' - FSP */
	OP_MOD_FSPCON	= 0x3034,	/* '04' - FSPCON */
	OP_MOD_CHIPTOD	= 0x3035,	/* '05' - ChipTOP */
	OP_MOD_CPU	= 0x3036,	/* '06' - CPU bringup */
	OP_MOD_MEM	= 0x3037,	/* '07' - Memory */
};

/* Common codes:
 *
 * 'BA010001' : Failed to load a kernel
 * 'BA010002' : Failed to create a device-tree
 * 'BA020000' : Locking already owned lock
 * 'BA020001' : Unlocking unlocked lock
 * 'BA020002' : Unlocking not-owned lock
 * 'BA006666' : Abort
 * 'BA050000' : Failed ChipTOD init/sync
 * 'BA050001' : Failed to find a CPU on the master chip
 * 'BA050002' : Master chip sync failed
 * 'EA05xxx2' : Slave sync failed (xxx = PIR)
 * 'BA070000' : Cannot find MS VPD or invalid
 * 'BA070001' : MS VPD wrong size
 * 'BA070002' : MS VPD doesn't have an MSAC
 * 'BA070003' : MS VPD doesn't have a total config
 */

extern void op_display(enum op_severity, enum op_module, uint16_t code);
extern void op_display_lpc(enum op_severity s, enum op_module m, uint16_t c);

extern void op_panel_disable_src_echo(void);
extern void op_panel_clear_src(void);
extern void fsp_oppanel_init(void);

#endif /* __OP_PANEL_H */