gpu: ion: Add callbacks to enable SMI voting in ION.

This change is part of the move from PMEM to ION. ION needs an SMI
voting interface smiliar to PMEM's.

Change-Id: I18888f46198848694fb7e1e0d2671074bf51d7c9
Signed-off-by: Alex Bird <alexbird@codeaurora.org>
This commit is contained in:
Alex Bird
2011-11-07 12:33:42 -08:00
committed by Stephen Boyd
parent 2bd4109203
commit b340bc1b9b
3 changed files with 47 additions and 0 deletions

View File

@@ -98,6 +98,11 @@ struct ion_buffer;
* @name: used for debug purposes
* @base: base address of heap in physical memory if applicable
* @size: size of the heap in bytes if applicable
* @request_region: function to be called when the number of allocations goes
* from 0 -> 1
* @release_region: function to be called when the number of allocations goes
* from 1 -> 0
* @setup_region: function to be called upon ion registration
*
* Provided by the board file.
*/
@@ -108,6 +113,9 @@ struct ion_platform_heap {
ion_phys_addr_t base;
size_t size;
enum ion_memory_types memory_type;
void (*request_region)(void *);
void (*release_region)(void *);
void *(*setup_region)(void);
};
/**