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

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * AMD MP2 common macros and structures
 *
 * Copyright (c) 2022, Advanced Micro Devices, Inc.
 * All Rights Reserved.
 *
 * Author: Basavaraj Natikar <[email protected]>
 */
#ifndef AMD_SFH_COMMON_H
#define AMD_SFH_COMMON_H

#include <linux/pci.h>
#include "amd_sfh_hid.h"

#define PCI_DEVICE_ID_AMD_MP2
#define PCI_DEVICE_ID_AMD_MP2_1_1

#define AMD_C2P_MSG(regno)
#define AMD_P2C_MSG(regno)

#define AMD_C2P_MSG_V1(regno)
#define AMD_P2C_MSG_V1(regno)

#define SENSOR_ENABLED
#define SENSOR_DISABLED

#define AMD_SFH_IDLE_LOOP

enum cmd_id {};

struct amd_mp2_sensor_info {};

struct sfh_dev_status {};

struct amd_mp2_dev {};

struct amd_mp2_ops {};

void amd_sfh_work(struct work_struct *work);
void amd_sfh_work_buffer(struct work_struct *work);
void amd_sfh_clear_intr_v2(struct amd_mp2_dev *privdata);
int amd_sfh_irq_init_v2(struct amd_mp2_dev *privdata);
void amd_sfh_clear_intr(struct amd_mp2_dev *privdata);
int amd_sfh_irq_init(struct amd_mp2_dev *privdata);

static inline u64 amd_get_c2p_val(struct amd_mp2_dev *mp2, u32 idx)
{}

static inline u64 amd_get_p2c_val(struct amd_mp2_dev *mp2, u32 idx)
{}
#endif