187384Simp/*- 287384Simp * Copyright (c) 1995 Jean-Marc Zucconi 387384Simp * All rights reserved. 487384Simp * 587384Simp * Redistribution and use in source and binary forms, with or without 687384Simp * modification, are permitted provided that the following conditions 787384Simp * are met: 887384Simp * 1. Redistributions of source code must retain the above copyright 987384Simp * notice, this list of conditions and the following disclaimer 1087384Simp * in this position and unchanged. 1187384Simp * 2. Redistributions in binary form must reproduce the above copyright 1287384Simp * notice, this list of conditions and the following disclaimer in the 1387384Simp * documentation and/or other materials provided with the distribution. 1487384Simp * 3. The name of the author may not be used to endorse or promote products 1597748Sschweikh * derived from this software without specific prior written permission 1687384Simp * 1787384Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1887384Simp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1987384Simp * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2087384Simp * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2187384Simp * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2287384Simp * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2387384Simp * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2487384Simp * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2587384Simp * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2687384Simp * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2787384Simp * 2887384Simp * $FreeBSD$ 2987384Simp */ 3087384Simp 3187384Simpstruct joy_softc { 3287384Simp bus_space_tag_t bt; 3387384Simp bus_space_handle_t port; 3487384Simp int x_off[2], y_off[2]; 3587384Simp int timeout[2]; 3687384Simp struct resource *res; 3787384Simp int rid; 38130585Sphk struct cdev *d; 3987384Simp}; 4087384Simp 4187384Simpint joy_probe(device_t); 4287384Simpint joy_attach(device_t); 4387384Simpint joy_detach(device_t); 4487384Simp 4587384Simpextern devclass_t joy_devclass; 46