haiku/headers/private/kernel/arch/riscv64/Htif.h
X512 b8b1ad6fc4 introduce RISC-V headers
Change-Id: I9a8b6a1011cbefd4bd173852e7111e92efd0c730
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4003
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-05-27 15:43:19 +00:00

34 lines
525 B
C

/*
* Copyright 2021, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#ifndef _HTIF_H_
#define _HTIF_H_
#include <SupportDefs.h>
// host-target interface
struct HtifRegs
{
uint32 toHostLo;
uint32 toHostHi;
uint32 fromHostLo;
uint32 fromHostHi;
};
extern HtifRegs* volatile gHtifRegs;
uint64 HtifCmd(uint32 device, uint8 cmd, uint32 arg);
void HtifShutdown();
void HtifOutChar(char ch);
void HtifOutString(const char* str);
void HtifOutString(const char* str, size_t len);
#endif // _HTIF_H_