coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hsio.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <harcuvar_boardid.h>
4 #include <hsio.h>
5 #include <soc/fiamux.h>
6 
7 size_t mainboard_get_hsio_config(BL_HSIO_INFORMATION **p_hsio_config)
8 {
9  uint32_t boardid = board_id();
10  size_t num;
11  switch (boardid) {
12  case BoardIdHarcuvar:
14  (*p_hsio_config) = (BL_HSIO_INFORMATION *)harcuvar_hsio_config;
15  break;
16  default:
17  num = 0;
18  (*p_hsio_config) = NULL;
19  break;
20  }
21  return num;
22 }
#define ARRAY_SIZE(a)
Definition: helpers.h:12
uint32_t board_id(void)
board_id() - Get the board version
Definition: ec_boardid.c:6
#define BoardIdHarcuvar
size_t mainboard_get_hsio_config(BL_HSIO_INFORMATION **p_hsio_config)
Definition: hsio.c:7
const BL_HSIO_INFORMATION harcuvar_hsio_config[]
Definition: hsio.h:9
#define NULL
Definition: stddef.h:19
unsigned int uint32_t
Definition: stdint.h:14