From 3cc3878ee2fc4ce3c3e6211a343e783b4f0e6830 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Wed, 12 Jun 2013 19:52:18 +0900 Subject: [PATCH] add vendor specific flag for allocation add device type for physical memory Change-Id: I96ba6014473d82d22e3be52aa947a2c4a2ddd4f4 --- src/tbm_bufmgr.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/tbm_bufmgr.h b/src/tbm_bufmgr.h index 07654f6..af9b622 100755 --- a/src/tbm_bufmgr.h +++ b/src/tbm_bufmgr.h @@ -43,7 +43,7 @@ typedef struct _tbm_bo *tbm_bo; /* TBM_DEVICE_TYPE */ #define TBM_DEVICE_DEFAULT 0 /**< device type to get the default handle */ -#define TBM_DEVICE_CPU 1 /**< device type to get the virtual pointer */ +#define TBM_DEVICE_CPU 1 /**< device type to get the virtual memory */ #define TBM_DEVICE_2D 2 /**< device type to get the 2D memory handle */ #define TBM_DEVICE_3D 3 /**< device type to get the 3D memory handle */ #define TBM_DEVICE_MM 4 /**< device type to get the multimedia handle */ @@ -51,6 +51,7 @@ typedef struct _tbm_bo *tbm_bo; /* TBM_OPTION */ #define TBM_OPTION_READ (1 << 0) /**< access option to read */ #define TBM_OPTION_WRITE (1 << 1) /**< access option to write */ +#define TBM_OPTION_VENDOR (0xffff00000) /**< vendor specific option: it depends on the backend */ /** * @brief tbm_bo_handle @@ -70,10 +71,11 @@ typedef union _tbm_bo_handle */ enum TBM_BO_FLAGS { - TBM_BO_DEFAULT = 0, /**< physically non-contiguous memory */ - TBM_BO_SCANOUT = (1<<0), /**< physically contiguous memory */ - TBM_BO_NONCACHABLE = (1<<1), /**< non-cachable memory */ - TBM_BO_WC = (1<<2), /**< write-combine memory */ + TBM_BO_DEFAULT = 0, /**< default memory: it depends on the backend */ + TBM_BO_SCANOUT = (1<<0), /**< scanout memory */ + TBM_BO_NONCACHABLE = (1<<1), /**< non-cachable memory */ + TBM_BO_WC = (1<<2), /**< write-combine memory */ + TBM_BO_VENDOR = (0xffff00000), /**< vendor specific memory: it depends on the backend */ }; /* Functions for buffer manager */ -- 2.7.4