/*
* 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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _PCF8584_H
#define _PCF8584_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* S1 control
*/
/*
* S1 status
*/
/*
*/
/*
* This has to be OR'ed in with the address for
* I2C read transactions.
*/
/*
* S0 initialization bytes
*/
/*
* printing levels
*/
/*
* states for the I2C state machine.
*/
enum tran_state {
};
/*
* different implementations of pcf8584
*/
enum impl_type {
BBC,
};
typedef struct pcf8584_regs {
typedef struct pcf8584 {
int pcf8584_attachflags;
int pcf8584_mode;
int pcf8584_open;
int pcf8584_busy;
int pcf8584_bus;
int pcf8584_cur_status;
} pcf8584_t;
/*
* i2c_parent_pvt contains info that is chip specific
* and is stored on the child's devinfo parent private data.
*/
typedef struct pcf8584_ppvt {
/* multiple I2C busses on a single set of */
/* registers. this tells it what bus to */
/* use */
#define PCF8584_GENERIC_DELAY 0
/*
* generic interrupt return values
*/
/*
* Transfer status values
*/
/*
* Attach flags
*/
#ifdef __cplusplus
}
#endif
#endif /* _PCF8584_H */