xref: /onnv-gate/usr/src/uts/sun4v/sys/suspend.h (revision 12260:806de32452bd)
111172SHaik.Aftandilian@Sun.COM /*
211172SHaik.Aftandilian@Sun.COM  * CDDL HEADER START
311172SHaik.Aftandilian@Sun.COM  *
411172SHaik.Aftandilian@Sun.COM  * The contents of this file are subject to the terms of the
511172SHaik.Aftandilian@Sun.COM  * Common Development and Distribution License (the "License").
611172SHaik.Aftandilian@Sun.COM  * You may not use this file except in compliance with the License.
711172SHaik.Aftandilian@Sun.COM  *
811172SHaik.Aftandilian@Sun.COM  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
911172SHaik.Aftandilian@Sun.COM  * or http://www.opensolaris.org/os/licensing.
1011172SHaik.Aftandilian@Sun.COM  * See the License for the specific language governing permissions
1111172SHaik.Aftandilian@Sun.COM  * and limitations under the License.
1211172SHaik.Aftandilian@Sun.COM  *
1311172SHaik.Aftandilian@Sun.COM  * When distributing Covered Code, include this CDDL HEADER in each
1411172SHaik.Aftandilian@Sun.COM  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1511172SHaik.Aftandilian@Sun.COM  * If applicable, add the following below this CDDL HEADER, with the
1611172SHaik.Aftandilian@Sun.COM  * fields enclosed by brackets "[]" replaced with your own identifying
1711172SHaik.Aftandilian@Sun.COM  * information: Portions Copyright [yyyy] [name of copyright owner]
1811172SHaik.Aftandilian@Sun.COM  *
1911172SHaik.Aftandilian@Sun.COM  * CDDL HEADER END
2011172SHaik.Aftandilian@Sun.COM  */
2111172SHaik.Aftandilian@Sun.COM /*
22*12260SHaik.Aftandilian@Sun.COM  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
2311172SHaik.Aftandilian@Sun.COM  */
2411172SHaik.Aftandilian@Sun.COM 
2511172SHaik.Aftandilian@Sun.COM #ifndef _SYS_SUSPEND_H
2611172SHaik.Aftandilian@Sun.COM #define	_SYS_SUSPEND_H
2711172SHaik.Aftandilian@Sun.COM 
2811172SHaik.Aftandilian@Sun.COM #ifdef	__cplusplus
2911172SHaik.Aftandilian@Sun.COM extern "C" {
3011172SHaik.Aftandilian@Sun.COM #endif
3111172SHaik.Aftandilian@Sun.COM 
3211172SHaik.Aftandilian@Sun.COM int suspend_pre(char *error_reason, size_t max_reason_length,
3311172SHaik.Aftandilian@Sun.COM     boolean_t *recovered);
3411172SHaik.Aftandilian@Sun.COM int suspend_start(char *error_reason, size_t max_reason_length);
3511172SHaik.Aftandilian@Sun.COM int suspend_post(char *error_reason, size_t max_reason_length);
3611172SHaik.Aftandilian@Sun.COM void suspend_sync_tick_stick_npt(void);
3711172SHaik.Aftandilian@Sun.COM boolean_t suspend_supported(void);
38*12260SHaik.Aftandilian@Sun.COM boolean_t suspend_memdr_allowed(void);
3911172SHaik.Aftandilian@Sun.COM 
4011172SHaik.Aftandilian@Sun.COM #ifdef	__cplusplus
4111172SHaik.Aftandilian@Sun.COM }
4211172SHaik.Aftandilian@Sun.COM #endif
4311172SHaik.Aftandilian@Sun.COM 
4411172SHaik.Aftandilian@Sun.COM #endif	/* !_SYS_SUSPEND_H */
45