blob: 41cfd0e96f5e8d6b28335e9e3092c39747f9b390 [file] [log] [blame]
// Copyright 2017 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 <ddk/device.h>
#include <ddk/driver.h>
#include <ddk/binding.h>
#include <magenta/types.h>
extern mx_status_t tapctl_bind(void* ctx, mx_device_t* device, void** cookie);
static mx_driver_ops_t tapctl_driver_ops = {
.version = DRIVER_OPS_VERSION,
.bind = tapctl_bind,
};
MAGENTA_DRIVER_BEGIN(tapctl, tapctl_driver_ops, "magenta", "0.1", 1)
BI_MATCH_IF(EQ, BIND_PROTOCOL, MX_PROTOCOL_MISC_PARENT),
MAGENTA_DRIVER_END(tapctl)