From: jsg Date: Thu, 29 Apr 2021 11:29:05 +0000 (+0000) Subject: add riscv64 efibind.h X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=abeccfecdd95f51f73e26b6326beef4113d893fa;p=openbsd add riscv64 efibind.h ok drahn@ kettenis@ --- diff --git a/sys/stand/efi/include/riscv64/efibind.h b/sys/stand/efi/include/riscv64/efibind.h new file mode 100644 index 00000000000..1ea88acdf36 --- /dev/null +++ b/sys/stand/efi/include/riscv64/efibind.h @@ -0,0 +1,22 @@ +/* Public Domain. */ + +#include + +typedef int8_t INT8; +typedef uint8_t UINT8; +typedef int16_t INT16; +typedef uint16_t UINT16; +typedef int32_t INT32; +typedef uint32_t UINT32; +typedef int64_t INT64; +typedef uint64_t UINT64; + +typedef void VOID; + +typedef int64_t INTN; +typedef uint64_t UINTN; + +#define INTERFACE_DECL(x) struct x +#define EFIAPI + +#define EFIERR(x) (0x8000000000000000 | x)