summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpiac.c
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2006-10-19 08:56:47 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2006-10-19 08:56:47 +0000
commitd79292e381dcbef055c918dd20e45b8b423e0baf (patch)
tree40f3ce2138cc5a84a19c13016bfca312a947c8af /sys/dev/acpi/acpiac.c
parenta90aef50ca13ee559b717d77291ab956ddfaf536 (diff)
Replace ACPI ioctls with APM ioctls. This makes ACPI talk the same protocol
as APM therefore userspace can now retrieve power information in the same fashion as all other apm arches (zaurus, macppc, i386 etc). To use force the use of acpi device like so: apmd -f /dev/acpi ok jordan@
Diffstat (limited to 'sys/dev/acpi/acpiac.c')
-rw-r--r--sys/dev/acpi/acpiac.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/dev/acpi/acpiac.c b/sys/dev/acpi/acpiac.c
index 9b0142ce699..dcfb9859941 100644
--- a/sys/dev/acpi/acpiac.c
+++ b/sys/dev/acpi/acpiac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiac.c,v 1.8 2006/10/12 16:38:21 jordan Exp $ */
+/* $OpenBSD: acpiac.c,v 1.9 2006/10/19 08:56:46 marco Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -34,20 +34,6 @@ int acpiac_match(struct device *, void *, void *);
void acpiac_attach(struct device *, struct device *, void *);
int acpiac_notify(struct aml_node *, int, void *);
-struct acpiac_softc {
- struct device sc_dev;
-
- bus_space_tag_t sc_iot;
- bus_space_handle_t sc_ioh;
-
- struct acpi_softc *sc_acpi;
- struct aml_node *sc_devnode;
-
- int sc_ac_stat;
-
- struct sensor sens[1]; /* XXX debug only */
-};
-
void acpiac_refresh(void *);
int acpiac_getsta(struct acpiac_softc *);