/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * AMD MP2 Sensors transport driver * * Copyright 2020-2021 Advanced Micro Devices, Inc. * Authors: Nehal Bakulchandra Shah <[email protected]> * Sandeep Singh <[email protected]> * Basavaraj Natikar <[email protected]> */ #ifndef AMDSFH_HID_H #define AMDSFH_HID_H #define MAX_HID_DEVICES … #define AMD_SFH_HID_VENDOR … #define AMD_SFH_HID_PRODUCT … struct request_list { … }; struct amd_input_data { … }; struct amdtp_cl_data { … }; /** * struct amdtp_hid_data - Per instance HID data * @index: Device index in the order of enumeration * @request_done: Get Feature/Input report complete flag * used during get/set request from hid core * @cli_data: Link to the client instance * @hid_wait: Completion waitq * * Used to tie hid->driver data to driver client instance */ struct amdtp_hid_data { … }; /* Interface functions between HID LL driver and AMD SFH client */ int amdtp_hid_probe(u32 cur_hid_dev, struct amdtp_cl_data *cli_data); void amdtp_hid_remove(struct amdtp_cl_data *cli_data); int amd_sfh_get_report(struct hid_device *hid, int report_id, int report_type); void amd_sfh_set_report(struct hid_device *hid, int report_id, int report_type); void amdtp_hid_wakeup(struct hid_device *hid); #endif