linux/drivers/platform/x86/amd/pmf/acpi.c

// SPDX-License-Identifier: GPL-2.0
/*
 * AMD Platform Management Framework Driver
 *
 * Copyright (c) 2022, Advanced Micro Devices, Inc.
 * All Rights Reserved.
 *
 * Author: Shyam Sundar S K <[email protected]>
 */

#include <linux/acpi.h>
#include "pmf.h"

#define APMF_CQL_NOTIFICATION
#define APMF_AMT_NOTIFICATION

static union acpi_object *apmf_if_call(struct amd_pmf_dev *pdev, int fn, struct acpi_buffer *param)
{}

static int apmf_if_call_store_buffer(struct amd_pmf_dev *pdev, int fn, void *dest, size_t out_sz)
{}

static union acpi_object *apts_if_call(struct amd_pmf_dev *pdev, u32 state_index)
{}

static int apts_if_call_store_buffer(struct amd_pmf_dev *pdev,
				     u32 index, void *data, size_t out_sz)
{}

int is_apmf_func_supported(struct amd_pmf_dev *pdev, unsigned long index)
{}

int apts_get_static_slider_granular_v2(struct amd_pmf_dev *pdev,
				       struct amd_pmf_apts_granular_output *data, u32 apts_idx)
{}

int apmf_get_static_slider_granular_v2(struct amd_pmf_dev *pdev,
				       struct apmf_static_slider_granular_output_v2 *data)
{}

int apmf_get_static_slider_granular(struct amd_pmf_dev *pdev,
				    struct apmf_static_slider_granular_output *data)
{}

int apmf_os_power_slider_update(struct amd_pmf_dev *pdev, u8 event)
{}

static void apmf_sbios_heartbeat_notify(struct work_struct *work)
{}

int amd_pmf_notify_sbios_heartbeat_event_v2(struct amd_pmf_dev *dev, u8 flag)
{}

int apmf_update_fan_idx(struct amd_pmf_dev *pdev, bool manual, u32 idx)
{}

int apmf_get_auto_mode_def(struct amd_pmf_dev *pdev, struct apmf_auto_mode *data)
{}

int apmf_get_sbios_requests_v2(struct amd_pmf_dev *pdev, struct apmf_sbios_req_v2 *req)
{}

int apmf_get_sbios_requests(struct amd_pmf_dev *pdev, struct apmf_sbios_req *req)
{}

static void apmf_event_handler(acpi_handle handle, u32 event, void *data)
{}

static int apmf_if_verify_interface(struct amd_pmf_dev *pdev)
{}

static int apmf_get_system_params(struct amd_pmf_dev *dev)
{}

int apmf_get_dyn_slider_def_ac(struct amd_pmf_dev *pdev, struct apmf_dyn_slider_output *data)
{}

int apmf_get_dyn_slider_def_dc(struct amd_pmf_dev *pdev, struct apmf_dyn_slider_output *data)
{}

int apmf_install_handler(struct amd_pmf_dev *pmf_dev)
{}

static acpi_status apmf_walk_resources(struct acpi_resource *res, void *data)
{}

int apmf_check_smart_pc(struct amd_pmf_dev *pmf_dev)
{}

void apmf_acpi_deinit(struct amd_pmf_dev *pmf_dev)
{}

int apmf_acpi_init(struct amd_pmf_dev *pmf_dev)
{}