summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2011-04-15 17:34:52 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2011-04-15 17:34:52 +0000
commit31c469a7b16dc83303900f653e4671796b08ff36 (patch)
tree0ce503fc8c89d289668ea6b7683208a18bd3a2fb /sys/dev/acpi
parenta79e70367af7f25159609b27418c3fbd269d02fd (diff)
Remove the acpi event definitions. They've not been used for over a
year. acpi needs to use the apm definitions so that apmd speaks the same language as it, so it uses the ones in apmvar.h these days. ``sure'' marco@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/acpivar.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h
index ed21551dea5..03e6224affe 100644
--- a/sys/dev/acpi/acpivar.h
+++ b/sys/dev/acpi/acpivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpivar.h,v 1.70 2011/04/06 21:16:13 martynas Exp $ */
+/* $OpenBSD: acpivar.h,v 1.71 2011/04/15 17:34:51 oga Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
@@ -268,15 +268,6 @@ struct acpi_dev_rank {
#define ACPI_IOC_GETTABLE _IOWR('A', 1, struct acpi_table)
#define ACPI_IOC_SETSLEEPSTATE _IOW('A', 2, int)
-#define ACPI_EV_PWRBTN 0x0001 /* Power button was pushed */
-#define ACPI_EV_SLPBTN 0x0002 /* Sleep button was pushed */
-
-#define ACPI_EVENT_MASK 0x0003
-
-#define ACPI_EVENT_COMPOSE(t,i) (((i) & 0x7fff) << 16 | ((t) & ACPI_EVENT_MASK))
-#define ACPI_EVENT_TYPE(e) ((e) & ACPI_EVENT_MASK)
-#define ACPI_EVENT_INDEX(e) ((e) >> 16)
-
#if defined(_KERNEL)
struct acpi_gas;
int acpi_map_address(struct acpi_softc *, struct acpi_gas *, bus_addr_t, bus_size_t,