Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright(c) 2013-2015 Intel Corporation. All rights reserved.
|
|
*/
|
|
#ifndef __NFIT_TEST_H__
|
|
#define __NFIT_TEST_H__
|
|
#include <linux/list.h>
|
|
#include <linux/uuid.h>
|
|
#include <linux/ioport.h>
|
|
#include <linux/spinlock_types.h>
|
|
|
|
struct nfit_test_request {
|
|
struct list_head list;
|
|
struct resource res;
|
|
};
|
|
|
|
struct nfit_test_resource {
|
|
struct list_head requests;
|
|
struct list_head list;
|
|
struct resource res;
|
|
struct device *dev;
|
|
spinlock_t lock;
|
|
int req_count;
|
|
void *buf;
|
|
};
|
|
|
|
union acpi_object;
|
|
typedef void *acpi_handle;
|
|
|
|
typedef struct nfit_test_resource *(*nfit_test_lookup_fn)(resource_size_t);
|
|
typedef union acpi_object *(*nfit_test_evaluate_dsm_fn)(acpi_handle handle,
|
|
const guid_t *guid, u64 rev, u64 func,
|
|
union acpi_object *argv4);
|
|
void __iomem *__wrap_ioremap_nocache(resource_size_t offset,
|
|
unsigned long size);
|
|
void __wrap_iounmap(volatile void __iomem *addr);
|
|
void nfit_test_setup(nfit_test_lookup_fn lookup,
|
|
nfit_test_evaluate_dsm_fn evaluate);
|
|
void nfit_test_teardown(void);
|
|
struct nfit_test_resource *get_nfit_res(resource_size_t resource);
|
|
#endif
|