Home | History | Annotate | Line # | Download | only in ic
      1  1.6  thorpej /*	$NetBSD: pcf8584var.h,v 1.6 2019/12/22 23:23:32 thorpej Exp $	*/
      2  1.4   martin /*	$OpenBSD: pcf8584var.h,v 1.5 2007/10/20 18:46:21 kettenis Exp $ */
      3  1.1      tnn 
      4  1.4   martin /*
      5  1.4   martin  * Copyright (c) 2006 David Gwynne <dlg (at) openbsd.org>
      6  1.1      tnn  *
      7  1.4   martin  * Permission to use, copy, modify, and distribute this software for any
      8  1.4   martin  * purpose with or without fee is hereby granted, provided that the above
      9  1.4   martin  * copyright notice and this permission notice appear in all copies.
     10  1.1      tnn  *
     11  1.4   martin  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
     12  1.4   martin  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     13  1.4   martin  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     14  1.4   martin  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     15  1.4   martin  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     16  1.4   martin  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     17  1.4   martin  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     18  1.1      tnn  */
     19  1.1      tnn 
     20  1.4   martin struct pcfiic_softc {
     21  1.4   martin 	device_t		sc_dev;
     22  1.4   martin 
     23  1.4   martin 	bus_space_tag_t		sc_iot;
     24  1.4   martin 	bus_space_handle_t	sc_ioh;
     25  1.4   martin 	bus_space_handle_t	sc_ioh2;
     26  1.4   martin 	int			sc_master;
     27  1.4   martin 	u_int8_t		sc_addr;
     28  1.4   martin 	u_int8_t		sc_clock;
     29  1.4   martin 	u_int8_t		sc_regmap[2];
     30  1.4   martin 
     31  1.4   martin 	int			sc_poll;
     32  1.1      tnn 
     33  1.4   martin 	struct i2c_controller	sc_i2c;
     34  1.1      tnn };
     35  1.1      tnn 
     36  1.4   martin void	pcfiic_attach(struct pcfiic_softc *, i2c_addr_t, u_int8_t, int);
     37  1.4   martin int	pcfiic_intr(void *);
     38