2018-10-16 07:11:31 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* Address translation interface via ACPI DSM.
|
|
|
|
* Copyright (C) 2018 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _LINUX_ADXL_H
|
|
|
|
#define _LINUX_ADXL_H
|
|
|
|
|
2018-11-01 02:20:20 +08:00
|
|
|
#ifdef CONFIG_ACPI_ADXL
|
2018-10-16 07:11:31 +08:00
|
|
|
const char * const *adxl_get_component_names(void);
|
|
|
|
int adxl_decode(u64 addr, u64 component_values[]);
|
2018-11-01 02:20:20 +08:00
|
|
|
#else
|
|
|
|
static inline const char * const *adxl_get_component_names(void) { return NULL; }
|
|
|
|
static inline int adxl_decode(u64 addr, u64 component_values[]) { return -EOPNOTSUPP; }
|
|
|
|
#endif
|
2018-10-16 07:11:31 +08:00
|
|
|
|
|
|
|
#endif /* _LINUX_ADXL_H */
|