mirror of
https://github.com/revyos/thead-kernel.git
synced 2026-09-28 14:55:20 +02:00
@@ -1472,6 +1472,9 @@ int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
|
||||
int bpf_prog_test_run_raw_tp(struct bpf_prog *prog,
|
||||
const union bpf_attr *kattr,
|
||||
union bpf_attr __user *uattr);
|
||||
int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog,
|
||||
const union bpf_attr *kattr,
|
||||
union bpf_attr __user *uattr);
|
||||
bool btf_ctx_access(int off, int size, enum bpf_access_type type,
|
||||
const struct bpf_prog *prog,
|
||||
struct bpf_insn_access_aux *info);
|
||||
@@ -1686,6 +1689,13 @@ static inline int bpf_prog_test_run_flow_dissector(struct bpf_prog *prog,
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
static inline int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog,
|
||||
const union bpf_attr *kattr,
|
||||
union bpf_attr __user *uattr)
|
||||
{
|
||||
return -ENOTSUPP;
|
||||
}
|
||||
|
||||
static inline void bpf_map_put(struct bpf_map *map)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ enum light_aon_misc_func {
|
||||
LIGHT_AON_MISC_FUNC_WDG_POWER_OFF = 9,
|
||||
LIGHT_AON_MISC_FUNC_AON_WDT_ON = 10,
|
||||
LIGHT_AON_MISC_FUNC_AON_WDT_OFF = 11,
|
||||
LIGHT_AON_MISC_FUNC_AON_RESERVE_MEM = 12,
|
||||
};
|
||||
|
||||
enum light_aon_pm_func {
|
||||
|
||||
35
include/linux/firmware/thead/light_event.h
Normal file
35
include/linux/firmware/thead/light_event.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
||||
#ifndef _LIGHT_EVENT_H
|
||||
#define _LIGHT_EVENT_H
|
||||
|
||||
enum light_rebootmode_index {
|
||||
/* C902 event rebootmode */
|
||||
LIGHT_EVENT_PMIC_RESET = 0x0,
|
||||
LIGHT_EVENT_PMIC_ONKEY,
|
||||
LIGHT_EVENT_PMIC_POWERUP,
|
||||
|
||||
/* C910 event rebootmode */
|
||||
LIGHT_EVENT_SW_REBOOT = 0x20,
|
||||
LIGHT_EVENT_SW_WATCHDOG,
|
||||
LIGHT_EVENT_SW_PANIC,
|
||||
LIGHT_EVENT_SW_HANG,
|
||||
LIGHT_EVENT_MAX,
|
||||
};
|
||||
|
||||
#if IS_ENABLED(CONFIG_LIGHT_REBOOTMODE)
|
||||
extern int light_event_set_rebootmode(enum light_rebootmode_index mode);
|
||||
extern int light_event_get_rebootmode(enum light_rebootmode_index *mode);
|
||||
#else
|
||||
static int light_event_set_rebootmode(enum light_rebootmode_index mode)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static int light_event_get_rebootmode(enum light_rebootmode_index *mode)
|
||||
{
|
||||
*mode = LIGHT_EVENT_MAX;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user