Lines Matching +full:- +full:75 +full:mv

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright 2015-2017 Google, Inc
29 /* 14-15 Reserved */
36 /* 22-31 Reserved */
49 /* 9-14 Reserved */
51 /* 16-31 Reserved */
70 /* 15-31 Reserved */
179 * struct pd_chunked_ext_message_data - PD chunked extended message data as
190 * struct pd_message - PD message as seen on wire
232 #define PDO_FIXED_VOLT_SHIFT 10 /* 50mV units */
235 #define PDO_FIXED_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_FIXED_VOLT_SHIFT) argument
238 #define PDO_FIXED(mv, ma, flags) \ argument
240 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma))
242 #define VSAFE5V 5000 /* mv units */
244 #define PDO_BATT_MAX_VOLT_SHIFT 20 /* 50mV units */
245 #define PDO_BATT_MIN_VOLT_SHIFT 10 /* 50mV units */
248 #define PDO_BATT_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MIN_VOLT_SHIFT) argument
249 #define PDO_BATT_MAX_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MAX_VOLT_SHIFT) argument
256 #define PDO_VAR_MAX_VOLT_SHIFT 20 /* 50mV units */
257 #define PDO_VAR_MIN_VOLT_SHIFT 10 /* 50mV units */
260 #define PDO_VAR_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_VAR_MIN_VOLT_SHIFT) argument
261 #define PDO_VAR_MAX_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_VAR_MAX_VOLT_SHIFT) argument
272 #define PDO_APDO_TYPE_SHIFT 28 /* Only valid value currently is 0x0 - PPS */
277 #define PDO_PPS_APDO_MAX_VOLT_SHIFT 17 /* 100mV units */
278 #define PDO_PPS_APDO_MIN_VOLT_SHIFT 8 /* 100mV units */
284 #define PDO_PPS_APDO_MIN_VOLT(mv) \ argument
285 ((((mv) / 100) & PDO_PPS_APDO_VOLT_MASK) << PDO_PPS_APDO_MIN_VOLT_SHIFT)
286 #define PDO_PPS_APDO_MAX_VOLT(mv) \ argument
287 ((((mv) / 100) & PDO_PPS_APDO_VOLT_MASK) << PDO_PPS_APDO_MAX_VOLT_SHIFT)
391 #define PDO_PROG_OUT_VOLT(mv) \ argument
392 ((((mv) / RDO_PROG_VOLT_MV_STEP) & RDO_PROG_VOLT_MASK) << RDO_PROG_VOLT_SHIFT)
457 #define PD_T_NO_RESPONSE 5000 /* 4.5 - 5.5 seconds */
458 #define PD_T_DB_DETECT 10000 /* 10 - 15 seconds */
459 #define PD_T_SEND_SOURCE_CAP 150 /* 100 - 200 ms */
460 #define PD_T_SENDER_RESPONSE 60 /* 24 - 30 ms, relaxed */
464 #define PD_T_SINK_WAIT_CAP 310 /* 310 - 620 ms */
471 #define PD_T_PS_SOURCE_ON_PRS 450 /* 390 - 480ms */
483 #define PD_T_BIST_CONT_MODE 50 /* 30 - 60 ms */
484 #define PD_T_SINK_TX 16 /* 16 - 20 ms */
485 #define PD_T_CHUNK_NOT_SUPP 42 /* 40 - 50 ms */
488 #define PD_T_DRP_TRY 100 /* 75 - 150 ms */
489 #define PD_T_DRP_TRYWAIT 600 /* 400 - 800 ms */
491 #define PD_T_CC_DEBOUNCE 200 /* 100 - 200 ms */
492 #define PD_T_PD_DEBOUNCE 20 /* 10 - 20 ms */
493 #define PD_T_TRY_CC_DEBOUNCE 15 /* 10 - 20 ms */
505 * usb_power_delivery_desc - USB Power Delivery Descriptor
507 * @version: USB Power Delivery Specicication Version - optional
515 * usb_power_delivery_capabilities_desc - Description of USB Power Delivery Capabilities Message