diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index b093405ed525..204ff64279fd 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -730,6 +730,28 @@ struct device_dma_parameters { | |||
| 730 | }; | 730 | }; |
| 731 | 731 | ||
| 732 | /** | 732 | /** |
| 733 | * struct device_connection - Device Connection Descriptor | ||
| 734 | * @endpoint: The names of the two devices connected together | ||
| 735 | * @id: Unique identifier for the connection | ||
| 736 | * @list: List head, private, for internal use only | ||
| 737 | */ | ||
| 738 | struct device_connection { | ||
| 739 | const char *endpoint[2]; | ||
| 740 | const char *id; | ||
| 741 | struct list_head list; | ||
| 742 | }; | ||
| 743 | |||
| 744 | void *device_connection_find_match(struct device *dev, const char *con_id, | ||
| 745 | void *data, | ||
| 746 | void *(*match)(struct device_connection *con, | ||
| 747 | int ep, void *data)); | ||
| 748 | |||
| 749 | struct device *device_connection_find(struct device *dev, const char *con_id); | ||
| 750 | |||
| 751 | void device_connection_add(struct device_connection *con); | ||
| 752 | void device_connection_remove(struct device_connection *con); | ||
| 753 | |||
| 754 | /** | ||
| 733 | * enum device_link_state - Device link states. | 755 | * enum device_link_state - Device link states. |
| 734 | * @DL_STATE_NONE: The presence of the drivers is not being tracked. | 756 | * @DL_STATE_NONE: The presence of the drivers is not being tracked. |
| 735 | * @DL_STATE_DORMANT: None of the supplier/consumer drivers is present. | 757 | * @DL_STATE_DORMANT: None of the supplier/consumer drivers is present. |
