// Copyright 2018 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 #include #include #include extern zx_status_t alc5514_bind_hook(void*, zx_device_t*); static zx_driver_ops_t alc5514_driver_ops = { .version = DRIVER_OPS_VERSION, .bind = alc5514_bind_hook, }; ZIRCON_DRIVER_BEGIN(alc5514, alc5514_driver_ops, "zircon", "0.1", 3) BI_ABORT_IF(NE, BIND_PROTOCOL, ZX_PROTOCOL_I2C), BI_ABORT_IF(NE, BIND_ACPI_HID_0_3, 0x31304543), // '10EC' BI_MATCH_IF(EQ, BIND_ACPI_HID_4_7, 0x35353134), // '5514' ZIRCON_DRIVER_END(alc5514)