diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-11-11 16:22:51 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-11-11 16:22:51 +0000 |
commit | 40f3eaf2ff9a19b7ea7c86c987834c759afb1e7e (patch) | |
tree | 95a6053aada1bed1cebefbfc79c6102cdf675a4c /sys/arch/macppc/dev/maci2cvar.h | |
parent | 3b64408ee0613637240a5c91711675f7940a506e (diff) |
Add maciic(4), an OpenFirware aware version of iic(4).
Diffstat (limited to 'sys/arch/macppc/dev/maci2cvar.h')
-rw-r--r-- | sys/arch/macppc/dev/maci2cvar.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys/arch/macppc/dev/maci2cvar.h b/sys/arch/macppc/dev/maci2cvar.h new file mode 100644 index 00000000000..066a6f0ed98 --- /dev/null +++ b/sys/arch/macppc/dev/maci2cvar.h @@ -0,0 +1,32 @@ +/* $OpenBSD: maci2cvar.h,v 1.1 2005/11/11 16:22:50 kettenis Exp $ */ + +/* + * Copyright (c) 2005 Mark Kettenis + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#include <dev/i2c/i2cvar.h> + +struct maci2cbus_attach_args { + i2c_tag_t iba_tag; + int iba_node; +}; + +struct maci2c_attach_args { + struct i2c_attach_args ia_ia; + int ia_node; +}; + +#define ia_tag ia_ia.ia_tag +#define ia_addr ia_ia.ia_addr |