1284273Sandrew/*- 2284273Sandrew * Copyright (c) 2015 The FreeBSD Foundation 3284273Sandrew * All rights reserved. 4284273Sandrew * 5284273Sandrew * This software was developed by Andrew Turner under 6284273Sandrew * sponsorship from the FreeBSD Foundation. 7284273Sandrew * 8284273Sandrew * Redistribution and use in source and binary forms, with or without 9284273Sandrew * modification, are permitted provided that the following conditions 10284273Sandrew * are met: 11284273Sandrew * 1. Redistributions of source code must retain the above copyright 12284273Sandrew * notice, this list of conditions and the following disclaimer. 13284273Sandrew * 2. Redistributions in binary form must reproduce the above copyright 14284273Sandrew * notice, this list of conditions and the following disclaimer in the 15284273Sandrew * documentation and/or other materials provided with the distribution. 16284273Sandrew * 17284273Sandrew * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 18284273Sandrew * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19284273Sandrew * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20284273Sandrew * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 21284273Sandrew * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22284273Sandrew * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23284273Sandrew * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24284273Sandrew * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25284273Sandrew * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26284273Sandrew * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27284273Sandrew * SUCH DAMAGE. 28284273Sandrew */ 29284273Sandrew 30284273Sandrew#include <sys/cdefs.h> 31284273Sandrew__FBSDID("$FreeBSD$"); 32284273Sandrew 33284273Sandrew#include <sys/param.h> 34284273Sandrew#include <sys/bus.h> 35284273Sandrew#include <sys/kernel.h> 36284273Sandrew 37284273Sandrew#include <contrib/dev/acpica/include/acpi.h> 38284273Sandrew 39284273Sandrew#include <dev/acpica/acpivar.h> 40284273Sandrew 41284273Sandrew/* 42284273Sandrew * ARM64TODO: Implement this. 43284273Sandrew */ 44284273Sandrewint 45284273Sandrewacpi_sleep_machdep(struct acpi_softc *sc, int state) 46284273Sandrew{ 47284273Sandrew 48284273Sandrew return (-1); 49284273Sandrew} 50284273Sandrew 51284273Sandrewint 52284273Sandrewacpi_wakeup_machdep(struct acpi_softc *sc, int state, int sleep_result, 53284273Sandrew int intr_enabled) 54284273Sandrew{ 55284273Sandrew 56284273Sandrew /* ARM64TODO: We will need this with acpi_sleep_machdep */ 57284273Sandrew KASSERT(sleep_result == -1, 58284273Sandrew ("acpi_wakeup_machdep: Invalid sleep result")); 59284273Sandrew 60284273Sandrew return (sleep_result); 61284273Sandrew} 62