• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  SN_NUM: {type: STRING, desc: sn num}
29  MANUFACTURER_NAME: {type: STRING, desc: manufacturer name}
30
31PLUG_IN_OUT_DEVICE_MODE:
32  __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDevicePlugInDeviceMode}
33  CURRENT_FUNCTIONS: {type: INT32, desc: current functios}
34  CONNECTED: {type: BOOL, desc: event name}
35
36FUNCTION_CHANGED:
37  __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbDeviceFunctionChanged}
38  CURRENT_FUNCTION: {type: INT32, desc: current function}
39  UPDATE_FUNCTION: {type: INT32, desc: update function}
40
41PORT_ROLE_CHANGED:
42  __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: UsbPortRoleChanged}
43  CURRENT_POWERROLE: {type: INT32, desc: current powerrole}
44  UPDATE_POWERROLE: {type: INT32, desc: update powerrole}
45  CURRENT_DATAROLE: {type: INT32, desc: current datarole}
46  UPDATE_DATAROLE: {type: INT32, desc: update datarole}
47
48TRANSFOR_FAULT:
49  __BASE: {type: FAULT, level: CRITICAL, tag: UsbManager, desc: Usb Transfor interface happen fault}
50  TRANSFER_TYPE: {type: STRING, desc: interface name}
51  VENDOR_ID: {type: INT32, desc: vendor id}
52  PRODUCT_ID: {type: INT32, desc: product id}
53  INTERFACE_CLASS: {type: INT32, desc: interface class}
54  INTERFACE_SUBCLASS: {type: INT32, desc: interface subclass}
55  INTERFACE_PROTOCOL: {type: INT32, desc: interface protocol}
56  INTF_ID: {type: UINT8, desc: interface id}
57  ENDPOINTT_ID: {type: UINT8, desc: endpoint id}
58  FAIL_REASON: {type: INT32, desc: fail reason}
59  FAIL_DESCRIPTION: {type: STRING, desc: the failed reason description}
60
61SERIAL_OPERATION:
62  __BASE: {type: BEHAVIOR, level: MINOR, tag: UsbManager, desc: the behavior of the usb serial}
63  OPERATION_TYPE: {type: STRING, desc: the operation type may be open close set}
64  CLIENT_NAME: {type: STRING, desc: the client with its bundle name}
65  PORT_VID: {type: INT32, desc: the uid of the usb serial device}
66  PORT_PID: {type: INT32, desc: the pid of the usb serial device}
67  PORT_ID: {type: STRING, desc: the last four digits of serial num of the usb serial device}
68  ATTRIBUTE_BAUD_RATE: {type: INT32, desc: baud rate}
69  ATTRIBUTE_STOP_BIT: {type: UINT8, desc: stop bit}
70  ATTRIBUTE_PARITY_CHECK: {type: UINT8, desc: parity check}
71  ATTRIBUTE_DATA_BIT: {type: UINT8, desc: data bit}
72
73OPERATION_FAULT:
74  __BASE: {type: FAULT, level: CRITICAL, tag: UsbManager, desc: serial port operation fault}
75  OPERATION_TYPE_NAME: {type: STRING, desc: the name of operation type}
76  FAIL_REASON: {type: INT32, desc: the failed reason}
77  FAIL_DESCRIPTION: {type: STRING, desc: the failed reason description}
78
79DEVICE_SECURITY_POLICY:
80  __BASE: {type: SECURITY, level: CRITICAL, tag: UsbManager, desc: information about the managed USB device}
81  SECURITY_POLICY_TYPE: {type: STRING, desc: manage device type}
82  VID: {type: INT32, desc: device vid}
83  PID: {type: INT32, desc: device pid}
84  CLASS: {type: INT32, desc: device baseclass}
85  SUBCLASS: {type: INT32, desc: device subclass}
86  PROTOCOL: {type: INT32, desc: device protocol}
87