1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ACPI_ACPI_THERMAL_H
3 #define __ACPI_ACPI_THERMAL_H
7 #define ACPI_THERMAL_MAGIC 's'
9 #define ACPI_THERMAL_GET_TRT_LEN _IOR(ACPI_THERMAL_MAGIC, 1, unsigned long)
10 #define ACPI_THERMAL_GET_ART_LEN _IOR(ACPI_THERMAL_MAGIC, 2, unsigned long)
11 #define ACPI_THERMAL_GET_TRT_COUNT _IOR(ACPI_THERMAL_MAGIC, 3, unsigned long)
12 #define ACPI_THERMAL_GET_ART_COUNT _IOR(ACPI_THERMAL_MAGIC, 4, unsigned long)
14 #define ACPI_THERMAL_GET_TRT _IOR(ACPI_THERMAL_MAGIC, 5, unsigned long)
15 #define ACPI_THERMAL_GET_ART _IOR(ACPI_THERMAL_MAGIC, 6, unsigned long)
44 #define ACPI_NR_ART_ELEMENTS 13
48 char source_device
[8]; /* ACPI single name */
49 char target_device
[8]; /* ACPI single name */
62 u64 __data
[ACPI_NR_ART_ELEMENTS
];
67 char source_device
[8]; /* ACPI single name */
68 char target_device
[8]; /* ACPI single name */
77 int acpi_thermal_rel_misc_device_add(acpi_handle handle
);
78 int acpi_thermal_rel_misc_device_remove(acpi_handle handle
);
79 int acpi_parse_art(acpi_handle handle
, int *art_count
, struct art
**arts
,
81 int acpi_parse_trt(acpi_handle handle
, int *trt_count
, struct trt
**trts
,
85 #endif /* __ACPI_ACPI_THERMAL_H */