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
231 #define PDO_FIXED_VOLT_SHIFT 10 /* 50mV units */
234 #define PDO_FIXED_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_FIXED_VOLT_SHIFT) argument
237 #define PDO_FIXED(mv, ma, flags) \ argument
239 PDO_FIXED_VOLT(mv) | PDO_FIXED_CURR(ma))
241 #define VSAFE5V 5000 /* mv units */
243 #define PDO_BATT_MAX_VOLT_SHIFT 20 /* 50mV units */
244 #define PDO_BATT_MIN_VOLT_SHIFT 10 /* 50mV units */
247 #define PDO_BATT_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MIN_VOLT_SHIFT) argument
248 #define PDO_BATT_MAX_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_BATT_MAX_VOLT_SHIFT) argument
255 #define PDO_VAR_MAX_VOLT_SHIFT 20 /* 50mV units */
256 #define PDO_VAR_MIN_VOLT_SHIFT 10 /* 50mV units */
259 #define PDO_VAR_MIN_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_VAR_MIN_VOLT_SHIFT) argument
260 #define PDO_VAR_MAX_VOLT(mv) ((((mv) / 50) & PDO_VOLT_MASK) << PDO_VAR_MAX_VOLT_SHIFT) argument
271 #define PDO_APDO_TYPE_SHIFT 28 /* Only valid value currently is 0x0 - PPS */
276 #define PDO_PPS_APDO_MAX_VOLT_SHIFT 17 /* 100mV units */
277 #define PDO_PPS_APDO_MIN_VOLT_SHIFT 8 /* 100mV units */
283 #define PDO_PPS_APDO_MIN_VOLT(mv) \ argument
284 ((((mv) / 100) & PDO_PPS_APDO_VOLT_MASK) << PDO_PPS_APDO_MIN_VOLT_SHIFT)
285 #define PDO_PPS_APDO_MAX_VOLT(mv) \ argument
286 ((((mv) / 100) & PDO_PPS_APDO_VOLT_MASK) << PDO_PPS_APDO_MAX_VOLT_SHIFT)
390 #define PDO_PROG_OUT_VOLT(mv) \ argument
391 ((((mv) / RDO_PROG_VOLT_MV_STEP) & RDO_PROG_VOLT_MASK) << RDO_PROG_VOLT_SHIFT)
456 #define PD_T_NO_RESPONSE 5000 /* 4.5 - 5.5 seconds */
457 #define PD_T_DB_DETECT 10000 /* 10 - 15 seconds */
458 #define PD_T_SEND_SOURCE_CAP 150 /* 100 - 200 ms */
459 #define PD_T_SENDER_RESPONSE 60 /* 24 - 30 ms, relaxed */
463 #define PD_T_SINK_WAIT_CAP 310 /* 310 - 620 ms */
470 #define PD_T_PS_SOURCE_ON_PRS 450 /* 390 - 480ms */
482 #define PD_T_BIST_CONT_MODE 50 /* 30 - 60 ms */
483 #define PD_T_SINK_TX 16 /* 16 - 20 ms */
484 #define PD_T_CHUNK_NOT_SUPP 42 /* 40 - 50 ms */
486 #define PD_T_DRP_TRY 100 /* 75 - 150 ms */
487 #define PD_T_DRP_TRYWAIT 600 /* 400 - 800 ms */
489 #define PD_T_CC_DEBOUNCE 200 /* 100 - 200 ms */
490 #define PD_T_PD_DEBOUNCE 20 /* 10 - 20 ms */
491 #define PD_T_TRY_CC_DEBOUNCE 15 /* 10 - 20 ms */
503 * usb_power_delivery_desc - USB Power Delivery Descriptor
505 * @version: USB Power Delivery Specicication Version - optional
513 * usb_power_delivery_capabilities_desc - Description of USB Power Delivery Capabilities Message