| // 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-fastboot-function", | |
| program: { | |
| default_dispatcher_opts: [ "allow_sync_calls" ], | |
| colocate: "true", | |
| bind: { | |
| usb: { | |
| bind_protocol: "fuchsia.usb.BIND_PROTOCOL.FUNCTION", | |
| class: "fuchsia.usb.BIND_USB_CLASS.VENDOR_SPECIFIC", | |
| subclass: "fuchsia.google.platform.usb.BIND_USB_SUBCLASS.FASTBOOT", | |
| protocol: "fuchsia.google.platform.usb.BIND_USB_PROTOCOL.FASTBOOT", | |
| }, | |
| }, | |
| }, | |
| capabilities: [ | |
| { service: "fuchsia.hardware.fastboot.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.fastboot.Service", | |
| from: "self", | |
| }, | |
| ], | |
| } |