3 * (C) COPYRIGHT ARM Limited. All rights reserved.
5 * This program is free software and is provided to you under the terms of the
6 * GNU General Public License version 2 as published by the Free Software
7 * Foundation, and any use by you of this program is subject to the terms
10 * A copy of the licence is included with the program, and can also be obtained
11 * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12 * Boston, MA 02110-1301, USA.
20 #ifndef _BASE_MEM_PRIV_H_
21 #define _BASE_MEM_PRIV_H_
23 #define BASE_SYNCSET_OP_MSYNC (1U << 0)
24 #define BASE_SYNCSET_OP_CSYNC (1U << 1)
27 * This structure describe a basic memory coherency operation.
29 * @li a sync from CPU to Memory:
30 * - type = ::BASE_SYNCSET_OP_MSYNC
31 * - mem_handle = a handle to the memory object on which the operation
33 * - user_addr = the address of the range to be synced
34 * - size = the amount of data to be synced, in bytes
35 * - offset is ignored.
36 * @li a sync from Memory to CPU:
37 * - type = ::BASE_SYNCSET_OP_CSYNC
38 * - mem_handle = a handle to the memory object on which the operation
40 * - user_addr = the address of the range to be synced
41 * - size = the amount of data to be synced, in bytes.
42 * - offset is ignored.
44 typedef struct basep_syncset {
45 base_mem_handle mem_handle;