| // Copyright 2026 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| { | |
| name: "usb-adb-function", | |
| include: [], | |
| program: { | |
| binary: "driver/usb-adb-function.so", | |
| colocate: "true", | |
| default_dispatcher_opts: [ "allow_sync_calls" ], | |
| bind: { | |
| protocol: "fuchsia.usb.BIND_PROTOCOL.FUNCTION", | |
| usb: { | |
| class: "fuchsia.usb.BIND_USB_CLASS.VENDOR_SPECIFIC", | |
| subclass: "fuchsia.google.platform.usb.BIND_USB_SUBCLASS.ADB", | |
| protocol: "fuchsia.google.platform.usb.BIND_USB_PROTOCOL.ADB", | |
| }, | |
| }, | |
| }, | |
| capabilities: [ | |
| { service: "fuchsia.hardware.adb.Service" }, | |
| ], | |
| use: [ | |
| { | |
| name: "default", | |
| service: "fuchsia.driver.compat.Service", | |
| generate_bind_rule: false, | |
| }, | |
| { | |
| name: "default", | |
| service: "fuchsia.hardware.usb.function.UsbFunctionService", | |
| generate_bind_rule: false, | |
| }, | |
| { protocol: "fuchsia.hardware.usb.endpoint.Endpoint" }, | |
| ], | |
| expose: [ | |
| { | |
| service: "fuchsia.hardware.adb.Service", | |
| from: "self", | |
| }, | |
| ], | |
| } |