blob: 6bb67ecbed22a3edd2321809bd058de20dcebd5b [file] [log] [blame]
// Copyright 2020 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.
#include <lib/ddk/driver.h>
#include <lib/virtio/driver_utils.h>
#include <zircon/types.h>
#include "rng.h"
#include "src/devices/misc/drivers/virtio-rng/virtio_rng_bind.h"
static const zx_driver_ops_t virtio_rng_driver_ops = []() {
zx_driver_ops_t ops = {};
ops.version = DRIVER_OPS_VERSION;
ops.bind = virtio::CreateAndBind<virtio::RngDevice>;
return ops;
}();
ZIRCON_DRIVER(virtio_rng, virtio_rng_driver_ops, "zircon", "0.1");