acpi_wakeup.c revision 256281
1240116Smarcel/*- 2240116Smarcel * Copyright (c) 2001 Doug Rabson 3240116Smarcel * All rights reserved. 4240116Smarcel * 5240116Smarcel * Redistribution and use in source and binary forms, with or without 6240116Smarcel * modification, are permitted provided that the following conditions 7240116Smarcel * are met: 8240116Smarcel * 1. Redistributions of source code must retain the above copyright 9240116Smarcel * notice, this list of conditions and the following disclaimer. 10240116Smarcel * 2. Redistributions in binary form must reproduce the above copyright 11240116Smarcel * notice, this list of conditions and the following disclaimer in the 12240116Smarcel * documentation and/or other materials provided with the distribution. 13240116Smarcel * 14240116Smarcel * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15240116Smarcel * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16240116Smarcel * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17240116Smarcel * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18240116Smarcel * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19240116Smarcel * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20240116Smarcel * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21240116Smarcel * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22240116Smarcel * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23240116Smarcel * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24240116Smarcel * SUCH DAMAGE. 25240116Smarcel * 26240116Smarcel * $FreeBSD: stable/10/sys/ia64/acpica/acpi_wakeup.c 236409 2012-06-01 17:07:52Z jkim $ 27240116Smarcel */ 28240116Smarcel 29240116Smarcel#include <sys/param.h> 30240116Smarcel#include <sys/bus.h> 31240116Smarcel 32240116Smarcel#include <contrib/dev/acpica/include/acpi.h> 33240116Smarcel 34240116Smarcel#include <dev/acpica/acpivar.h> 35240116Smarcel 36240116Smarcelint 37240116Smarcelacpi_sleep_machdep(struct acpi_softc *sc, int state) 38240116Smarcel{ 39240116Smarcel return (0); 40240116Smarcel} 41240116Smarcel 42240116Smarcelint 43240116Smarcelacpi_wakeup_machdep(struct acpi_softc *sc, int state, int sleep_result, 44240116Smarcel int intr_enabled) 45240116Smarcel{ 46240116Smarcel return (0); 47240116Smarcel} 48240116Smarcel 49240116Smarcelvoid 50240116Smarcelacpi_install_wakeup_handler(struct acpi_softc *sc) 51240116Smarcel{ 52240116Smarcel} 53240116Smarcel