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 XML constants defined to be used by generate_vif.py""" 7 8from constants import other_constants, vif_element_constants 9 10XML_ENCODING = "utf-8" 11XML_ELEMENT_NAME_PREFIX = "vif" 12XML_ROOT_ELEMENT_NAME = "VIF" 13XML_VIF_NAMESPACE = "http://usb.org/VendorInfoFile.xsd" 14XML_NAMESPACE_ATTRIBUTES = { 15 "xmlns:vif": XML_VIF_NAMESPACE, 16} 17 18VIF_SPEC_ELEMENTS = { 19 "VIF_Specification": { 20 other_constants.TEXT: "3.19", 21 }, 22 "VIF_App": { 23 other_constants.CHILD: { 24 "Description": { 25 other_constants.TEXT: "This VIF XML file is generated by the Zephyr GenVIF script", 26 } 27 } 28 }, 29} 30 31VIF_SPEC_ELEMENTS_FROM_SOURCE_XML = {vif_element_constants.VENDOR_NAME, 32 vif_element_constants.MODEL_PART_NUMBER, 33 vif_element_constants.PRODUCT_REVISION, 34 vif_element_constants.TID, 35 vif_element_constants.VIF_PRODUCT_TYPE, 36 vif_element_constants.CERTIFICATION_TYPE, } 37