/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 1999-2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _I2C_CLIENT_H
#define _I2C_CLIENT_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Common IOCTL definitions for client drivers.
*/
/*
* A private IOCTL definition to be used by clients. The first 128 ioctls
* derived by OR'ing with I2C_BASE_IOCTL are common. The next 128
* ioctls derived by OR'ing with I2C_PVT_BASE_IOCTL are client private.
*/
/*
* ARGS for I2C_*_MODE
*/
#define I2C_NORMAL 0
/*
* ARGS for i2c_bit_t direction
*/
#define DIR_NO_CHANGE 0
#define PORT_TO_MINOR(x) (x)
typedef struct i2c_port {
} i2c_port_t;
typedef struct i2c_bit {
} i2c_bit_t;
typedef struct i2c_reg {
} i2c_reg_t;
#if defined(_KERNEL)
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _I2C_CLIENT_H */