xref: /illumos-gate/usr/src/cmd/hal/utils/acpi.h (revision 2a8bcb4e)
17b840e52Sphitran /***************************************************************************
27b840e52Sphitran  *
3*d2ec54f7Sphitran  * acpi.h
47b840e52Sphitran  *
5*d2ec54f7Sphitran  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
67b840e52Sphitran  * Use is subject to license terms.
77b840e52Sphitran  *
87b840e52Sphitran  * Licensed under the Academic Free License version 2.1
97b840e52Sphitran  *
107b840e52Sphitran  **************************************************************************/
117b840e52Sphitran 
12*d2ec54f7Sphitran #ifndef ACPI_H
13*d2ec54f7Sphitran #define	ACPI_H
147b840e52Sphitran 
157b840e52Sphitran #include "../hald/util.h"
167b840e52Sphitran 
177b840e52Sphitran #define	BATTERY_POLL_TIMER		30000
187b840e52Sphitran 
197b840e52Sphitran gboolean battery_update(LibHalContext *ctx, const char *udi, int fd);
207b840e52Sphitran gboolean ac_adapter_update(LibHalContext *ctx, const char *udi, int fd);
21*d2ec54f7Sphitran gboolean lid_update(LibHalContext *ctx, const char *udi, int fd);
22*d2ec54f7Sphitran gboolean laptop_panel_update(LibHalContext *ctx, const char *udi, int fd);
237b840e52Sphitran gboolean update_devices(gpointer data);
247b840e52Sphitran int open_device(LibHalContext *ctx, char *udi);
257b840e52Sphitran 
26*d2ec54f7Sphitran #endif /* ACPI_H */
27