1*5295Srandyf /* 2*5295Srandyf * CDDL HEADER START 3*5295Srandyf * 4*5295Srandyf * The contents of this file are subject to the terms of the 5*5295Srandyf * Common Development and Distribution License (the "License"). 6*5295Srandyf * You may not use this file except in compliance with the License. 7*5295Srandyf * 8*5295Srandyf * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*5295Srandyf * or http://www.opensolaris.org/os/licensing. 10*5295Srandyf * See the License for the specific language governing permissions 11*5295Srandyf * and limitations under the License. 12*5295Srandyf * 13*5295Srandyf * When distributing Covered Code, include this CDDL HEADER in each 14*5295Srandyf * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*5295Srandyf * If applicable, add the following below this CDDL HEADER, with the 16*5295Srandyf * fields enclosed by brackets "[]" replaced with your own identifying 17*5295Srandyf * information: Portions Copyright [yyyy] [name of copyright owner] 18*5295Srandyf * 19*5295Srandyf * CDDL HEADER END 20*5295Srandyf */ 21*5295Srandyf /* 22*5295Srandyf * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*5295Srandyf * Use is subject to license terms. 24*5295Srandyf */ 25*5295Srandyf 26*5295Srandyf #pragma ident "%Z%%M% %I% %E% SMI" 27*5295Srandyf 28*5295Srandyf #include <sys/types.h> 29*5295Srandyf 30*5295Srandyf #include <sys/acpi/acpi.h> 31*5295Srandyf #include <sys/acpica.h> 32*5295Srandyf 33*5295Srandyf /* 34*5295Srandyf * This file contains ACPI functions that are needed by the kernel before 35*5295Srandyf * the ACPI module is loaded. Any functions or definitions need to be 36*5295Srandyf * able to deal with the possibility that ACPI doesn't get loaded, or 37*5295Srandyf * doesn't contain the required method. 38*5295Srandyf */ 39*5295Srandyf 40*5295Srandyf int (*acpi_fp_setwake)(); 41*5295Srandyf 42*5295Srandyf /* 43*5295Srandyf * 44*5295Srandyf */ 45*5295Srandyf int acpi_ddi_setwake(dev_info_t * dip,int level)46*5295Srandyfacpi_ddi_setwake(dev_info_t *dip, int level) 47*5295Srandyf { 48*5295Srandyf if (acpi_fp_setwake == NULL) 49*5295Srandyf return (AE_ERROR); 50*5295Srandyf 51*5295Srandyf return ((*acpi_fp_setwake)(dip, level)); 52*5295Srandyf } 53