xref: /openbmc/linux/drivers/gpu/drm/gma500/opregion.h (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1d839ede4SAlan Cox /*
2d839ede4SAlan Cox  * Copyright 2012 Intel Corporation
3d839ede4SAlan Cox  *
4d839ede4SAlan Cox  * Permission is hereby granted, free of charge, to any person obtaining a
5d839ede4SAlan Cox  * copy of this software and associated documentation files (the "Software"),
6d839ede4SAlan Cox  * to deal in the Software without restriction, including without limitation
7d839ede4SAlan Cox  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8d839ede4SAlan Cox  * and/or sell copies of the Software, and to permit persons to whom the
9d839ede4SAlan Cox  * Software is furnished to do so, subject to the following conditions:
10d839ede4SAlan Cox  *
11d839ede4SAlan Cox  * The above copyright notice and this permission notice (including the next
12d839ede4SAlan Cox  * paragraph) shall be included in all copies or substantial portions of the
13d839ede4SAlan Cox  * Software.
14d839ede4SAlan Cox  *
15d839ede4SAlan Cox  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16d839ede4SAlan Cox  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17d839ede4SAlan Cox  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18d839ede4SAlan Cox  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19d839ede4SAlan Cox  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20d839ede4SAlan Cox  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21d839ede4SAlan Cox  * DEALINGS IN THE SOFTWARE.
22d839ede4SAlan Cox  *
23d839ede4SAlan Cox  */
24d839ede4SAlan Cox 
25a373beddSAlan Cox #if defined(CONFIG_ACPI)
26d839ede4SAlan Cox extern void psb_intel_opregion_asle_intr(struct drm_device *dev);
27d839ede4SAlan Cox extern void psb_intel_opregion_init(struct drm_device *dev);
28d839ede4SAlan Cox extern void psb_intel_opregion_fini(struct drm_device *dev);
29d839ede4SAlan Cox extern int psb_intel_opregion_setup(struct drm_device *dev);
30*166973e5SAlan Cox extern void psb_intel_opregion_enable_asle(struct drm_device *dev);
31a373beddSAlan Cox 
32a373beddSAlan Cox #else
33a373beddSAlan Cox 
psb_intel_opregion_asle_intr(struct drm_device * dev)34a373beddSAlan Cox extern inline void psb_intel_opregion_asle_intr(struct drm_device *dev)
35a373beddSAlan Cox {
36a373beddSAlan Cox }
37a373beddSAlan Cox 
psb_intel_opregion_init(struct drm_device * dev)38a373beddSAlan Cox extern inline void psb_intel_opregion_init(struct drm_device *dev)
39a373beddSAlan Cox {
40a373beddSAlan Cox }
41a373beddSAlan Cox 
psb_intel_opregion_fini(struct drm_device * dev)42a373beddSAlan Cox extern inline void psb_intel_opregion_fini(struct drm_device *dev)
43a373beddSAlan Cox {
44a373beddSAlan Cox }
45a373beddSAlan Cox 
psb_intel_opregion_setup(struct drm_device * dev)46a373beddSAlan Cox extern inline int psb_intel_opregion_setup(struct drm_device *dev)
47a373beddSAlan Cox {
48a373beddSAlan Cox 	return 0;
49a373beddSAlan Cox }
50*166973e5SAlan Cox 
psb_intel_opregion_enable_asle(struct drm_device * dev)51*166973e5SAlan Cox extern inline void psb_intel_opregion_enable_asle(struct drm_device *dev)
52*166973e5SAlan Cox {
53*166973e5SAlan Cox }
54a373beddSAlan Cox #endif
55