1# Copyright (c) 2022 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14domain: USB 15 16PLUG_IN_OUT_HOST_MODE: 17 __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInHostMode} 18 DEVICE_NAME: {type: STRING, desc: device name} 19 DEVICE_PROTOCOL: {type: INT32, desc: device protocol} 20 DEVICE_SUBCLASS: {type: INT32, desc: device subclass} 21 DEVICE_CLASS: {type: INT32, desc: device class} 22 DEVICE_CLASS_DESCRIPTION: {type: STRING, desc: device class description} 23 INTERFACE_CLASS_DESCRIPTION: {type: STRING, desc: interface class description} 24 VENDOR_ID: {type: INT32, desc: vendor id} 25 PRODUCT_ID: {type: INT32, desc: product id} 26 VERSION: {type: STRING, desc: device version} 27 EVENT_NAME: {type: STRING, desc: event name} 28 29PLUG_IN_OUT_DEVICE_MODE: 30 __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInDeviceMode} 31 CURRENT_FUNCTIONS: {type: INT32, desc: current functios} 32 CONNECTED: {type: BOOL, desc: event name} 33 34FUNCTION_CHANGED: 35 __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDeviceFunctionChanged} 36 CURRENT_FUNCTION: {type: INT32, desc: current function} 37 UPDATE_FUNCTION: {type: INT32, desc: update function} 38 39PORT_ROLE_CHANGED: 40 __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbPortRoleChanged} 41 CURRENT_POWERROLE: {type: INT32, desc: current powerrole} 42 UPDATE_POWERROLE: {type: INT32, desc: update powerrole} 43 CURRENT_DATAROLE: {type: INT32, desc: current datarole} 44 UPDATE_DATAROLE: {type: INT32, desc: update datarole} 45 46USB_MANAGE_TRANSFOR_FAULT: 47 __BASE: {type: FAULT, level: CRITICAL, tag: UsbManager, desc: Usb Transfor interface happen fault} 48 INTFACE_NAME: {type: STRING, desc: interface name} 49 BUS_NUM: {type: INT32, desc: bus num} 50 DEV_ADDR: {type: INT32, desc: dev addr} 51 INFT_ID: {type: INT32, desc: interface id} 52 ENDPOINTT_ID: {type: INT32, desc: endpoint id} 53 FAIL_REASON: {type: INT32, desc: fail reason}