1*610ff4e3Sthorpej /* $NetBSD: iopi2cvar.h,v 1.5 2019/12/22 23:23:30 thorpej Exp $ */ 2d322684fSthorpej 3d322684fSthorpej /* 4d322684fSthorpej * Copyright (c) 2003 Wasabi Systems, Inc. 5d322684fSthorpej * All rights reserved. 6d322684fSthorpej * 7d322684fSthorpej * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8d322684fSthorpej * 9d322684fSthorpej * Redistribution and use in source and binary forms, with or without 10d322684fSthorpej * modification, are permitted provided that the following conditions 11d322684fSthorpej * are met: 12d322684fSthorpej * 1. Redistributions of source code must retain the above copyright 13d322684fSthorpej * notice, this list of conditions and the following disclaimer. 14d322684fSthorpej * 2. Redistributions in binary form must reproduce the above copyright 15d322684fSthorpej * notice, this list of conditions and the following disclaimer in the 16d322684fSthorpej * documentation and/or other materials provided with the distribution. 17d322684fSthorpej * 3. All advertising materials mentioning features or use of this software 18d322684fSthorpej * must display the following acknowledgement: 19d322684fSthorpej * This product includes software developed for the NetBSD Project by 20d322684fSthorpej * Wasabi Systems, Inc. 21d322684fSthorpej * 4. The name of Wasabi Systems, Inc. may not be used to endorse 22d322684fSthorpej * or promote products derived from this software without specific prior 23d322684fSthorpej * written permission. 24d322684fSthorpej * 25d322684fSthorpej * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``AS IS'' AND 26d322684fSthorpej * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27d322684fSthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28d322684fSthorpej * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 29d322684fSthorpej * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30d322684fSthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31d322684fSthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32d322684fSthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33d322684fSthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34d322684fSthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35d322684fSthorpej * POSSIBILITY OF SUCH DAMAGE. 36d322684fSthorpej */ 37d322684fSthorpej 38d322684fSthorpej #ifndef _ARM_XSCALE_IOPIICVAR_H_ 39d322684fSthorpej #define _ARM_XSCALE_IOPIICVAR_H_ 40d322684fSthorpej 41d322684fSthorpej struct iopiic_softc { 42d3765925Sjakllsch device_t sc_dev; 43d322684fSthorpej bus_space_tag_t sc_st; 44d322684fSthorpej bus_space_handle_t sc_sh; 45d322684fSthorpej 46d322684fSthorpej void *sc_ih; 47d322684fSthorpej 48d322684fSthorpej struct i2c_controller sc_i2c; 49d322684fSthorpej uint32_t sc_icr; 50d322684fSthorpej }; 51d322684fSthorpej 52d322684fSthorpej void iopiic_attach(struct iopiic_softc *sc); 53d322684fSthorpej 54d322684fSthorpej #endif /* _ARM_XSCALE_IOPIICVAR_H_ */ 55