acpi_apm.c (104223) | acpi_apm.c (104727) |
---|---|
1/*- 2 * Copyright (c) 2001 Mitsuru IWASAKI 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2001 Mitsuru IWASAKI 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/i386/acpica/acpi_machdep.c 104223 2002-09-30 18:45:20Z jhb $ | 26 * $FreeBSD: head/sys/i386/acpica/acpi_machdep.c 104727 2002-10-09 20:39:26Z jhb $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/bus.h> 31#include <sys/conf.h> 32#include <sys/fcntl.h> 33#include <sys/uio.h> 34 --- 154 unchanged lines hidden (view full) --- 189 } else { 190 app->ap_acline = acline; /* on/off */ 191 } 192 193 return (0); 194} 195 196static int | 27 */ 28 29#include <sys/param.h> 30#include <sys/bus.h> 31#include <sys/conf.h> 32#include <sys/fcntl.h> 33#include <sys/uio.h> 34 --- 154 unchanged lines hidden (view full) --- 189 } else { 190 app->ap_acline = acline; /* on/off */ 191 } 192 193 return (0); 194} 195 196static int |
197apmopen(dev_t dev, int flag, int fmt, struct thread *td) | 197apmopen(dev_t dev, int flag, int fmt, d_thread_t *td) |
198{ 199 return (0); 200} 201 202static int | 198{ 199 return (0); 200} 201 202static int |
203apmclose(dev_t dev, int flag, int fmt, struct thread *td) | 203apmclose(dev_t dev, int flag, int fmt, d_thread_t *td) |
204{ 205 return (0); 206} 207 208static int | 204{ 205 return (0); 206} 207 208static int |
209apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td) | 209apmioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, d_thread_t *td) |
210{ 211 int error = 0; 212 struct acpi_softc *acpi_sc; 213 struct apm_info info; 214 apm_info_old_t aiop; 215 216 if ((acpi_sc = device_get_softc(acpi_dev)) == NULL) { 217 return (ENXIO); --- 81 unchanged lines hidden (view full) --- 299static int 300apmwrite(dev_t dev, struct uio *uio, int ioflag) 301{ 302 303 return (uio->uio_resid); 304} 305 306static int | 210{ 211 int error = 0; 212 struct acpi_softc *acpi_sc; 213 struct apm_info info; 214 apm_info_old_t aiop; 215 216 if ((acpi_sc = device_get_softc(acpi_dev)) == NULL) { 217 return (ENXIO); --- 81 unchanged lines hidden (view full) --- 299static int 300apmwrite(dev_t dev, struct uio *uio, int ioflag) 301{ 302 303 return (uio->uio_resid); 304} 305 306static int |
307apmpoll(dev_t dev, int events, struct thread *td) | 307apmpoll(dev_t dev, int events, d_thread_t *td) |
308{ 309 return (0); 310} 311 312static void 313acpi_capm_init(struct acpi_softc *sc) 314{ 315 --- 29 unchanged lines hidden --- | 308{ 309 return (0); 310} 311 312static void 313acpi_capm_init(struct acpi_softc *sc) 314{ 315 --- 29 unchanged lines hidden --- |