Merge trunk HEAD (46152)
[reactos.git] / drivers / bus / acpi / ospm / include / bmpower.h
1 /*****************************************************************************
2 *
3 * Module name: bmpower.h
4 * $Revision: 1.1 $
5 *
6 *****************************************************************************/
7
8 /*
9 * Copyright (C) 2000, 2001 Andrew Grover
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */
25
26 #ifndef __BMPOWER_H__
27 #define __BMPOWER_H__
28
29 #include "bm.h"
30
31
32 /*****************************************************************************
33 * Types & Defines
34 *****************************************************************************/
35
36
37 /*
38 * BM_POWER_RESOURCE:
39 * ------------------
40 */
41 typedef struct
42 {
43 BM_HANDLE device_handle;
44 ACPI_HANDLE acpi_handle;
45 BM_POWER_STATE system_level;
46 u32 resource_order;
47 BM_POWER_STATE state;
48 u32 reference_count;
49 } BM_POWER_RESOURCE;
50
51
52 /*****************************************************************************
53 * Function Prototypes
54 *****************************************************************************/
55
56 /* bmpower.c */
57
58 ACPI_STATUS
59 bm_pr_initialize (void);
60
61 ACPI_STATUS
62 bm_pr_terminate (void);
63
64 ACPI_STATUS
65 bm_pr_list_get_state (
66 BM_HANDLE_LIST *resource_list,
67 BM_POWER_STATE *power_state);
68
69 ACPI_STATUS
70 bm_pr_list_transition (
71 BM_HANDLE_LIST *current_list,
72 BM_HANDLE_LIST *target_list);
73
74
75 #endif /* __BMPOWER_H__ */