xref: /titanic_41/usr/src/cmd/hal/utils/acpi.h (revision 1402f64f9efa57c2c2cba776f3f45c67e6055deb)
1 /***************************************************************************
2  *
3  * acpi.h
4  *
5  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
6  * Use is subject to license terms.
7  *
8  * Licensed under the Academic Free License version 2.1
9  *
10  **************************************************************************/
11 
12 #pragma ident	"%Z%%M%	%I%	%E% SMI"
13 
14 #ifndef ACPI_H
15 #define	ACPI_H
16 
17 #include "../hald/util.h"
18 
19 #define	BATTERY_POLL_TIMER		30000
20 
21 gboolean battery_update(LibHalContext *ctx, const char *udi, int fd);
22 gboolean ac_adapter_update(LibHalContext *ctx, const char *udi, int fd);
23 gboolean lid_update(LibHalContext *ctx, const char *udi, int fd);
24 gboolean laptop_panel_update(LibHalContext *ctx, const char *udi, int fd);
25 gboolean update_devices(gpointer data);
26 int open_device(LibHalContext *ctx, char *udi);
27 
28 #endif /* ACPI_H */
29