~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/firmware/imx/svc/rm.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0+ */
  2 /*
  3  * Copyright (C) 2016 Freescale Semiconductor, Inc.
  4  * Copyright 2017-2020 NXP
  5  *
  6  * Header file containing the public API for the System Controller (SC)
  7  * Resource Management (RM) function. This includes functions for
  8  * partitioning resources, pads, and memory regions.
  9  *
 10  * RM_SVC (SVC) Resource Management Service
 11  *
 12  * Module for the Resource Management (RM) service.
 13  */
 14 
 15 #ifndef _SC_RM_API_H
 16 #define _SC_RM_API_H
 17 
 18 #include <linux/firmware/imx/sci.h>
 19 
 20 /*
 21  * This type is used to indicate RPC RM function calls.
 22  */
 23 enum imx_sc_rm_func {
 24         IMX_SC_RM_FUNC_UNKNOWN = 0,
 25         IMX_SC_RM_FUNC_PARTITION_ALLOC = 1,
 26         IMX_SC_RM_FUNC_SET_CONFIDENTIAL = 31,
 27         IMX_SC_RM_FUNC_PARTITION_FREE = 2,
 28         IMX_SC_RM_FUNC_GET_DID = 26,
 29         IMX_SC_RM_FUNC_PARTITION_STATIC = 3,
 30         IMX_SC_RM_FUNC_PARTITION_LOCK = 4,
 31         IMX_SC_RM_FUNC_GET_PARTITION = 5,
 32         IMX_SC_RM_FUNC_SET_PARENT = 6,
 33         IMX_SC_RM_FUNC_MOVE_ALL = 7,
 34         IMX_SC_RM_FUNC_ASSIGN_RESOURCE = 8,
 35         IMX_SC_RM_FUNC_SET_RESOURCE_MOVABLE = 9,
 36         IMX_SC_RM_FUNC_SET_SUBSYS_RSRC_MOVABLE = 28,
 37         IMX_SC_RM_FUNC_SET_MASTER_ATTRIBUTES = 10,
 38         IMX_SC_RM_FUNC_SET_MASTER_SID = 11,
 39         IMX_SC_RM_FUNC_SET_PERIPHERAL_PERMISSIONS = 12,
 40         IMX_SC_RM_FUNC_IS_RESOURCE_OWNED = 13,
 41         IMX_SC_RM_FUNC_GET_RESOURCE_OWNER = 33,
 42         IMX_SC_RM_FUNC_IS_RESOURCE_MASTER = 14,
 43         IMX_SC_RM_FUNC_IS_RESOURCE_PERIPHERAL = 15,
 44         IMX_SC_RM_FUNC_GET_RESOURCE_INFO = 16,
 45         IMX_SC_RM_FUNC_MEMREG_ALLOC = 17,
 46         IMX_SC_RM_FUNC_MEMREG_SPLIT = 29,
 47         IMX_SC_RM_FUNC_MEMREG_FRAG = 32,
 48         IMX_SC_RM_FUNC_MEMREG_FREE = 18,
 49         IMX_SC_RM_FUNC_FIND_MEMREG = 30,
 50         IMX_SC_RM_FUNC_ASSIGN_MEMREG = 19,
 51         IMX_SC_RM_FUNC_SET_MEMREG_PERMISSIONS = 20,
 52         IMX_SC_RM_FUNC_IS_MEMREG_OWNED = 21,
 53         IMX_SC_RM_FUNC_GET_MEMREG_INFO = 22,
 54         IMX_SC_RM_FUNC_ASSIGN_PAD = 23,
 55         IMX_SC_RM_FUNC_SET_PAD_MOVABLE = 24,
 56         IMX_SC_RM_FUNC_IS_PAD_OWNED = 25,
 57         IMX_SC_RM_FUNC_DUMP = 27,
 58 };
 59 
 60 #if IS_ENABLED(CONFIG_IMX_SCU)
 61 bool imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource);
 62 int imx_sc_rm_get_resource_owner(struct imx_sc_ipc *ipc, u16 resource, u8 *pt);
 63 #else
 64 static inline bool
 65 imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource)
 66 {
 67         return true;
 68 }
 69 static inline int imx_sc_rm_get_resource_owner(struct imx_sc_ipc *ipc, u16 resource, u8 *pt)
 70 {
 71         return -EOPNOTSUPP;
 72 }
 73 #endif
 74 #endif
 75 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php