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
:
13
num =
ARRAY_SIZE
(
harcuvar_hsio_config
);
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
}
ARRAY_SIZE
#define ARRAY_SIZE(a)
Definition:
helpers.h:12
board_id
uint32_t board_id(void)
board_id() - Get the board version
Definition:
ec_boardid.c:6
fiamux.h
harcuvar_boardid.h
BoardIdHarcuvar
#define BoardIdHarcuvar
Definition:
harcuvar_boardid.h:8
mainboard_get_hsio_config
size_t mainboard_get_hsio_config(BL_HSIO_INFORMATION **p_hsio_config)
Definition:
hsio.c:7
harcuvar_hsio_config
const BL_HSIO_INFORMATION harcuvar_hsio_config[]
Definition:
hsio.h:9
hsio.h
NULL
#define NULL
Definition:
stddef.h:19
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
src
mainboard
intel
harcuvar
hsio.c
Generated by
1.9.1