| // 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. | |
| #pragma once | |
| #include <zircon/compiler.h> | |
| #include <zircon/types.h> | |
| #include <zircon/driver/binding.h> | |
| __BEGIN_CDECLS; | |
| #define AUXDATA_MAX_DEVPROPS 5 | |
| typedef struct { | |
| // i2c bus config | |
| uint8_t bus_master; | |
| uint8_t ten_bit; | |
| uint16_t address; | |
| uint32_t bus_speed; | |
| // optional protocol id for this device | |
| uint32_t protocol_id; | |
| // optional additional device properties. | |
| zx_device_prop_t props[AUXDATA_MAX_DEVPROPS]; | |
| uint32_t propcount; | |
| } auxdata_i2c_device_t; | |
| __END_CDECLS; |