Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * acpi_lpat.h - LPAT table processing functions
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2015 Intel Corporation. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #ifndef ACPI_LPAT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #define ACPI_LPAT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct acpi_lpat {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	int temp;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	int raw;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) struct acpi_lpat_conversion_table {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	struct acpi_lpat *lpat;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	int lpat_count;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #ifdef CONFIG_ACPI
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 			  int raw);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 			  int temp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(acpi_handle
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 								  handle);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 				     *lpat_table);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) static int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 				 int raw)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) static int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 				 int temp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) static struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 							acpi_handle handle)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	return NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) static void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 					    *lpat_table)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #endif