diff options
author | 2020-12-06 21:19:55 +0000 | |
---|---|---|
committer | 2020-12-06 21:19:55 +0000 | |
commit | dd7b8789fed516f0178e511dc9750103bf86becb (patch) | |
tree | 256977b4a893af9cc2c69a89a97ba6a123760dad | |
parent | dwgpio(4) (diff) | |
download | wireguard-openbsd-dd7b8789fed516f0178e511dc9750103bf86becb.tar.xz wireguard-openbsd-dd7b8789fed516f0178e511dc9750103bf86becb.zip |
Implement acpi_intr_disestablish() for arm64.
ok patrick@
-rw-r--r-- | sys/arch/arm64/arm64/acpi_machdep.c | 11 | ||||
-rw-r--r-- | sys/dev/acpi/acpivar.h | 3 |
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/arch/arm64/arm64/acpi_machdep.c b/sys/arch/arm64/arm64/acpi_machdep.c index 02ed192eae2..8f64ab8ff70 100644 --- a/sys/arch/arm64/arm64/acpi_machdep.c +++ b/sys/arch/arm64/arm64/acpi_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi_machdep.c,v 1.9 2020/11/15 17:28:29 patrick Exp $ */ +/* $OpenBSD: acpi_machdep.c,v 1.10 2020/12/06 21:19:55 kettenis Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -178,6 +178,15 @@ acpi_intr_establish(int irq, int flags, int level, } void +acpi_intr_disestablish(void *cookie) +{ + struct arm_intr_handle *aih = cookie; + struct interrupt_controller *ic = aih->ih_ic; + + ic->ic_disestablish(aih->ih_ih); +} + +void acpi_sleep_clocks(struct acpi_softc *sc, int state) { } diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h index 28e788fe541..7b49d355247 100644 --- a/sys/dev/acpi/acpivar.h +++ b/sys/dev/acpi/acpivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acpivar.h,v 1.112 2020/12/06 20:39:07 kettenis Exp $ */ +/* $OpenBSD: acpivar.h,v 1.113 2020/12/06 21:19:55 kettenis Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * @@ -405,6 +405,7 @@ struct aml_node *acpi_find_pci(pci_chipset_tag_t, pcitag_t); void *acpi_intr_establish(int, int, int, int (*)(void *), void *, const char *); +void acpi_intr_disestablish(void *); struct acpi_q *acpi_maptable(struct acpi_softc *sc, paddr_t, const char *, const char *, const char *, int); |