blob: 762cd99e82335c92b7e0a6f027e9cd8863afae5e [file] [log] [blame]
// Copyright 2022 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.
#ifndef SRC_DEVICES_TESTS_NONBINDABLE_NONBINDABLE_H_
#define SRC_DEVICES_TESTS_NONBINDABLE_NONBINDABLE_H_
#include <ddktl/device.h>
namespace auto_bind {
class Nonbindable;
using DeviceType = ddk::Device<Nonbindable, ddk::Initializable>;
class Nonbindable : public DeviceType {
public:
explicit Nonbindable(zx_device_t* parent) : DeviceType(parent) {}
virtual ~Nonbindable() = default;
static zx_status_t Bind(void* ctx, zx_device_t* dev);
zx_status_t Bind();
void DdkInit(ddk::InitTxn txn);
void DdkRelease();
};
} // namespace auto_bind
#endif // SRC_DEVICES_TESTS_NONBINDABLE_NONBINDABLE_H_