diff options
author | Suthikulpanit, Suravee <Suravee.Suthikulpanit@amd.com> | 2015-10-28 18:50:47 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-11-06 19:29:21 -0500 |
commit | 1b9863c6aa56d92126ec0d5c42eae25df52b7ca1 (patch) | |
tree | 27e1ad46de67d26f193f34eb50bcfaa46859aa3a /include/linux/property.h | |
parent | d764c21c7b1aa5ce982eaa8400517d8004d30267 (diff) |
device property: Introducing enum dev_dma_attr
A device could have one of the following DMA attributes:
* DMA not supported
* DMA non-coherent
* DMA coherent
So, this patch introduces enum dev_dma_attribute. This will be used by
new APIs introduced in later patches.
Signed-off-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/property.h')
-rw-r--r-- | include/linux/property.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/property.h b/include/linux/property.h index 463de52fe891..8eecf200bae5 100644 --- a/include/linux/property.h +++ b/include/linux/property.h | |||
@@ -27,6 +27,12 @@ enum dev_prop_type { | |||
27 | DEV_PROP_MAX, | 27 | DEV_PROP_MAX, |
28 | }; | 28 | }; |
29 | 29 | ||
30 | enum dev_dma_attr { | ||
31 | DEV_DMA_NOT_SUPPORTED, | ||
32 | DEV_DMA_NON_COHERENT, | ||
33 | DEV_DMA_COHERENT, | ||
34 | }; | ||
35 | |||
30 | bool device_property_present(struct device *dev, const char *propname); | 36 | bool device_property_present(struct device *dev, const char *propname); |
31 | int device_property_read_u8_array(struct device *dev, const char *propname, | 37 | int device_property_read_u8_array(struct device *dev, const char *propname, |
32 | u8 *val, size_t nval); | 38 | u8 *val, size_t nval); |