msm: Add SMI callbacks to ION platform data.
As part of the transition from PMEM to ION, the interface for accessing SMI memory needs to be accessible from ION as it was from PMEM. Change-Id: Ia6f9475dc030bbb0dafdcc1b6dbe93c7cdeca268 Signed-off-by: Alex Bird <alexbird@codeaurora.org>
This commit is contained in:
@@ -112,13 +112,21 @@ struct ion_platform_heap {
|
||||
|
||||
/**
|
||||
* struct ion_platform_data - array of platform heaps passed from board file
|
||||
* @nr: number of structures in the array
|
||||
* @heaps: array of platform_heap structions
|
||||
* @nr: number of structures in the array
|
||||
* @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
|
||||
* @heaps: array of platform_heap structions
|
||||
*
|
||||
* Provided by the board file in the form of platform data to a platform device.
|
||||
*/
|
||||
struct ion_platform_data {
|
||||
int nr;
|
||||
void (*request_region)(void *);
|
||||
void (*release_region)(void *);
|
||||
void *(*setup_region)(void);
|
||||
struct ion_platform_heap heaps[];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user