| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: power.h,v 1.15 2010/02/15 22:32:04 pgoyette Exp $ */ | | 1 | /* $NetBSD: power.h,v 1.16 2011/04/06 08:15:44 jruoho Exp $ */ |
2 | | | 2 | |
3 | /* | | 3 | /* |
4 | * Copyright (c) 2003 Wasabi Systems, Inc. | | 4 | * Copyright (c) 2003 Wasabi Systems, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Written by Jason R. Thorpe for Wasabi Systems, Inc. | | 7 | * Written by Jason R. Thorpe for Wasabi Systems, Inc. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * 1. Redistributions of source code must retain the above copyright | | 12 | * 1. Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. | | 13 | * notice, this list of conditions and the following disclaimer. |
14 | * 2. Redistributions in binary form must reproduce the above copyright | | 14 | * 2. Redistributions in binary form must reproduce the above copyright |
| @@ -34,26 +34,30 @@ | | | @@ -34,26 +34,30 @@ |
34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 34 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
35 | * POSSIBILITY OF SUCH DAMAGE. | | 35 | * POSSIBILITY OF SUCH DAMAGE. |
36 | */ | | 36 | */ |
37 | | | 37 | |
38 | /* | | 38 | /* |
39 | * Definitions for power management. | | 39 | * Definitions for power management. |
40 | */ | | 40 | */ |
41 | | | 41 | |
42 | #ifndef _SYS_POWER_H_ | | 42 | #ifndef _SYS_POWER_H_ |
43 | #define _SYS_POWER_H_ | | 43 | #define _SYS_POWER_H_ |
44 | | | 44 | |
45 | #include <sys/ioccom.h> | | 45 | #include <sys/ioccom.h> |
46 | | | 46 | |
| | | 47 | #ifndef _KERNEL |
| | | 48 | #include <stdint.h> |
| | | 49 | #endif |
| | | 50 | |
47 | /* | | 51 | /* |
48 | * Power Switches: | | 52 | * Power Switches: |
49 | * | | 53 | * |
50 | * Power switches are devices on the system that are used by the system | | 54 | * Power switches are devices on the system that are used by the system |
51 | * operator to cause certain types of power management events to happen. | | 55 | * operator to cause certain types of power management events to happen. |
52 | * This may be the closing of a laptop lid, the pressing of a power button, | | 56 | * This may be the closing of a laptop lid, the pressing of a power button, |
53 | * or some other type of user-initiated hardware event. | | 57 | * or some other type of user-initiated hardware event. |
54 | * | | 58 | * |
55 | * We define the following types of power switches: | | 59 | * We define the following types of power switches: |
56 | * | | 60 | * |
57 | * Power button This is the "on/off" button on a system, | | 61 | * Power button This is the "on/off" button on a system, |
58 | * or another button which provides a similar | | 62 | * or another button which provides a similar |
59 | * function. If there is no power management | | 63 | * function. If there is no power management |