linux/drivers/gpu/drm/amd/amdgpu/ta_ras_if.h

/*
 * Copyright 2019 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 */

#ifndef _TA_RAS_IF_H
#define _TA_RAS_IF_H

#define RAS_TA_HOST_IF_VER

/* Responses have bit 31 set */
#define RSP_ID_MASK
#define RSP_ID(cmdId)

/* RAS related enumerations */
/**********************************************************/
enum ras_command {};

enum ta_ras_status {};

enum ta_ras_block {};

enum ta_ras_mca_block {};

enum ta_ras_error_type {};

enum ta_ras_address_type {};

/* Input/output structures for RAS commands */
/**********************************************************/

struct ta_ras_enable_features_input {};

struct ta_ras_disable_features_input {};

struct ta_ras_trigger_error_input {};

struct ta_ras_init_flags {};

struct ta_ras_mca_addr {};

struct ta_ras_phy_addr {};

struct ta_ras_query_address_input {};

struct ta_ras_output_flags {};

struct ta_ras_query_address_output {};

/* Common input structure for RAS callbacks */
/**********************************************************/
ta_ras_cmd_input;

ta_ras_cmd_output;

/* Shared Memory structures */
/**********************************************************/
struct ta_ras_shared_memory {};

#endif // TL_RAS_IF_H_