mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00

Instead of having console_putc() and console_getc() callbacks in platform operations, it will be much simpler for console driver to directly register these operations as device to the sbi_console implementation. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Xiang W <wxjstz@126.com>
20 lines
370 B
C
20 lines
370 B
C
/*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
* Copyright (c) 2010-2020, The Regents of the University of California
|
|
* (Regents). All Rights Reserved.
|
|
*/
|
|
|
|
#ifndef __SYS_HTIF_H__
|
|
#define __SYS_HTIF_H__
|
|
|
|
#include <sbi/sbi_types.h>
|
|
|
|
int htif_serial_init(void);
|
|
|
|
int htif_system_reset_check(u32 type, u32 reason);
|
|
|
|
void htif_system_reset(u32 type, u32 reason);
|
|
|
|
#endif
|