xref: /netbsd/sys/external/bsd/drm2/include/linux/pm.h (revision 2adb3a73)
1*2adb3a73Sriastradh /*	$NetBSD: pm.h,v 1.2 2014/03/18 18:20:43 riastradh Exp $	*/
2*2adb3a73Sriastradh 
3*2adb3a73Sriastradh /*-
4*2adb3a73Sriastradh  * Copyright (c) 2013 The NetBSD Foundation, Inc.
5*2adb3a73Sriastradh  * All rights reserved.
6*2adb3a73Sriastradh  *
7*2adb3a73Sriastradh  * This code is derived from software contributed to The NetBSD Foundation
8*2adb3a73Sriastradh  * by Taylor R. Campbell.
9*2adb3a73Sriastradh  *
10*2adb3a73Sriastradh  * Redistribution and use in source and binary forms, with or without
11*2adb3a73Sriastradh  * modification, are permitted provided that the following conditions
12*2adb3a73Sriastradh  * are met:
13*2adb3a73Sriastradh  * 1. Redistributions of source code must retain the above copyright
14*2adb3a73Sriastradh  *    notice, this list of conditions and the following disclaimer.
15*2adb3a73Sriastradh  * 2. Redistributions in binary form must reproduce the above copyright
16*2adb3a73Sriastradh  *    notice, this list of conditions and the following disclaimer in the
17*2adb3a73Sriastradh  *    documentation and/or other materials provided with the distribution.
18*2adb3a73Sriastradh  *
19*2adb3a73Sriastradh  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20*2adb3a73Sriastradh  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21*2adb3a73Sriastradh  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*2adb3a73Sriastradh  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23*2adb3a73Sriastradh  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*2adb3a73Sriastradh  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*2adb3a73Sriastradh  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*2adb3a73Sriastradh  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*2adb3a73Sriastradh  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*2adb3a73Sriastradh  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*2adb3a73Sriastradh  * POSSIBILITY OF SUCH DAMAGE.
30*2adb3a73Sriastradh  */
31*2adb3a73Sriastradh 
32*2adb3a73Sriastradh #ifndef _LINUX_PM_H_
33*2adb3a73Sriastradh #define _LINUX_PM_H_
34*2adb3a73Sriastradh 
35*2adb3a73Sriastradh /* Silly stub for i915_suspend.  */
36*2adb3a73Sriastradh 
37*2adb3a73Sriastradh typedef struct {
38*2adb3a73Sriastradh 	int event;
39*2adb3a73Sriastradh } pm_message_t;
40*2adb3a73Sriastradh 
41*2adb3a73Sriastradh #define	PM_EVENT_PRETHAW		0
42*2adb3a73Sriastradh #define	PM_EVENT_SUSPEND		1
43*2adb3a73Sriastradh 
44*2adb3a73Sriastradh #endif  /* _LINUX_PM_H_ */
45