Lines Matching +full:usb +full:- +full:port +full:- +full:id

1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * - linux/include/linux/extcon.h for extcon consumer device driver.
26 #define EXTCON_TYPE_USB BIT(0) /* USB connector */
33 * Define the unique id of supported external connectors
37 /* USB external connector */
46 * the USB connector, which means EXTCON_CHG_USB_SDP should always
54 #define EXTCON_CHG_USB_SDP 5 /* Standard Downstream Port */
55 #define EXTCON_CHG_USB_DCP 6 /* Dedicated Charging Port */
56 #define EXTCON_CHG_USB_CDP 7 /* Charging Downstream Port */
61 #define EXTCON_CHG_USB_PD 12 /* USB Power Delivery */
74 #define EXTCON_DISP_HDMI 40 /* High-Definition Multimedia Interface */
75 #define EXTCON_DISP_MHL 41 /* Mobile High-Definition Link */
78 #define EXTCON_DISP_DP 44 /* Display Port */
79 #define EXTCON_DISP_HMD 45 /* Head-Mounted Display */
81 #define EXTCON_DISP_EDP 47 /* Embedded Display Port */
102 * EXTCON_PROP_USB_[property name] : USB property
111 * - EXTCON_PROP_USB_VBUS
115 * - EXTCON_PROP_USB_TYPEC_POLARITY
119 * - EXTCON_PROP_USB_SS (SuperSpeed)
121 * @value: 0 (USB/USB2) or 1 (USB3)
122 * @default: 0 (USB/USB2)
131 #define EXTCON_PROP_USB_CNT (EXTCON_PROP_USB_MAX - EXTCON_PROP_USB_MIN + 1)
136 #define EXTCON_PROP_CHG_CNT (EXTCON_PROP_CHG_MAX - EXTCON_PROP_CHG_MIN + 1)
141 #define EXTCON_PROP_JACK_CNT (EXTCON_PROP_JACK_MAX - EXTCON_PROP_JACK_MIN + 1)
146 * - EXTCON_PROP_DISP_HPD (Hot Plug Detect)
157 #define EXTCON_PROP_DISP_CNT (EXTCON_PROP_DISP_MAX - EXTCON_PROP_DISP_MIN + 1)
174 * The 'id' argument indicates the defined external connector.
176 int extcon_get_state(struct extcon_dev *edev, unsigned int id);
180 * The 'id' argument indicates the defined external connector
185 * property of each external connector based on the id and property.
187 int extcon_get_property(struct extcon_dev *edev, unsigned int id,
191 unsigned int id, unsigned int prop);
197 * extcon_register_notifier(*edev, id, *nb) : Register a notifier block
202 int extcon_register_notifier(struct extcon_dev *edev, unsigned int id,
204 int extcon_unregister_notifier(struct extcon_dev *edev, unsigned int id,
207 struct extcon_dev *edev, unsigned int id,
210 struct extcon_dev *edev, unsigned int id,
236 static inline int extcon_get_state(struct extcon_dev *edev, unsigned int id) in extcon_get_state() argument
241 static inline int extcon_get_property(struct extcon_dev *edev, unsigned int id, in extcon_get_property() argument
249 unsigned int id, unsigned int prop) in extcon_get_property_capability() argument
255 unsigned int id, struct notifier_block *nb) in extcon_register_notifier() argument
261 unsigned int id, struct notifier_block *nb) in extcon_unregister_notifier() argument
267 struct extcon_dev *edev, unsigned int id, in devm_extcon_register_notifier() argument
270 return -ENOSYS; in devm_extcon_register_notifier()
274 struct extcon_dev *edev, unsigned int id, in devm_extcon_unregister_notifier() argument
302 return ERR_PTR(-ENODEV); in extcon_get_extcon_dev()
307 return ERR_PTR(-ENODEV); in extcon_find_edev_by_node()
313 return ERR_PTR(-ENODEV); in extcon_get_edev_by_phandle()
337 return -EINVAL; in extcon_register_interest()
342 return -EINVAL; in extcon_unregister_interest()