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/device.h> 6#include <ddk/driver.h> 7#include <ddk/binding.h> 8 9#include <zircon/types.h> 10 11extern zx_status_t ddk_test_bind(void* ctx, zx_device_t* dev); 12 13static zx_driver_ops_t ddk_test_driver_ops = { 14 .version = DRIVER_OPS_VERSION, 15 .bind = ddk_test_bind, 16}; 17 18ZIRCON_DRIVER_BEGIN(ddk_test, ddk_test_driver_ops, "zircon", "0.1", 2) 19 BI_ABORT_IF_AUTOBIND, 20 BI_MATCH_IF(EQ, BIND_PROTOCOL, ZX_PROTOCOL_TEST), 21ZIRCON_DRIVER_END(ddk_test) 22