blob: 6c592573265258a7d4c88fda18811c67e0a83e3b [file]
// Copyright 2026 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <arch/arm64/periphmap.h>
#include <dev/power/iris/init.h>
#include <kernel/ffi.h>
extern "C" {
// TODO(https://fxbug.dev/537458631): Remove the annotations once cross-language inlining works.
FFI_ALWAYS_INLINE uintptr_t cpp_iris_get_opp_vaddr() {
return reinterpret_cast<uintptr_t>(periph_paddr_to_vaddr(0x200c0790));
}
} // extern "C"