#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/slab.h>
#include "amd_sfh_pcie.h"
#include "amd_sfh_hid_desc.h"
#include "amd_sfh_hid_report_desc.h"
#include "amd_sfh_hid.h"
#define AMD_SFH_FW_MULTIPLIER …
#define HID_USAGE_SENSOR_PROP_REPORTING_STATE_ALL_EVENTS_ENUM …
#define HID_USAGE_SENSOR_PROP_POWER_STATE_D0_FULL_POWER_ENUM …
#define HID_DEFAULT_REPORT_INTERVAL …
#define HID_DEFAULT_MIN_VALUE …
#define HID_DEFAULT_MAX_VALUE …
#define HID_DEFAULT_SENSITIVITY …
#define HID_USAGE_SENSOR_PROPERTY_CONNECTION_TYPE_PC_INTEGRATED_ENUM …
#define HID_USAGE_SENSOR_STATE_READY_ENUM …
#define HID_USAGE_SENSOR_STATE_INITIALIZING_ENUM …
#define HID_USAGE_SENSOR_EVENT_DATA_UPDATED_ENUM …
#define ILLUMINANCE_MASK …
static int get_report_descriptor(int sensor_idx, u8 *rep_desc)
{ … }
static u32 get_descr_sz(int sensor_idx, int descriptor_name)
{ … }
static void get_common_features(struct common_feature_property *common, int report_id)
{ … }
static u8 get_feature_report(int sensor_idx, int report_id, u8 *feature_report)
{ … }
static void get_common_inputs(struct common_input_property *common, int report_id)
{ … }
static u8 get_input_report(u8 current_index, int sensor_idx, int report_id,
struct amd_input_data *in_data)
{ … }
void amd_sfh_set_desc_ops(struct amd_mp2_ops *mp2_ops)
{ … }