coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <console/console.h>
4 #include <bootblock_common.h>
5 #include "dock.h"
6 
7 static int dock_err;
8 
10 {
11  /* Minimal setup to detect dock */
13  if (dock_err == 0)
14  dock_connect();
15 }
16 
18 {
19  /* Console is not yet initialized in bootblock_mainboard_early_init,
20  so we print the dock information here */
21  if (dock_err)
22  printk(BIOS_ERR, "DOCK: Failed to init pc87382\n");
23  else
24  dock_info();
25 }
#define printk(level,...)
Definition: stdlib.h:16
__weak void bootblock_mainboard_init(void)
Definition: bootblock.c:19
__weak void bootblock_mainboard_early_init(void)
Definition: bootblock.c:16
#define BIOS_ERR
BIOS_ERR - System in incomplete state.
Definition: loglevel.h:72
static int dock_err
Definition: bootblock.c:7
void dock_connect(void)
Definition: dock.c:215
int pc87382_early(void)
Definition: dock.c:94
void dock_info(void)
Definition: dock.c:244