aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/int340x_thermal/acpi_thermal_rel.h
diff options
context:
space:
mode:
authorAmit Kucheria <amit.kucheria@linaro.org>2018-12-07 12:25:26 +0530
committerZhang Rui <rui.zhang@intel.com>2018-12-07 16:48:47 +0800
commit3e8c4d31f8eddc957ee293b3556586ee698d9a21 (patch)
treee531ecd7a8b3736bed325d28dddc52abd6b0edfb /drivers/thermal/int340x_thermal/acpi_thermal_rel.h
parentthermal: zx2967_thermal: simplify getting .driver_data (diff)
downloadlinux-dev-3e8c4d31f8eddc957ee293b3556586ee698d9a21.tar.xz
linux-dev-3e8c4d31f8eddc957ee293b3556586ee698d9a21.zip
drivers: thermal: Move various drivers for intel platforms into a subdir
This cleans up the directory a bit, now that we have several other platforms using platform-specific sub-directories. Compile-tested with ARCH=x86 defconfig and the drivers explicitly enabled with menuconfig. Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/int340x_thermal/acpi_thermal_rel.h')
-rw-r--r--drivers/thermal/int340x_thermal/acpi_thermal_rel.h85
1 files changed, 0 insertions, 85 deletions
diff --git a/drivers/thermal/int340x_thermal/acpi_thermal_rel.h b/drivers/thermal/int340x_thermal/acpi_thermal_rel.h
deleted file mode 100644
index 58822575fd54..000000000000
--- a/drivers/thermal/int340x_thermal/acpi_thermal_rel.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef __ACPI_ACPI_THERMAL_H
-#define __ACPI_ACPI_THERMAL_H
-
-#include <asm/ioctl.h>
-
-#define ACPI_THERMAL_MAGIC 's'
-
-#define ACPI_THERMAL_GET_TRT_LEN _IOR(ACPI_THERMAL_MAGIC, 1, unsigned long)
-#define ACPI_THERMAL_GET_ART_LEN _IOR(ACPI_THERMAL_MAGIC, 2, unsigned long)
-#define ACPI_THERMAL_GET_TRT_COUNT _IOR(ACPI_THERMAL_MAGIC, 3, unsigned long)
-#define ACPI_THERMAL_GET_ART_COUNT _IOR(ACPI_THERMAL_MAGIC, 4, unsigned long)
-
-#define ACPI_THERMAL_GET_TRT _IOR(ACPI_THERMAL_MAGIC, 5, unsigned long)
-#define ACPI_THERMAL_GET_ART _IOR(ACPI_THERMAL_MAGIC, 6, unsigned long)
-
-struct art {
- acpi_handle source;
- acpi_handle target;
- u64 weight;
- u64 ac0_max;
- u64 ac1_max;
- u64 ac2_max;
- u64 ac3_max;
- u64 ac4_max;
- u64 ac5_max;
- u64 ac6_max;
- u64 ac7_max;
- u64 ac8_max;
- u64 ac9_max;
-} __packed;
-
-struct trt {
- acpi_handle source;
- acpi_handle target;
- u64 influence;
- u64 sample_period;
- u64 reserved1;
- u64 reserved2;
- u64 reserved3;
- u64 reserved4;
-} __packed;
-
-#define ACPI_NR_ART_ELEMENTS 13
-/* for usrspace */
-union art_object {
- struct {
- char source_device[8]; /* ACPI single name */
- char target_device[8]; /* ACPI single name */
- u64 weight;
- u64 ac0_max_level;
- u64 ac1_max_level;
- u64 ac2_max_level;
- u64 ac3_max_level;
- u64 ac4_max_level;
- u64 ac5_max_level;
- u64 ac6_max_level;
- u64 ac7_max_level;
- u64 ac8_max_level;
- u64 ac9_max_level;
- };
- u64 __data[ACPI_NR_ART_ELEMENTS];
-};
-
-union trt_object {
- struct {
- char source_device[8]; /* ACPI single name */
- char target_device[8]; /* ACPI single name */
- u64 influence;
- u64 sample_period;
- u64 reserved[4];
- };
- u64 __data[8];
-};
-
-#ifdef __KERNEL__
-int acpi_thermal_rel_misc_device_add(acpi_handle handle);
-int acpi_thermal_rel_misc_device_remove(acpi_handle handle);
-int acpi_parse_art(acpi_handle handle, int *art_count, struct art **arts,
- bool create_dev);
-int acpi_parse_trt(acpi_handle handle, int *trt_count, struct trt **trts,
- bool create_dev);
-#endif
-
-#endif /* __ACPI_ACPI_THERMAL_H */