diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-07-09 15:04:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-07-09 15:04:13 +0000 |
commit | a9b11517bfdd0e4a81bb2ffe7be7adc147df71f3 (patch) | |
tree | 6714af8809072ed86d35a4358d6b75e4559e3760 /sys | |
parent | ff6a7fcdaebcfd3c25c56f2b0d64fa68a746e351 (diff) |
acpi_disable_onegpe() is not used; ok pirofti
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/acpi.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 1f08bc49a81..0acaebb4eff 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.233 2012/05/24 19:59:22 kettenis Exp $ */ +/* $OpenBSD: acpi.c,v 1.234 2012/07/09 15:04:12 deraadt Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -142,7 +142,6 @@ int acpi_add_device(struct aml_node *node, void *arg); struct gpe_block *acpi_find_gpe(struct acpi_softc *, int); void acpi_enable_onegpe(struct acpi_softc *, int); -void acpi_disable_onegpe(struct acpi_softc *, int); int acpi_gpe(struct acpi_softc *, int, void *); void acpi_enable_rungpes(struct acpi_softc *); @@ -1635,22 +1634,6 @@ acpi_enable_onegpe(struct acpi_softc *sc, int gpe) splx(s); } -void -acpi_disable_onegpe(struct acpi_softc *sc, int gpe) -{ - uint8_t mask, en; - int s; - - /* Read enabled register */ - s = spltty(); - mask = (1L << (gpe & 7)); - en = acpi_read_pmreg(sc, ACPIREG_GPE_EN, gpe>>3); - dnprintf(50, "disabling GPE %.2x (current: %sabled) %.2x\n", - gpe, (en & mask) ? "en" : "dis", en); - acpi_write_pmreg(sc, ACPIREG_GPE_EN, gpe>>3, en & ~mask); - splx(s); -} - /* Clear all GPEs */ void acpi_disable_allgpes(struct acpi_softc *sc) |