linux/drivers/hid/amd-sfh-hid/amd_sfh_pcie.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * AMD MP2 PCIe communication driver
 * Copyright 2020-2021 Advanced Micro Devices, Inc.
 * Authors: Shyam Sundar S K <[email protected]>
 *	    Sandeep Singh <[email protected]>
 *	    Basavaraj Natikar <[email protected]>
 */

#ifndef PCIE_MP2_AMD_H
#define PCIE_MP2_AMD_H

#include "amd_sfh_common.h"

/* MP2 C2P Message Registers */
#define AMD_C2P_MSG0
#define AMD_C2P_MSG1
#define AMD_C2P_MSG2

/* MP2 P2C Message Registers */
#define AMD_P2C_MSG3

#define V2_STATUS

#define HPD_IDX
#define ACS_IDX

#define SENSOR_DISCOVERY_STATUS_MASK
#define SENSOR_DISCOVERY_STATUS_SHIFT

/* SFH Command register */
sfh_cmd_base;

cmd_response;

sfh_cmd_param;

struct sfh_cmd_reg {};

enum sensor_idx {};

enum mem_use_type {};

struct hpd_status {};

int amd_mp2_get_sensor_num(struct amd_mp2_dev *privdata, u8 *sensor_id);
int amd_sfh_hid_client_init(struct amd_mp2_dev *privdata);
int amd_sfh_hid_client_deinit(struct amd_mp2_dev *privdata);
void amd_sfh_set_desc_ops(struct amd_mp2_ops *mp2_ops);

#endif