/* * acpi_lpat.h - LPAT table processing functions * * Copyright (C) 2015 Intel Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License version * 2 as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef ACPI_LPAT_H #define ACPI_LPAT_H struct acpi_lpat { int temp; int raw; }; struct acpi_lpat_conversion_table { struct acpi_lpat *lpat; int lpat_count; }; #ifdef CONFIG_ACPI int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, int raw); int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table, int temp); struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table(acpi_handle handle); void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table *lpat_table); #else static int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, int raw) { return 0; } static int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table, int temp) { return 0; } static struct acpi_lpat_conversion_table *acpi_lpat_get_conversion_table( acpi_handle handle) { return NULL; } static void acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table *lpat_table) { } #endif #endif
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
platform | Folder | 0755 |
|
|
acbuffer.h | File | 10.36 KB | 0644 |
|
acconfig.h | File | 8.69 KB | 0644 |
|
acexcep.h | File | 17.79 KB | 0644 |
|
acnames.h | File | 3.78 KB | 0644 |
|
acoutput.h | File | 17.69 KB | 0644 |
|
acpi.h | File | 3.07 KB | 0644 |
|
acpi_bus.h | File | 18.99 KB | 0644 |
|
acpi_drivers.h | File | 4.08 KB | 0644 |
|
acpi_io.h | File | 713 B | 0644 |
|
acpi_lpat.h | File | 1.55 KB | 0644 |
|
acpi_numa.h | File | 623 B | 0644 |
|
acpiosxf.h | File | 12.4 KB | 0644 |
|
acpixf.h | File | 31.5 KB | 0644 |
|
acrestyp.h | File | 20.57 KB | 0644 |
|
actbl.h | File | 20 KB | 0644 |
|
actbl1.h | File | 44.48 KB | 0644 |
|
actbl2.h | File | 42.98 KB | 0644 |
|
actbl3.h | File | 21.63 KB | 0644 |
|
actypes.h | File | 42.59 KB | 0644 |
|
acuuid.h | File | 4.17 KB | 0644 |
|
apei.h | File | 1.34 KB | 0644 |
|
button.h | File | 621 B | 0644 |
|
cppc_acpi.h | File | 2.93 KB | 0644 |
|
ghes.h | File | 2.88 KB | 0644 |
|
hed.h | File | 371 B | 0644 |
|
pcc.h | File | 816 B | 0644 |
|
pdc_intel.h | File | 1.02 KB | 0644 |
|
processor.h | File | 11.11 KB | 0644 |
|
reboot.h | File | 201 B | 0644 |
|
video.h | File | 2.8 KB | 0644 |
|