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

TOMOYO Linux Cross Reference
Linux/include/soc/qcom/tcs.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 ] ~

Diff markup

Differences between /include/soc/qcom/tcs.h (Version linux-6.12-rc7) and /include/soc/qcom/tcs.h (Version linux-5.6.19)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*                                                  2 /*
  3  * Copyright (c) 2016-2019, The Linux Foundati      3  * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
  4  */                                                 4  */
  5                                                     5 
  6 #ifndef __SOC_QCOM_TCS_H__                          6 #ifndef __SOC_QCOM_TCS_H__
  7 #define __SOC_QCOM_TCS_H__                          7 #define __SOC_QCOM_TCS_H__
  8                                                     8 
  9 #define MAX_RPMH_PAYLOAD        16                  9 #define MAX_RPMH_PAYLOAD        16
 10                                                    10 
 11 /**                                                11 /**
 12  * rpmh_state: state for the request               12  * rpmh_state: state for the request
 13  *                                                 13  *
 14  * RPMH_SLEEP_STATE:       State of the resour     14  * RPMH_SLEEP_STATE:       State of the resource when the processor subsystem
 15  *                         is powered down. Th     15  *                         is powered down. There is no client using the
 16  *                         resource actively.      16  *                         resource actively.
 17  * RPMH_WAKE_ONLY_STATE:   Resume resource sta     17  * RPMH_WAKE_ONLY_STATE:   Resume resource state to the value previously
 18  *                         requested before th     18  *                         requested before the processor was powered down.
 19  * RPMH_ACTIVE_ONLY_STATE: Active or AMC mode      19  * RPMH_ACTIVE_ONLY_STATE: Active or AMC mode requests. Resource state
 20  *                         is aggregated immed     20  *                         is aggregated immediately.
 21  */                                                21  */
 22 enum rpmh_state {                                  22 enum rpmh_state {
 23         RPMH_SLEEP_STATE,                          23         RPMH_SLEEP_STATE,
 24         RPMH_WAKE_ONLY_STATE,                      24         RPMH_WAKE_ONLY_STATE,
 25         RPMH_ACTIVE_ONLY_STATE,                    25         RPMH_ACTIVE_ONLY_STATE,
 26 };                                                 26 };
 27                                                    27 
 28 /**                                                28 /**
 29  * struct tcs_cmd: an individual request to RP     29  * struct tcs_cmd: an individual request to RPMH.
 30  *                                                 30  *
 31  * @addr: the address of the resource slv_id:1     31  * @addr: the address of the resource slv_id:18:16 | offset:0:15
 32  * @data: the resource state request               32  * @data: the resource state request
 33  * @wait: ensure that this command is complete !!  33  * @wait: wait for this request to be complete before sending the next
 34  *        Setting "wait" here only makes sense << 
 35  *        active-only transfers, this is becau << 
 36  *        rpmh_write() - Always waits.         << 
 37  *                       (DEFINE_RPMH_MSG_ONST << 
 38  *        rpmh_write_async() - Never waits.    << 
 39  *                       (There's no request c << 
 40  */                                                34  */
 41 struct tcs_cmd {                                   35 struct tcs_cmd {
 42         u32 addr;                                  36         u32 addr;
 43         u32 data;                                  37         u32 data;
 44         u32 wait;                                  38         u32 wait;
 45 };                                                 39 };
 46                                                    40 
 47 /**                                                41 /**
 48  * struct tcs_request: A set of tcs_cmds sent      42  * struct tcs_request: A set of tcs_cmds sent together in a TCS
 49  *                                                 43  *
 50  * @state:          state for the request.         44  * @state:          state for the request.
 51  * @wait_for_compl: wait until we get a respon     45  * @wait_for_compl: wait until we get a response from the h/w accelerator
 52  *                  (same as setting cmd->wait << 
 53  * @num_cmds:       the number of @cmds in thi     46  * @num_cmds:       the number of @cmds in this request
 54  * @cmds:           an array of tcs_cmds           47  * @cmds:           an array of tcs_cmds
 55  */                                                48  */
 56 struct tcs_request {                               49 struct tcs_request {
 57         enum rpmh_state state;                     50         enum rpmh_state state;
 58         u32 wait_for_compl;                        51         u32 wait_for_compl;
 59         u32 num_cmds;                              52         u32 num_cmds;
 60         struct tcs_cmd *cmds;                      53         struct tcs_cmd *cmds;
 61 };                                                 54 };
 62                                                    55 
 63 #define BCM_TCS_CMD_COMMIT_SHFT         30         56 #define BCM_TCS_CMD_COMMIT_SHFT         30
 64 #define BCM_TCS_CMD_COMMIT_MASK         0x4000     57 #define BCM_TCS_CMD_COMMIT_MASK         0x40000000
 65 #define BCM_TCS_CMD_VALID_SHFT          29         58 #define BCM_TCS_CMD_VALID_SHFT          29
 66 #define BCM_TCS_CMD_VALID_MASK          0x2000     59 #define BCM_TCS_CMD_VALID_MASK          0x20000000
 67 #define BCM_TCS_CMD_VOTE_X_SHFT         14         60 #define BCM_TCS_CMD_VOTE_X_SHFT         14
 68 #define BCM_TCS_CMD_VOTE_MASK           0x3fff     61 #define BCM_TCS_CMD_VOTE_MASK           0x3fff
 69 #define BCM_TCS_CMD_VOTE_Y_SHFT         0          62 #define BCM_TCS_CMD_VOTE_Y_SHFT         0
 70 #define BCM_TCS_CMD_VOTE_Y_MASK         0xfffc     63 #define BCM_TCS_CMD_VOTE_Y_MASK         0xfffc000
 71                                                    64 
 72 /* Construct a Bus Clock Manager (BCM) specifi     65 /* Construct a Bus Clock Manager (BCM) specific TCS command */
 73 #define BCM_TCS_CMD(commit, valid, vote_x, vot     66 #define BCM_TCS_CMD(commit, valid, vote_x, vote_y)              \
 74         (((commit) << BCM_TCS_CMD_COMMIT_SHFT)     67         (((commit) << BCM_TCS_CMD_COMMIT_SHFT) |                \
 75         ((valid) << BCM_TCS_CMD_VALID_SHFT) |      68         ((valid) << BCM_TCS_CMD_VALID_SHFT) |                   \
 76         ((cpu_to_le32(vote_x) &                    69         ((cpu_to_le32(vote_x) &                                 \
 77         BCM_TCS_CMD_VOTE_MASK) << BCM_TCS_CMD_     70         BCM_TCS_CMD_VOTE_MASK) << BCM_TCS_CMD_VOTE_X_SHFT) |    \
 78         ((cpu_to_le32(vote_y) &                    71         ((cpu_to_le32(vote_y) &                                 \
 79         BCM_TCS_CMD_VOTE_MASK) << BCM_TCS_CMD_     72         BCM_TCS_CMD_VOTE_MASK) << BCM_TCS_CMD_VOTE_Y_SHFT))
 80                                                    73 
 81 #endif /* __SOC_QCOM_TCS_H__ */                    74 #endif /* __SOC_QCOM_TCS_H__ */
 82                                                    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