linux/drivers/thermal/intel/intel_soc_dts_iosf.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * intel_soc_dts_iosf.c
 * Copyright (c) 2015, Intel Corporation.
 */

#define pr_fmt(fmt)

#include <linux/bitops.h>
#include <linux/intel_tcc.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <asm/iosf_mbi.h>
#include "intel_soc_dts_iosf.h"

#define SOC_DTS_OFFSET_ENABLE
#define SOC_DTS_OFFSET_TEMP

#define SOC_DTS_OFFSET_PTPS
#define SOC_DTS_OFFSET_PTTS
#define SOC_DTS_OFFSET_PTTSS
#define SOC_DTS_OFFSET_PTMC
#define SOC_DTS_TE_AUX0
#define SOC_DTS_TE_AUX1

#define SOC_DTS_AUX0_ENABLE_BIT
#define SOC_DTS_AUX1_ENABLE_BIT
#define SOC_DTS_CPU_MODULE0_ENABLE_BIT
#define SOC_DTS_CPU_MODULE1_ENABLE_BIT
#define SOC_DTS_TE_SCI_ENABLE
#define SOC_DTS_TE_SMI_ENABLE
#define SOC_DTS_TE_MSI_ENABLE
#define SOC_DTS_TE_APICA_ENABLE
#define SOC_DTS_PTMC_APIC_DEASSERT_BIT

/* DTS encoding for TJ MAX temperature */
#define SOC_DTS_TJMAX_ENCODING

/* Mask for two trips in status bits */
#define SOC_DTS_TRIP_MASK

static int update_trip_temp(struct intel_soc_dts_sensors *sensors,
			    int thres_index, int temp)
{}

static int sys_set_trip_temp(struct thermal_zone_device *tzd,
			     const struct thermal_trip *trip,
			     int temp)
{}

static int sys_get_curr_temp(struct thermal_zone_device *tzd,
			     int *temp)
{}

static const struct thermal_zone_device_ops tzone_ops =;

static int soc_dts_enable(int id)
{}

static void remove_dts_thermal_zone(struct intel_soc_dts_sensor_entry *dts)
{}

static int add_dts_thermal_zone(int id, struct intel_soc_dts_sensor_entry *dts,
				struct thermal_trip *trips)
{}

void intel_soc_dts_iosf_interrupt_handler(struct intel_soc_dts_sensors *sensors)
{}
EXPORT_SYMBOL_GPL();

static void dts_trips_reset(struct intel_soc_dts_sensors *sensors, int dts_index)
{}

static void set_trip(struct thermal_trip *trip, enum thermal_trip_type type,
		     u8 flags, int temp, unsigned int index)
{}

struct intel_soc_dts_sensors *
intel_soc_dts_iosf_init(enum intel_soc_dts_interrupt_type intr_type,
			bool critical_trip, int crit_offset)
{}
EXPORT_SYMBOL_GPL();

void intel_soc_dts_iosf_exit(struct intel_soc_dts_sensors *sensors)
{}
EXPORT_SYMBOL_GPL();

MODULE_IMPORT_NS();
MODULE_LICENSE();
MODULE_DESCRIPTION();