1#!/usr/bin/env python3 2 3# Copyright (c) 2022 The Chromium OS Authors 4# SPDX-License-Identifier: Apache-2.0 5 6"""This file contains generic constants defined to be used by generate_vif.py""" 7 8NAME = "name" 9VALUE = "value" 10TEXT = "text" 11ATTRIBUTES = "attributes" 12CHILD = "child" 13TRUE = "true" 14FALSE = "false" 15 16PD_PORT_TYPE_VALUES = { 17 "sink": ("0", "Consumer Only"), 18 "source": ("3", "Provider Only"), 19 "dual": ("4", "DRP"), 20} 21 22TYPE_C_STATE_MACHINE_VALUES = { 23 "sink": ("1", "SNK"), 24 "source": ("0", "SRC"), 25 "dual": ("2", "DRP"), 26} 27 28FR_SWAP_REQD_TYPE_C_CURRENT_AS_INITIAL_SOURCE_VALUES = { 29 0: "FR_Swap not supported", 30 1: "Default USB Power", 31 2: "1.5A @ 5V", 32 3: "3A @ 5V", 33} 34