From: jsg Date: Wed, 29 Nov 2023 03:41:31 +0000 (+0000) Subject: increase the number of address ranges in acpi attach args from 4 to 8 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f3530e5a8f77a4bad6be12bc1fded004ca8687ce;p=openbsd increase the number of address ranges in acpi attach args from 4 to 8 On Intel Alder Lake-S and Raptor Lake-S platforms GPIO has 5 address ranges. One for each GPIO community. Fixes suspend/resume on Laurence Tratt's Raptor Lake-S machine which broke when Alder Lake-S support was added to pchgpio(4). ok kettenis@ --- diff --git a/sys/dev/acpi/acpivar.h b/sys/dev/acpi/acpivar.h index 51eae666f99..20521653bc8 100644 --- a/sys/dev/acpi/acpivar.h +++ b/sys/dev/acpi/acpivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: acpivar.h,v 1.124 2023/07/07 07:37:59 claudio Exp $ */ +/* $OpenBSD: acpivar.h,v 1.125 2023/11/29 03:41:31 jsg Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * @@ -69,9 +69,9 @@ struct acpi_attach_args { struct aml_node *aaa_node; const char *aaa_dev; const char *aaa_cdev; - uint64_t aaa_addr[4]; - uint64_t aaa_size[4]; - bus_space_tag_t aaa_bst[4]; + uint64_t aaa_addr[8]; + uint64_t aaa_size[8]; + bus_space_tag_t aaa_bst[8]; int aaa_naddr; uint32_t aaa_irq[8]; uint32_t aaa_irq_flags[8];