diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-02-08 23:15:59 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-02-08 23:15:59 +0000 |
commit | 27145ee3cccb3b24af3dada1976291602b6953b2 (patch) | |
tree | 18568c24b3beeb054f46920525a5fb3033b03d84 /sys/dev/i2c/i2cvar.h | |
parent | 69626c69aa3514875cfc1468df73ca37e0eb762a (diff) |
add a member to the i2c_attach args so that a controller can pass a
cookie down to the device. the most obvious use of this is to pass a
device its ofw node on sparc64 and macppc so it can configure itself more
appropriately.
ok kettenis@ henning@ deraadt@
Diffstat (limited to 'sys/dev/i2c/i2cvar.h')
-rw-r--r-- | sys/dev/i2c/i2cvar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2cvar.h b/sys/dev/i2c/i2cvar.h index 0d463f1d945..fc43ac9f5be 100644 --- a/sys/dev/i2c/i2cvar.h +++ b/sys/dev/i2c/i2cvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: i2cvar.h,v 1.9 2006/01/01 20:52:25 deraadt Exp $ */ +/* $OpenBSD: i2cvar.h,v 1.10 2006/02/08 23:15:58 dlg Exp $ */ /* $NetBSD: i2cvar.h,v 1.1 2003/09/30 00:35:31 thorpej Exp $ */ /* @@ -105,6 +105,7 @@ struct i2c_attach_args { i2c_addr_t ia_addr; /* address of device */ int ia_size; /* size (for EEPROMs) */ char *ia_name; /* chip name */ + void *ia_cookie; /* pass extra info from bus to dev */ }; /* |