1 /*
2  * Copyright (c) 2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef USB_SERVICE_IPC_INTERFACE_CODE_H
17 #define USB_SERVICE_IPC_INTERFACE_CODE_H
18 
19 /* SAID: 4201 */
20 namespace OHOS {
21 namespace USB {
22     enum class UsbInterfaceCode {
23         USB_FUN_HAS_RIGHT = 0,
24         USB_FUN_REQUEST_RIGHT,
25         USB_FUN_REMOVE_RIGHT,
26         USB_FUN_OPEN_DEVICE,
27         USB_FUN_RESET_DEVICE,
28         USB_FUN_GET_DEVICE,
29         USB_FUN_GET_DEVICES,
30         USB_FUN_GET_CURRENT_FUNCTIONS,
31         USB_FUN_SET_CURRENT_FUNCTIONS,
32         USB_FUN_USB_FUNCTIONS_FROM_STRING,
33         USB_FUN_USB_FUNCTIONS_TO_STRING,
34         USB_FUN_CLAIM_INTERFACE,
35         USB_FUN_RELEASE_INTERFACE,
36         USB_FUN_BULK_TRANSFER_READ,
37         USB_FUN_BULK_TRANSFER_WRITE,
38         USB_FUN_CONTROL_TRANSFER,
39         USB_FUN_USB_CONTROL_TRANSFER,
40         USB_FUN_SET_ACTIVE_CONFIG,
41         USB_FUN_GET_ACTIVE_CONFIG,
42         USB_FUN_SET_INTERFACE,
43         USB_FUN_GET_PORTS,
44         USB_FUN_GET_SUPPORTED_MODES,
45         USB_FUN_SET_PORT_ROLE,
46         USB_FUN_REQUEST_QUEUE,
47         USB_FUN_REQUEST_WAIT,
48         USB_FUN_REQUEST_CANCEL,
49         USB_FUN_GET_DESCRIPTOR,
50         USB_FUN_GET_FILEDESCRIPTOR,
51         USB_FUN_CLOSE_DEVICE,
52         USB_FUN_BULK_AYSNC_READ,
53         USB_FUN_BULK_AYSNC_WRITE,
54         USB_FUN_BULK_AYSNC_CANCEL,
55         USB_FUN_REG_BULK_CALLBACK,
56         USB_FUN_UNREG_BULK_CALLBACK,
57         USB_FUN_ADD_RIGHT,
58         USB_FUN_DISABLE_GLOBAL_INTERFACE,
59         USB_FUN_DISABLE_DEVICE,
60         USB_FUN_DISABLE_INTERFACE_TYPE,
61         USB_FUN_CLEAR_HALT,
62         USB_FUN_GET_DEVICE_SPEED,
63         USB_FUN_GET_DRIVER_ACTIVE_STATUS,
64 		USB_FUN_ADD_ACCESS_RIGHT,
65         USB_FUN_BULK_TRANSFER_READ_WITH_LENGTH,
66         USB_FUN_ATTACH_KERNEL_DRIVER,
67         USB_FUN_DETACH_KERNEL_DRIVER,
68     };
69 } // namespace USB
70 } // namespace OHOS
71 
72 #endif // USB_SERVICE_IPC_INTERFACE_CODE_H
73