1 // Copyright 2017 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <ddk/binding.h>
6 #include <ddk/device.h>
7 #include <ddk/driver.h>
8
9 #include <limits.h>
10 #include <zircon/types.h>
11
12 #include "fvm-private.h"
13
fvm_bind_c(void * ctx,zx_device_t * dev)14 static zx_status_t fvm_bind_c(void* ctx, zx_device_t* dev) {
15 return fvm_bind(dev);
16 }
17
18 static zx_driver_ops_t fvm_driver_ops = {
19 .version = DRIVER_OPS_VERSION,
20 .bind = fvm_bind_c,
21 };
22
23 ZIRCON_DRIVER_BEGIN(fvm, fvm_driver_ops, "zircon", "0.1", 2)
24 BI_ABORT_IF_AUTOBIND,
25 BI_MATCH_IF(EQ, BIND_PROTOCOL, ZX_PROTOCOL_BLOCK),
26 ZIRCON_DRIVER_END(fvm)
27