mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
63b4ca630c
PD#SWPL-223138 Problem: amfc driver is too old compared with 5.15 Solution: sync it from 5.15 Verify: S6 Change-Id: Ia405e1ec397c2b06782126488f3a8171f234c9ec Signed-off-by: Tao Zeng <tao.zeng@amlogic.com>
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __USER_FAULT_H
|
|
#define __USER_FAULT_H
|
|
|
|
#ifndef CONFIG_ARM64
|
|
void show_vmalloc_pfn(struct pt_regs *regs);
|
|
void show_debug_ratelimited(struct pt_regs *regs, unsigned int reg_en);
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_USER_FAULT)
|
|
void show_all_pfn(struct task_struct *task, struct pt_regs *regs);
|
|
void show_vma(struct mm_struct *mm, unsigned long addr);
|
|
void _dump_dmc_reg(void);
|
|
void show_user_fault_info(struct pt_regs *regs, u64 lr, u64 sp);
|
|
void show_extra_reg_data(struct pt_regs *regs);
|
|
void set_dump_dmc_func(void *f);
|
|
long get_user_pfn(struct mm_struct *mm, unsigned long addr);
|
|
|
|
#else
|
|
static inline void show_all_pfn(struct task_struct *task, struct pt_regs *regs)
|
|
{
|
|
}
|
|
|
|
static inline void show_vma(struct mm_struct *mm, unsigned long addr)
|
|
{
|
|
}
|
|
|
|
static inline void _dump_dmc_reg(void)
|
|
{
|
|
}
|
|
|
|
static inline void show_user_fault_info(struct pt_regs *regs, u64 lr, u64 sp)
|
|
{
|
|
}
|
|
|
|
static inline void show_extra_reg_data(struct pt_regs *regs)
|
|
{
|
|
}
|
|
|
|
static inline void set_dump_dmc_func(void *f)
|
|
{
|
|
}
|
|
|
|
static inline long get_user_pfn(struct mm_struct *mm, unsigned long addr)
|
|
{
|
|
return -1;
|
|
}
|
|
#endif /* CONFIG_AMLOGIC_USER_FAULT */
|
|
|
|
#endif
|