| // 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: "virtio_input_bind", | |
| composite_name: "virtio_input", | |
| include: [ "//sdk/lib/driver/compat/compat.shard.cml" ], | |
| program: { | |
| compat: "driver/virtio_input-cpp.so", | |
| }, | |
| capabilities: [ | |
| { service: "fuchsia.input.report.Service" }, | |
| ], | |
| use: [ | |
| { | |
| name: "pci", | |
| service: "fuchsia.hardware.pci.Service", | |
| primary: true, | |
| bind: { | |
| service: "fuchsia.hardware.pci.Service", | |
| rules: { | |
| "fuchsia.BIND_PCI_VID": "fuchsia.pci.BIND_PCI_VID.VIRTIO", | |
| "fuchsia.BIND_PCI_DID": "fuchsia.pci.BIND_PCI_DID.VIRTIO_DEV_TYPE_INPUT", | |
| }, | |
| }, | |
| }, | |
| { | |
| name: "acpi", | |
| availability: "optional", | |
| bind: { protocol: "fuchsia.acpi.BIND_PROTOCOL.DEVICE" }, | |
| }, | |
| ], | |
| expose: [ | |
| { | |
| service: "fuchsia.input.report.Service", | |
| from: "self", | |
| }, | |
| ], | |
| } |