Lines Matching +full:no +full:- +full:1 +full:- +full:8 +full:- +full:v
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 2015-2017 Google, Inc
17 #define VDO_MAX_SIZE (VDO_MAX_OBJECTS + 1)
21 * ----------
23 * <15> :: VDM type ( 1b == structured, 0b == unstructured )
26 * <10:8> :: object position (1-7 valid ... used for enter/exit mode only)
37 #define VDO_SVDM_TYPE (1 << 15)
39 #define VDO_OPOS(x) ((x) << 8)
46 #define CMDT_RSP_ACK 1
52 #define VDO_SRC_RESPONDER (1 << 5)
54 #define CMD_DISCOVER_IDENT 1
65 #define VDO_CMD_SEND_INFO VDO_CMD_VENDOR(1)
70 #define VDO_CMD_ERASE_SIG VDO_CMD_VENDOR(8)
78 #define PD_VDO_SVDM(vdo) (((vdo) >> 15) & 1)
80 #define PD_VDO_OPOS(vdo) (((vdo) >> 8) & 0x7)
85 * SVDM Identity request -> response
91 * [1] :: Identitiy header
98 #define VDO_INDEX_IDH 1
106 * --------------------
110 * <26> :: modal operation supported (1b == yes)
114 * <15:0> :: USB-IF assigned VID for this cable vendor
122 #define IDH_PTYPE_HUB 1
135 #define IDH_PTYPE_DFP_HUB 1
150 #define PD_IDH_MODAL_SUPP(vdo) ((vdo) & (1 << 26))
156 * -------------
157 * <31:0> : USB-IF assigned XID for this cable
164 * -----------
173 * --------
179 * <10:8> :: Vconn power (AMA only)
180 * <7> :: Vconn required (AMA only, 0b == no, 1b == yes)
181 * <6> :: Vbus required (AMA only, 0b == yes, 1b == no)
192 #define DEV_USB2_BILLBOARD BIT(1)
202 #define AMA_VCONN_PWR_1W5 1
211 #define AMA_VCONN_REQ 1
215 #define AMA_VBUS_NOT_REQ 1
220 #define UFP_ALTMODE_RECFG BIT(1)
225 #define UFP_USB32_GEN1 1
231 | ((vcpwr) & 0x7) << 8 | (vcr) << 7 | (vbr) << 6 | ((alt) & 0x7) << 3 \
236 * --------
246 #define DFP_VDO_VER1_1 1
248 #define HOST_USB3_CAPABLE BIT(1)
259 * ---------
263 * <19:18> :: type-C to Type-A/B/C/Captive (00b == A, 01 == B, 10 == C, 11 == Captive)
265 * <16:13> :: cable latency (0001 == <10ns(~1m length))
267 * <10> :: SSTX1 Directionality support (0b == fixed, 1b == cfgable)
269 * <8> :: SSRX1 Directionality support
272 * <4> :: Vbus through cable (0b == no, 1b == yes)
273 * <3> :: SOP" controller present? (0b == no, 1b == yes)
277 * ---------
282 * <19:18> :: Type-C to Type-C/Captive (10b == C, 11b == Captive)
284 * <16:13> :: cable latency (0001 == <10ns(~1m length))
286 * <10:9> :: Maximum Vbus voltage (00b == 20V, 01b == 30V, 10b == 40V, 11b == 50V)
287 * <8:7> :: Reserved, Shall be set to zero
292 * Active Cable VDO 1 (PD Rev3.0+)
293 * ---------
300 * <16:13> :: cable latency (0001 == <10ns(~1m length))
302 * <10:9> :: Maximum Vbus voltage (00b == 20V, 01b == 30V, 10b == 40V, 11b == 50V)
303 * <8> :: SBU supported (0b == supported, 1b == not supported)
304 * <7> :: SBU type (0b == passive, 1b == active)
306 * <4> :: Vbus through cable (0b == no, 1b == yes)
307 * <3> :: SOP" controller present? (0b == no, 1b == yes)
316 #define CABLE_BTYPE 1
321 #define CABLE_LATENCY_1M 1
328 #define CABLE_LATENCY_7M_PLUS 8
332 #define PCABLE_VCONN_REQ 1
338 #define CABLE_MAX_VBUS_30V 1
344 #define ACABLE_SBU_NOT_SUPP 1
346 #define ACABLE_SBU_ACTIVE 1
350 #define CABLE_CURR_3A 1
355 #define CABLE_USBSS_U31_GEN1 1
360 #define CABLE_USB32_GEN1 1
367 | (tx2d) << 9 | (rx1d) << 8 | (rx2d) << 7 | ((cur) & 0x3) << 5 \
376 | ((vbm) & 0x3) << 9 | (sbu) << 8 | (sbut) << 7 | ((cur) & 0x3) << 5 \
384 * ---------
389 * <11> :: U3 to U0 transition mode (0b == direct, 1b == through U3S)
390 * <10> :: Physical connection (0b == copper, 1b == optical)
391 * <9> :: Active element (0b == redriver, 1b == retimer)
392 * <8> :: USB4 supported (0b == yes, 1b == no)
394 * <5> :: USB2 supported (0b == yes, 1b == no)
395 * <4> :: USB3.2 supported (0b == yes, 1b == no)
396 * <3> :: USB lanes supported (0b == one lane, 1b == two lanes)
397 * <2> :: Optically isolated active cable (0b == no, 1b == yes)
398 * <1> :: Reserved, Shall be set to zero
399 * <0> :: USB gen (0b == gen1, 1b == gen2+)
403 #define ACAB2_U3_CLD_10MW 1
412 #define ACAB2_U3U0_U3S 1
414 #define ACAB2_PHY_OPTICAL 1
416 #define ACAB2_RETIMER 1
418 #define ACAB2_USB4_NOT_SUPP 1
420 #define ACAB2_USB2_NOT_SUPP 1
422 #define ACAB2_USB32_NOT_SUPP 1
424 #define ACAB2_LANES_TWO 1
426 #define ACAB2_OPT_ISO_YES 1
428 #define ACAB2_GEN_2_PLUS 1
432 | (trans) << 11 | (phy) << 10 | (ele) << 9 | (u4) << 8 \
438 * ---------
442 * <11> :: SSTX1 Directionality support (0b == fixed, 1b == cfgable)
445 * <8> :: SSRX2 Directionality support
453 | (tx1d) << 11 | (tx2d) << 10 | (rx1d) << 9 | (rx2d) << 8 \
457 #define PD_VDO_AMA_VCONN_REQ(vdo) (((vdo) >> 4) & 1)
458 #define PD_VDO_AMA_VBUS_REQ(vdo) (((vdo) >> 3) & 1)
461 #define AMA_USBSS_U31_GEN1 1
467 * ---------
472 * <16:15> :: Maximum Vbus voltage (00b == 20V, 01b == 30V, 10b == 40V, 11b == 50V)
473 * <14> :: Charge through current support (0b == 3A, 1b == 5A)
476 * <6:1> :: Ground impedance
477 * <0> :: Charge through support (0b == no, 1b == yes)
481 #define VPD_MAX_VBUS_30V 1
485 #define VPDCT_CURR_5A 1
487 #define VPDCT_SUPP 1
492 | ((gi) & 0x3f) << 1 | (ct))
495 * SVDM Discover SVIDs request -> response
506 /* USB-IF SIDs */
509 #define USB_SID_MHL 0xff02 /* Mobile High-Definition Link */