coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
hwm.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#ifndef SUPERIO_NUVOTON_COMMON_HWM_H
4
#define SUPERIO_NUVOTON_COMMON_HWM_H
5
6
/* Nuvoton is a Winbond spin-off, so this code is for both */
7
8
#include <
stdint.h
>
9
#include <
superio/hwm5_conf.h
>
10
11
#define HWM_BANK_SELECT 0x4e
12
13
static
inline
void
nuvoton_hwm_select_bank
(
const
u16
base
,
const
u8
bank)
14
{
15
pnp_write_hwm5_index
(
base
,
HWM_BANK_SELECT
, bank);
16
}
17
18
#endif
/* SUPERIO_NUVOTON_COMMON_HWM_H */
hwm5_conf.h
pnp_write_hwm5_index
static void pnp_write_hwm5_index(u16 base, u8 reg, u8 value)
Definition:
hwm5_conf.h:43
nuvoton_hwm_select_bank
static void nuvoton_hwm_select_bank(const u16 base, const u8 bank)
Definition:
hwm.h:13
HWM_BANK_SELECT
#define HWM_BANK_SELECT
Definition:
hwm.h:11
base
uintptr_t base
Definition:
uart.c:17
stdint.h
u16
uint16_t u16
Definition:
stdint.h:48
u8
uint8_t u8
Definition:
stdint.h:45
src
superio
nuvoton
common
hwm.h
Generated by
1.9.1