aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 8f882549edee..983506789402 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -927,6 +927,8 @@ struct dev_links_info {
927 * @offline: Set after successful invocation of bus type's .offline(). 927 * @offline: Set after successful invocation of bus type's .offline().
928 * @of_node_reused: Set if the device-tree node is shared with an ancestor 928 * @of_node_reused: Set if the device-tree node is shared with an ancestor
929 * device. 929 * device.
930 * @dma_coherent: this particular device is dma coherent, even if the
931 * architecture supports non-coherent devices.
930 * 932 *
931 * At the lowest level, every device in a Linux system is represented by an 933 * At the lowest level, every device in a Linux system is represented by an
932 * instance of struct device. The device structure contains the information 934 * instance of struct device. The device structure contains the information
@@ -1016,6 +1018,11 @@ struct device {
1016 bool offline_disabled:1; 1018 bool offline_disabled:1;
1017 bool offline:1; 1019 bool offline:1;
1018 bool of_node_reused:1; 1020 bool of_node_reused:1;
1021#if defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_DEVICE) || \
1022 defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU) || \
1023 defined(CONFIG_ARCH_HAS_SYNC_DMA_FOR_CPU_ALL)
1024 bool dma_coherent:1;
1025#endif
1019}; 1026};
1020 1027
1021static inline struct device *kobj_to_dev(struct kobject *kobj) 1028static inline struct device *kobj_to_dev(struct kobject *kobj)