/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_PSM_COMMON_H
#define _SYS_PSM_COMMON_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/ddi_impldefs.h>
#ifdef __cplusplus
extern "C" {
#endif
/* private data used in psm_common */
typedef struct acpi_prs_private {
typedef struct acpi_psm_lnk {
/*
* status definition for device_status (as returned by _STA)
*/
/*
* referencing an interrupt link device the configured irq for the device.
* It is assumed that the acpi object that references the link device is
* the same for all devices that reference the same link device.
*/
typedef struct irq_cache {
} irq_cache_t;
typedef struct acpi_irqlist {
int num_irqs;
#define ACPI_PSM_SUCCESS 0
/* verbose flags definitions */
extern void acpi_restore_link_devices(void);
extern int acpi_poweroff(void);
extern int psm_get_elcr(int vecno);
extern intr_exit_fn_t psm_intr_exit_fn(void);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_PSM_COMMON_H */