kernel-brax3-ubuntu-touch/drivers/misc/mediatek/cache-auditor/cpuqos_v3/cpuqos_v3.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

28 lines
619 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2021 MediaTek Inc.
*/
#ifndef CPUQOS_V3_H
#define CPUQOS_V3_H
#include <linux/ioctl.h>
#if IS_ENABLED(CONFIG_MTK_SLBC)
extern u32 slbc_sram_read(u32 offset);
extern void slbc_sram_write(u32 offset, u32 val);
#endif
struct _CPUQOS_V3_PACKAGE {
__u32 mode;
__u32 pid;
__u32 set_task;
__u32 group_id;
__u32 set_group;
};
#define CPUQOS_V3_SET_CPUQOS_MODE _IOW('g', 14, struct _CPUQOS_V3_PACKAGE)
#define CPUQOS_V3_SET_CT_TASK _IOW('g', 15, struct _CPUQOS_V3_PACKAGE)
#define CPUQOS_V3_SET_CT_GROUP _IOW('g', 16, struct _CPUQOS_V3_PACKAGE)
#endif