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 zx_status_t null_bind(void* ctx, zx_device_t* parent);
10 zx_status_t zero_bind(void* ctx, zx_device_t* parent);
11
root_bind(void * ctx,zx_device_t * parent)12 zx_status_t root_bind(void* ctx, zx_device_t* parent) {
13 null_bind(ctx, parent);
14 zero_bind(ctx, parent);
15 return ZX_OK;
16 }
17
18 static zx_driver_ops_t root_driver_ops = {
19 .version = DRIVER_OPS_VERSION,
20 .bind = root_bind,
21 };
22
23 ZIRCON_DRIVER_BEGIN(root_drivers, root_driver_ops, "zircon", "0.1", 1)
24 BI_MATCH_IF(EQ, BIND_PROTOCOL, ZX_PROTOCOL_ROOT),
25 ZIRCON_DRIVER_END(root_drivers)
26