Path: blob/master/drivers/firmware/tegra/bpmp-private.h
26444 views
/* SPDX-License-Identifier: GPL-2.0 */1/*2* Copyright (c) 2018, NVIDIA CORPORATION.3*/45#ifndef __FIRMWARE_TEGRA_BPMP_PRIVATE_H6#define __FIRMWARE_TEGRA_BPMP_PRIVATE_H78#include <soc/tegra/bpmp.h>910struct tegra_bpmp_ops {11int (*init)(struct tegra_bpmp *bpmp);12void (*deinit)(struct tegra_bpmp *bpmp);13bool (*is_response_ready)(struct tegra_bpmp_channel *channel);14bool (*is_request_ready)(struct tegra_bpmp_channel *channel);15int (*ack_response)(struct tegra_bpmp_channel *channel);16int (*ack_request)(struct tegra_bpmp_channel *channel);17bool (*is_response_channel_free)(struct tegra_bpmp_channel *channel);18bool (*is_request_channel_free)(struct tegra_bpmp_channel *channel);19int (*post_response)(struct tegra_bpmp_channel *channel);20int (*post_request)(struct tegra_bpmp_channel *channel);21int (*ring_doorbell)(struct tegra_bpmp *bpmp);22int (*resume)(struct tegra_bpmp *bpmp);23};2425extern const struct tegra_bpmp_ops tegra186_bpmp_ops;26extern const struct tegra_bpmp_ops tegra210_bpmp_ops;2728#endif293031