linux/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_desc.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * AMD MP2 1.1 descriptor interfaces
 *
 * Copyright (c) 2022, Advanced Micro Devices, Inc.
 * All Rights Reserved.
 *
 * Author: Basavaraj Natikar <[email protected]>
 */

#include <linux/hid-sensor-ids.h>

#include "amd_sfh_interface.h"
#include "../hid_descriptor/amd_sfh_hid_desc.h"
#include "../hid_descriptor/amd_sfh_hid_report_desc.h"

#define SENSOR_PROP_REPORTING_STATE_ALL_EVENTS_ENUM
#define 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
/* state enums */
#define HID_USAGE_SENSOR_STATE_READY_ENUM
#define HID_USAGE_SENSOR_STATE_INITIALIZING_ENUM
#define HID_USAGE_SENSOR_EVENT_DATA_UPDATED_ENUM

static int get_report_desc(int sensor_idx, u8 *rep_desc)
{}

static void get_common_features(struct common_feature_property *common, int report_id)
{}

static u8 get_feature_rep(int sensor_idx, int report_id, u8 *feature_report)
{}

static void get_common_inputs(struct common_input_property *common, int report_id)
{}

int amd_sfh_float_to_int(u32 flt32_val)
{}

static u8 get_input_rep(u8 current_index, int sensor_idx, int report_id,
			struct amd_input_data *in_data)
{}

static u32 get_desc_size(int sensor_idx, int descriptor_name)
{}

void amd_sfh1_1_set_desc_ops(struct amd_mp2_ops *mp2_ops)
{}