blob: 8d8a14c7335555c080c9924b96572d5ed79bfe74 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_DEVICES_LIB_QCOM_INCLUDE_QCOM_SMC_H_
#define SRC_DEVICES_LIB_QCOM_INCLUDE_QCOM_SMC_H_
#include <zircon/syscalls.h>
#include <zircon/syscalls/smc.h>
#include <zircon/types.h>
namespace qcom {
constexpr uint64_t kSmcInterrupted = 1;
constexpr uint64_t kSmcOk = 0;
constexpr uint64_t kSmcBusy = -13;
zx_status_t SmcCall(zx_handle_t h, zx_smc_parameters_t* params, zx_smc_result_t* result);
} // namespace qcom
#endif // SRC_DEVICES_LIB_QCOM_INCLUDE_QCOM_SMC_H_