2019-09-05 02:57:57 +09:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
|
|
|
|
/*
|
2020-02-05 09:03:24 +09:00
|
|
|
* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
|
2019-09-05 02:57:57 +09:00
|
|
|
*/
|
|
|
|
#ifndef _MSM_ION_IDS_H
|
|
|
|
#define _MSM_ION_IDS_H
|
|
|
|
|
2019-09-20 02:29:28 +09:00
|
|
|
#define ION_BIT(nr) (1U << (nr))
|
|
|
|
|
2019-09-05 02:57:57 +09:00
|
|
|
/**
|
|
|
|
* These are the only ids that should be used for Ion heap ids.
|
|
|
|
* The ids listed are the order in which allocation will be attempted
|
|
|
|
* if specified. Don't swap the order of heap ids unless you know what
|
|
|
|
* you are doing!
|
|
|
|
* Id's are spaced by purpose to allow new Id's to be inserted in-between (for
|
|
|
|
* possible fallbacks)
|
|
|
|
*/
|
|
|
|
|
2019-09-20 02:29:28 +09:00
|
|
|
#define ION_SYSTEM_HEAP_ID ION_BIT(0)
|
2020-02-05 09:03:24 +09:00
|
|
|
#define ION_TUI_CARVEOUT_HEAP_ID ION_BIT(2)
|
2019-09-20 02:29:28 +09:00
|
|
|
#define ION_QSECOM_TA_HEAP_ID ION_BIT(8)
|
|
|
|
#define ION_CAMERA_HEAP_ID ION_BIT(9)
|
|
|
|
#define ION_ADSP_HEAP_ID ION_BIT(11)
|
|
|
|
#define ION_USER_CONTIG_HEAP_ID ION_BIT(13)
|
|
|
|
#define ION_QSECOM_HEAP_ID ION_BIT(14)
|
|
|
|
#define ION_AUDIO_HEAP_ID ION_BIT(15)
|
|
|
|
#define ION_CP_MM_HEAP_ID ION_BIT(16)
|
|
|
|
#define ION_SECURE_HEAP_ID ION_BIT(17)
|
|
|
|
#define ION_SECURE_DISPLAY_HEAP_ID ION_BIT(18)
|
|
|
|
#define ION_SPSS_HEAP_ID ION_BIT(21)
|
|
|
|
#define ION_SECURE_CARVEOUT_HEAP_ID ION_BIT(22)
|
|
|
|
#define ION_HEAP_ID_RESERVED ION_BIT(31)
|
2019-09-05 02:57:57 +09:00
|
|
|
|
|
|
|
#endif /* _MSM_ION_IDS_H */
|