blob: 08fe2fe531d0d920a4f92af66cf2dda84e173859 [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.
#ifndef DDK_PROTOCOL_AUXDATA_H_
#define DDK_PROTOCOL_AUXDATA_H_
#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
#endif // DDK_PROTOCOL_AUXDATA_H_