| // 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: "rndis-function", |
| include: [ "driver_component/driver.shard.cml" ], |
| program: { |
| colocate: "true", |
| default_dispatcher_opts: [ "allow_sync_calls" ], |
| bind: { |
| protocol: "fuchsia.usb.BIND_PROTOCOL.FUNCTION", |
| rules: { |
| "fuchsia.BIND_USB_CLASS": "fuchsia.usb.BIND_USB_CLASS.MISC", |
| "fuchsia.BIND_USB_PROTOCOL": "fuchsia.usb.misc.BIND_USB_PROTOCOL.RNDIS_ETHERNET", |
| "fuchsia.BIND_USB_SUBCLASS": "fuchsia.usb.misc.BIND_USB_SUBCLASS.RNDIS", |
| }, |
| }, |
| }, |
| capabilities: [ |
| { |
| service: "fuchsia.hardware.network.driver.Service", |
| }, |
| ], |
| use: [ |
| { |
| service: "fuchsia.boot.metadata.MacAddressMetadata", |
| name: "default", |
| generate_bind_rule: false, |
| }, |
| { |
| service: "fuchsia.hardware.usb.function.UsbFunctionService", |
| name: "default", |
| generate_bind_rule: false, |
| }, |
| ], |
| expose: [ |
| { |
| service: "fuchsia.hardware.network.driver.Service", |
| from: "self", |
| }, |
| ], |
| } |