diff options
Diffstat (limited to 'include/linux/ion.h')
| -rw-r--r-- | include/linux/ion.h | 13 | 
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/ion.h b/include/linux/ion.h index 3bf85fd0438..d44ce69446d 100644 --- a/include/linux/ion.h +++ b/include/linux/ion.h @@ -149,7 +149,7 @@ void ion_free(struct ion_client *client, struct ion_handle *handle);   * This function queries the heap for a particular handle to get the   * handle's physical address.  It't output is only correct if   * a heap returns physically contiguous memory -- in other cases - * this api should not be implemented -- ion_map_dma should be used + * this api should not be implemented -- ion_sg_table should be used   * instead.  Returns -EINVAL if the handle is invalid.  This has   * no implications on the reference counting of the handle --   * the returned value may not be valid if the caller is not @@ -159,6 +159,17 @@ int ion_phys(struct ion_client *client, struct ion_handle *handle,  	     ion_phys_addr_t *addr, size_t *len);  /** + * ion_map_dma - return an sg_table describing a handle + * @client:	the client + * @handle:	the handle + * + * This function returns the sg_table describing + * a particular ion handle. + */ +struct sg_table *ion_sg_table(struct ion_client *client, +			      struct ion_handle *handle); + +/**   * ion_map_kernel - create mapping for the given handle   * @client:	the client   * @handle:	handle to map  |