joy.c (74810) | joy.c (82555) |
---|---|
1/*- 2 * Copyright (c) 1995 Jean-Marc Zucconi 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1995 Jean-Marc Zucconi 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/dev/joy/joy.c 74810 2001-03-26 12:41:29Z phk $ | 28 * $FreeBSD: head/sys/dev/joy/joy.c 82555 2001-08-30 09:17:03Z msmith $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/conf.h> 34#include <sys/uio.h> 35#include <sys/kernel.h> 36#include <sys/module.h> --- 114 unchanged lines hidden (view full) --- 151 152static driver_t joy_isa_driver = { 153 "joy", 154 joy_methods, 155 sizeof (struct joy_softc) 156}; 157 158DRIVER_MODULE(joy, isa, joy_isa_driver, joy_devclass, 0, 0); | 29 */ 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/conf.h> 34#include <sys/uio.h> 35#include <sys/kernel.h> 36#include <sys/module.h> --- 114 unchanged lines hidden (view full) --- 151 152static driver_t joy_isa_driver = { 153 "joy", 154 joy_methods, 155 sizeof (struct joy_softc) 156}; 157 158DRIVER_MODULE(joy, isa, joy_isa_driver, joy_devclass, 0, 0); |
159DRIVER_MODULE(joy, acpi, joy_isa_driver, joy_devclass, 0, 0); |
|
159 160static int 161joyopen(dev_t dev, int flags, int fmt, struct proc *p) 162{ 163 int i = joypart (dev); 164 struct joy_softc *joy = JOY_SOFTC(UNIT(dev)); 165 166 if (joy->timeout[i]) --- 108 unchanged lines hidden --- | 160 161static int 162joyopen(dev_t dev, int flags, int fmt, struct proc *p) 163{ 164 int i = joypart (dev); 165 struct joy_softc *joy = JOY_SOFTC(UNIT(dev)); 166 167 if (joy->timeout[i]) --- 108 unchanged lines hidden --- |