|
@@ -101,19 +101,19 @@ void ion_buffer_destroy(struct ion_buffer *buffer);
|
|
|
* map_dma and map_kernel return pointer on success, ERR_PTR on error.
|
|
|
*/
|
|
|
struct ion_heap_ops {
|
|
|
- int (*allocate) (struct ion_heap *heap,
|
|
|
- struct ion_buffer *buffer, unsigned long len,
|
|
|
- unsigned long align, unsigned long flags);
|
|
|
- void (*free) (struct ion_buffer *buffer);
|
|
|
- int (*phys) (struct ion_heap *heap, struct ion_buffer *buffer,
|
|
|
- ion_phys_addr_t *addr, size_t *len);
|
|
|
- struct sg_table *(*map_dma) (struct ion_heap *heap,
|
|
|
- struct ion_buffer *buffer);
|
|
|
- void (*unmap_dma) (struct ion_heap *heap, struct ion_buffer *buffer);
|
|
|
- void * (*map_kernel) (struct ion_heap *heap, struct ion_buffer *buffer);
|
|
|
- void (*unmap_kernel) (struct ion_heap *heap, struct ion_buffer *buffer);
|
|
|
- int (*map_user) (struct ion_heap *mapper, struct ion_buffer *buffer,
|
|
|
- struct vm_area_struct *vma);
|
|
|
+ int (*allocate)(struct ion_heap *heap,
|
|
|
+ struct ion_buffer *buffer, unsigned long len,
|
|
|
+ unsigned long align, unsigned long flags);
|
|
|
+ void (*free)(struct ion_buffer *buffer);
|
|
|
+ int (*phys)(struct ion_heap *heap, struct ion_buffer *buffer,
|
|
|
+ ion_phys_addr_t *addr, size_t *len);
|
|
|
+ struct sg_table * (*map_dma)(struct ion_heap *heap,
|
|
|
+ struct ion_buffer *buffer);
|
|
|
+ void (*unmap_dma)(struct ion_heap *heap, struct ion_buffer *buffer);
|
|
|
+ void * (*map_kernel)(struct ion_heap *heap, struct ion_buffer *buffer);
|
|
|
+ void (*unmap_kernel)(struct ion_heap *heap, struct ion_buffer *buffer);
|
|
|
+ int (*map_user)(struct ion_heap *mapper, struct ion_buffer *buffer,
|
|
|
+ struct vm_area_struct *vma);
|
|
|
};
|
|
|
|
|
|
/**
|