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