1 /* 2 * Copyright (c) 2025 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_HOST_DATA_H 17 #define USB_HOST_DATA_H 18 19 #include "data_fifo.h" 20 #include "hdf_base.h" 21 #include "hdf_device_desc.h" 22 #include "osal_sem.h" 23 #include "refbase.h" 24 #include "iremote_object.h" 25 #include "usb_ddk.h" 26 #include "usb_ddk_interface.h" 27 #include "usb_session.h" 28 #include "usbd_type.h" 29 #include "v2_0/iusb_host_interface.h" 30 #include "v2_0/iusb_device_interface.h" 31 #include "v2_0/iusb_port_interface.h" 32 #include "v2_0/iusbd_bulk_callback.h" 33 34 #define MAX_SUBSCRIBER 10 35 36 namespace OHOS { 37 namespace HDI { 38 namespace Usb { 39 namespace V2_0 { 40 41 struct UsbdSubscriber { 42 sptr<IUsbdSubscriber> subscriber; 43 void *impl; 44 struct HdfDevEventlistener usbPnpListener; 45 sptr<IRemoteObject> remote; 46 void *deathRecipient; 47 }; 48 } // namespace V2_0 49 } // namespace Usb 50 } // namespace HDI 51 } // namespace OHOS 52 #endif // USB_HOST_DATA_H 53