1 //////////////////////////////////////////////////////////////////////////////// 2 // 3 // Copyright (c) 2006-2007 MStar Semiconductor, Inc. 4 // All rights reserved. 5 // 6 // Unless otherwise stipulated in writing, any and all information contained 7 // herein regardless in any format shall remain the sole proprietary of 8 // MStar Semiconductor Inc. and be kept in strict confidence 9 // (��MStar Confidential Information��) by the recipient. 10 // Any unauthorized act including without limitation unauthorized disclosure, 11 // copying, use, reproduction, sale, distribution, modification, disassembling, 12 // reverse engineering and compiling of the contents of MStar Confidential 13 // Information is unlawful and strictly prohibited. MStar hereby reserves the 14 // rights to any and all damages, losses, costs and expenses resulting therefrom. 15 // 16 //////////////////////////////////////////////////////////////////////////////// 17 18 /////////////////////////////////////////////////////////////////////////////////////////////////// 19 /// 20 /// @file cma_mpool_manager.h 21 /// @brief CMA mpool Manager interface 22 /// @author MStar Semiconductor Inc. 23 /// 24 /////////////////////////////////////////////////////////////////////////////////////////////////// 25 26 #ifndef __DRV_CMA_POOL_IO_H__ 27 #define __DRV_CMA_POOL_IO_H__ 28 #include "mdrv_cma_pool_st.h" 29 30 //------------------------------------------------------------------------------------------------- 31 // IO command 32 //------------------------------------------------------------------------------------------------- 33 #define CMA_POOL_IOC_MAGIC 'P' 34 35 #define CMA_POOL_IOC_INIT _IOWR(CMA_POOL_IOC_MAGIC, 0x00, struct cma_heap_info) 36 #define CMA_POOL_IOC_ALLOC _IOWR(CMA_POOL_IOC_MAGIC, 0x02, struct cma_alloc_args) 37 #define CMA_POOL_IOC_FREE _IOWR(CMA_POOL_IOC_MAGIC, 0x03, struct cma_free_args) 38 #define CMA_POOL_IOC_RELEASE _IOW(CMA_POOL_IOC_MAGIC, 0x04, unsigned int) 39 #define CMA_POOL_IOC_GET_HEAP_INFO_FROM_PA _IOWR(CMA_POOL_IOC_MAGIC, 0x05, struct cma_get_info_from_pa) 40 #define CMA_POOL_IOC_KERNEL_MODE_GET_USER_VA _IOWR(CMA_POOL_IOC_MAGIC, 0x06, struct cma_heap_get_user_va) 41 #define CMA_POOL_IOC_KERNEL_MODE_MAPPING_USER_VA_PAGE _IOWR(CMA_POOL_IOC_MAGIC, 0x07, struct cma_mmap_user_va_page) 42 43 44 #endif 45 46