Server IP : 172.67.216.182 / Your IP : 172.68.164.43 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/src/linux-headers-5.15.0-142-generic/include/linux/firmware/imx/svc/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0+ */ /* * Copyright (C) 2016 Freescale Semiconductor, Inc. * Copyright 2017~2018 NXP * * Header file containing the public API for the System Controller (SC) * Miscellaneous (MISC) function. * * MISC_SVC (SVC) Miscellaneous Service * * Module for the Miscellaneous (MISC) service. */ #ifndef _SC_MISC_API_H #define _SC_MISC_API_H #include <linux/firmware/imx/sci.h> /* * This type is used to indicate RPC MISC function calls. */ enum imx_misc_func { IMX_SC_MISC_FUNC_UNKNOWN = 0, IMX_SC_MISC_FUNC_SET_CONTROL = 1, IMX_SC_MISC_FUNC_GET_CONTROL = 2, IMX_SC_MISC_FUNC_SET_MAX_DMA_GROUP = 4, IMX_SC_MISC_FUNC_SET_DMA_GROUP = 5, IMX_SC_MISC_FUNC_SECO_IMAGE_LOAD = 8, IMX_SC_MISC_FUNC_SECO_AUTHENTICATE = 9, IMX_SC_MISC_FUNC_DEBUG_OUT = 10, IMX_SC_MISC_FUNC_WAVEFORM_CAPTURE = 6, IMX_SC_MISC_FUNC_BUILD_INFO = 15, IMX_SC_MISC_FUNC_UNIQUE_ID = 19, IMX_SC_MISC_FUNC_SET_ARI = 3, IMX_SC_MISC_FUNC_BOOT_STATUS = 7, IMX_SC_MISC_FUNC_BOOT_DONE = 14, IMX_SC_MISC_FUNC_OTP_FUSE_READ = 11, IMX_SC_MISC_FUNC_OTP_FUSE_WRITE = 17, IMX_SC_MISC_FUNC_SET_TEMP = 12, IMX_SC_MISC_FUNC_GET_TEMP = 13, IMX_SC_MISC_FUNC_GET_BOOT_DEV = 16, IMX_SC_MISC_FUNC_GET_BUTTON_STATUS = 18, }; /* * Control Functions */ #ifdef CONFIG_IMX_SCU int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource, u8 ctrl, u32 val); int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, u32 resource, u8 ctrl, u32 *val); int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource, bool enable, u64 phys_addr); #else static inline int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource, u8 ctrl, u32 val) { return -ENOTSUPP; } static inline int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, u32 resource, u8 ctrl, u32 *val) { return -ENOTSUPP; } static inline int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource, bool enable, u64 phys_addr) { return -ENOTSUPP; } #endif #endif /* _SC_MISC_API_H */