1// Copyright 2018 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#include <ddk/protocol/pci.h>
9
10extern zx_status_t max98927_bind_hook(void*, zx_device_t*);
11
12static zx_driver_ops_t max98927_driver_ops = {
13    .version = DRIVER_OPS_VERSION,
14    .bind = max98927_bind_hook,
15};
16
17ZIRCON_DRIVER_BEGIN(max98927, max98927_driver_ops, "zircon", "0.1", 3)
18    BI_ABORT_IF(NE, BIND_PROTOCOL, ZX_PROTOCOL_I2C),
19    BI_ABORT_IF(NE, BIND_ACPI_HID_0_3, 0x4d583938), // 'MX98'
20    BI_MATCH_IF(EQ, BIND_ACPI_HID_4_7, 0x39323700), // '927\0'
21ZIRCON_DRIVER_END(max98927)
22