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

Some of RISC-V emulators provide HTIF at fixed base address so for such emulators users have to hard-code HTIF base address in the linker script. To address this problem, we let users optionally provide fixed HTIF base address via platform support (or device tree). Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Dong Du <Dd_nirvana@sjtu.edu.cn> Reviewed-by: Atish Patra <atishp@rivosinc.com>
22 lines
496 B
C
22 lines
496 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(bool custom_addr,
|
|
unsigned long custom_fromhost_addr,
|
|
unsigned long custom_tohost_addr);
|
|
|
|
int htif_system_reset_init(bool custom_addr,
|
|
unsigned long custom_fromhost_addr,
|
|
unsigned long custom_tohost_addr);
|
|
|
|
#endif
|