/*************************************************************************** * * devinfo_acpi.h : definitions for acpi devices * * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * * Licensed under the Academic Free License version 2.1 * **************************************************************************/ #pragma ident "%Z%%M% %I% %E% SMI" #ifndef DEVINFO_ACPI_H #define DEVINFO_ACPI_H #include "devinfo.h" extern DevinfoDevHandler devinfo_acpi_handler; extern DevinfoDevHandler devinfo_battery_handler; #define MINOR_SHIFT 8 #define MINOR2TYPE(minor) ((minor) >> MINOR_SHIFT) /* Battery device types */ enum batt_type { BATT_TYPE_UNKNOWN = -1, BATT_TYPE_CBAT, BATT_TYPE_AC, BATT_TYPE_SBAT }; HalDevice *devinfo_battery_add_major(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type, gboolean rescan, HalDevice *battery_d); void devinfo_battery_add_minor(HalDevice *parent, di_node_t node, char *minor_path, dev_t dev); void devinfo_battery_remove_minor(char *parent_devfs_path, gchar *udi); void devinfo_battery_device_rescan(char *parent_devfs_path, gchar *udi); static void devinfo_battery_rescan_probing_done(HalDevice *d, guint32 exit_type, gint return_code, char **error, gpointer userdata1, gpointer userdata2); const gchar *devinfo_battery_get_prober(HalDevice *d, int *timeout); #endif /* DEVINFO_ACPI_H */