1*4c494f76Srjs /* $NetBSD: j720sspvar.h,v 1.4 2009/05/29 14:15:45 rjs Exp $ */ 2547e1f66Speter 3547e1f66Speter /*- 4547e1f66Speter * Copyright (c) 2006 The NetBSD Foundation, Inc. 5547e1f66Speter * All rights reserved. 6547e1f66Speter * 7547e1f66Speter * This code is derived from software contributed to The NetBSD Foundation 8547e1f66Speter * by IWAMOTO Toshihiro. 9547e1f66Speter * 10547e1f66Speter * Redistribution and use in source and binary forms, with or without 11547e1f66Speter * modification, are permitted provided that the following conditions 12547e1f66Speter * are met: 13547e1f66Speter * 1. Redistributions of source code must retain the above copyright 14547e1f66Speter * notice, this list of conditions and the following disclaimer. 15547e1f66Speter * 2. Redistributions in binary form must reproduce the above copyright 16547e1f66Speter * notice, this list of conditions and the following disclaimer in the 17547e1f66Speter * documentation and/or other materials provided with the distribution. 18547e1f66Speter * 19547e1f66Speter * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20547e1f66Speter * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21547e1f66Speter * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22547e1f66Speter * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23547e1f66Speter * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24547e1f66Speter * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25547e1f66Speter * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26547e1f66Speter * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27547e1f66Speter * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28547e1f66Speter * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29547e1f66Speter * POSSIBILITY OF SUCH DAMAGE. 30547e1f66Speter */ 31547e1f66Speter 32547e1f66Speter /* Jornada 720 SSP port. */ 33547e1f66Speter 34547e1f66Speter struct j720ssp_softc { 35*4c494f76Srjs device_t sc_dev; 36547e1f66Speter 37547e1f66Speter bus_space_tag_t sc_iot; 38547e1f66Speter bus_space_handle_t sc_gpioh; 39547e1f66Speter bus_space_handle_t sc_ssph; 40547e1f66Speter 41547e1f66Speter void *sc_parent; 42547e1f66Speter }; 43547e1f66Speter 44547e1f66Speter int j720ssp_readwrite(struct j720ssp_softc *, int, int, int *, int); 45