mali mess
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / gpu / mt8127 / mali / ump / common / ump_kernel_memory_backend.h
index ad35b6f91853bfd975a4c4ef96dad2cec96b0084..3163756fa3e1d4cf2afae884732baf1d6a098977 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This confidential and proprietary software may be used only as
  * authorised by a licensing agreement from ARM Limited
- * (C) COPYRIGHT 2008-2011, 2013 ARM Limited
+ * (C) COPYRIGHT 2008-2011, 2013-2015 ARM Limited
  * ALL RIGHTS RESERVED
  * The entire notice above must be reproduced on all authorised
  * copies and copies may only be made to the extent permitted
 
 
 typedef struct ump_memory_allocation {
-       void                    phys_addr;
-       void                    mapping;
+       void                     *phys_addr;
+       void                     *mapping;
        unsigned long             size;
        ump_dd_handle             handle;
-       void                    process_mapping_info;
+       void                     *process_mapping_info;
        u32                       cookie;               /**< necessary on some U/K interface implementations */
-       struct ump_session_data * ump_session;          /**< Session that this allocation belongs to */
+       struct ump_session_data *ump_session;           /**< Session that this allocation belongs to */
        _mali_osk_list_t          list;                 /**< List for linking together memory allocations into the session's memory head */
        u32 is_cached;
 } ump_memory_allocation;
 
 typedef struct ump_memory_backend {
-       int  (*allocate)(void* ctx, ump_dd_mem * descriptor);
-       void (*release)(void* ctx, ump_dd_mem * descriptor);
-       void (*shutdown)(struct ump_memory_backend * backend);
-       u32  (*stat)(struct ump_memory_backend *backend);
-       int  (*pre_allocate_physical_check)(void *ctx, u32 size);
-       u32  (*adjust_to_mali_phys)(void *ctx, u32 cpu_phys);
-       void * ctx;
+       int (*allocate)(void *ctx, ump_dd_mem *descriptor);
+       void (*release)(void *ctx, ump_dd_mem *descriptor);
+       void (*shutdown)(struct ump_memory_backend *backend);
+       u32(*stat)(struct ump_memory_backend *backend);
+       int (*pre_allocate_physical_check)(void *ctx, u32 size);
+       u32(*adjust_to_mali_phys)(void *ctx, u32 cpu_phys);
+       void *ctx;
 } ump_memory_backend;
 
-ump_memory_backend * ump_memory_backend_create ( void );
-void ump_memory_backend_destroy( void );
+ump_memory_backend *ump_memory_backend_create(void);
+void ump_memory_backend_destroy(void);
 
 #endif /*__UMP_KERNEL_MEMORY_BACKEND_H__ */