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
18 #define VDO_MAX_SIZE (VDO_MAX_OBJECTS + 1)
22 * ----------
24 * <15> :: VDM type ( 1b == structured, 0b == unstructured )
27 * <10:8> :: object position (1-7 valid ... used for enter/exit mode only)
38 #define VDO_SVDM_TYPE (1 << 15)
40 #define VDO_OPOS(x) ((x) << 8)
47 #define CMDT_RSP_ACK 1
53 #define VDO_SRC_RESPONDER (1 << 5)
55 #define CMD_DISCOVER_IDENT 1
66 #define VDO_CMD_SEND_INFO VDO_CMD_VENDOR(1)
71 #define VDO_CMD_ERASE_SIG VDO_CMD_VENDOR(8)
79 #define PD_VDO_SVDM(vdo) (((vdo) >> 15) & 1)
81 #define PD_VDO_OPOS(vdo) (((vdo) >> 8) & 0x7)
86 * SVDM Identity request -> response
93 * [1] :: Identitiy header
96 * [4] :: Cable VDO 1
102 #define VDO_INDEX_IDH 1
112 * --------------------
116 * <26> :: modal operation supported (1b == yes)
120 * <15:0> :: USB-IF assigned VID for this cable vendor
128 #define IDH_PTYPE_HUB 1
141 #define IDH_PTYPE_DFP_HUB 1
156 #define PD_IDH_MODAL_SUPP(vdo) ((vdo) & (1 << 26))
159 #define PD_IDH_HOST_SUPP(vdo) ((vdo) & (1 << 31))
163 * -------------
164 * <31:0> : USB-IF assigned XID for this cable
171 * -----------
180 * --------
186 * <10:8> :: Vconn power (AMA only)
187 * <7> :: Vconn required (AMA only, 0b == no, 1b == yes)
188 * <6> :: Vbus required (AMA only, 0b == yes, 1b == no)
199 #define DEV_USB2_BILLBOARD BIT(1)
209 #define AMA_VCONN_PWR_1W5 1
218 #define AMA_VCONN_REQ 1
222 #define AMA_VBUS_NOT_REQ 1
227 #define UFP_ALTMODE_RECFG BIT(1)
232 #define UFP_USB32_GEN1 1
238 | ((vcpwr) & 0x7) << 8 | (vcr) << 7 | (vbr) << 6 | ((alt) & 0x7) << 3 \
243 * --------
253 #define DFP_VDO_VER1_1 1
255 #define HOST_USB3_CAPABLE BIT(1)
266 * ---------
270 * <19:18> :: type-C to Type-A/B/C/Captive (00b == A, 01 == B, 10 == C, 11 == Captive)
272 * <16:13> :: cable latency (0001 == <10ns(~1m length))
274 * <10> :: SSTX1 Directionality support (0b == fixed, 1b == cfgable)
276 * <8> :: SSRX1 Directionality support
279 * <4> :: Vbus through cable (0b == no, 1b == yes)
280 * <3> :: SOP" controller present? (0b == no, 1b == yes)
284 * ---------
289 * <19:18> :: Type-C to Type-C/Captive (10b == C, 11b == Captive)
291 * <16:13> :: cable latency (0001 == <10ns(~1m length))
293 * <10:9> :: Maximum Vbus voltage (00b == 20V, 01b == 30V, 10b == 40V, 11b == 50V)
294 * <8:7> :: Reserved, Shall be set to zero
299 * Active Cable VDO 1 (PD Rev3.0+)
300 * ---------
307 * <16:13> :: cable latency (0001 == <10ns(~1m length))
309 * <10:9> :: Maximum Vbus voltage (00b == 20V, 01b == 30V, 10b == 40V, 11b == 50V)
310 * <8> :: SBU supported (0b == supported, 1b == not supported)
311 * <7> :: SBU type (0b == passive, 1b == active)
313 * <4> :: Vbus through cable (0b == no, 1b == yes)
314 * <3> :: SOP" controller present? (0b == no, 1b == yes)
323 #define CABLE_BTYPE 1
328 #define CABLE_LATENCY_1M 1
335 #define CABLE_LATENCY_7M_PLUS 8
339 #define PCABLE_VCONN_REQ 1
345 #define CABLE_MAX_VBUS_30V 1
351 #define ACABLE_SBU_NOT_SUPP 1
353 #define ACABLE_SBU_ACTIVE 1
357 #define CABLE_CURR_3A 1
362 #define CABLE_USBSS_U31_GEN1 1
367 #define CABLE_USB32_GEN1 1
374 | (tx2d) << 9 | (rx1d) << 8 | (rx2d) << 7 | ((cur) & 0x3) << 5 \
383 | ((vbm) & 0x3) << 9 | (sbu) << 8 | (sbut) << 7 | ((cur) & 0x3) << 5 \
391 * ---------
396 * <11> :: U3 to U0 transition mode (0b == direct, 1b == through U3S)
397 * <10> :: Physical connection (0b == copper, 1b == optical)
398 * <9> :: Active element (0b == redriver, 1b == retimer)
399 * <8> :: USB4 supported (0b == yes, 1b == no)
401 * <5> :: USB2 supported (0b == yes, 1b == no)
402 * <4> :: USB3.2 supported (0b == yes, 1b == no)
403 * <3> :: USB lanes supported (0b == one lane, 1b == two lanes)
404 * <2> :: Optically isolated active cable (0b == no, 1b == yes)
405 * <1> :: Reserved, Shall be set to zero
406 * <0> :: USB gen (0b == gen1, 1b == gen2+)
410 #define ACAB2_U3_CLD_10MW 1
419 #define ACAB2_U3U0_U3S 1
421 #define ACAB2_PHY_OPTICAL 1
423 #define ACAB2_RETIMER 1
425 #define ACAB2_USB4_NOT_SUPP 1
427 #define ACAB2_USB2_NOT_SUPP 1
429 #define ACAB2_USB32_NOT_SUPP 1
431 #define ACAB2_LANES_TWO 1
433 #define ACAB2_OPT_ISO_YES 1
435 #define ACAB2_GEN_2_PLUS 1
439 | (trans) << 11 | (phy) << 10 | (ele) << 9 | (u4) << 8 \
445 * ---------
449 * <11> :: SSTX1 Directionality support (0b == fixed, 1b == cfgable)
452 * <8> :: SSRX2 Directionality support
460 | (tx1d) << 11 | (tx2d) << 10 | (rx1d) << 9 | (rx2d) << 8 \
464 #define PD_VDO_AMA_VCONN_REQ(vdo) (((vdo) >> 4) & 1)
465 #define PD_VDO_AMA_VBUS_REQ(vdo) (((vdo) >> 3) & 1)
468 #define AMA_USBSS_U31_GEN1 1
474 * ---------
479 * <16:15> :: Maximum Vbus voltage (00b == 20V, 01b == 30V, 10b == 40V, 11b == 50V)
480 * <14> :: Charge through current support (0b == 3A, 1b == 5A)
483 * <6:1> :: Ground impedance
484 * <0> :: Charge through support (0b == no, 1b == yes)
488 #define VPD_MAX_VBUS_30V 1
492 #define VPDCT_CURR_5A 1
494 #define VPDCT_SUPP 1
499 | ((gi) & 0x3f) << 1 | (ct))
502 * SVDM Discover SVIDs request -> response
513 /* USB-IF SIDs */
516 #define USB_SID_MHL 0xff02 /* Mobile High-Definition Link */