the com(4) devices to match the traditional order one the ISA bus.
ok patrick@, anton@
-# $OpenBSD: GENERIC,v 1.507 2021/12/20 14:54:37 hastings Exp $
+# $OpenBSD: GENERIC,v 1.508 2021/12/26 13:55:36 kettenis Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
aplgpio* at acpi?
bytgpio* at acpi?
chvgpio* at acpi?
-com0 at acpi?
-com1 at acpi?
-com2 at acpi?
-com3 at acpi?
+com0 at acpi? addr 0x3f8
+com1 at acpi? addr 0x2f8
+com2 at acpi? addr 0x3e8
+com3 at acpi? addr 0x2e8
com* at acpi?
glkgpio* at acpi?
pchgpio* at acpi?
-# $OpenBSD: RAMDISK,v 1.84 2021/12/16 08:03:17 anton Exp $
+# $OpenBSD: RAMDISK,v 1.85 2021/12/26 13:55:36 kettenis Exp $
machine amd64
maxusers 4
acpiprt* at acpi?
acpimadt0 at acpi?
#acpitz* at acpi?
-com0 at acpi?
-com1 at acpi?
+com0 at acpi? addr 0x3f8
+com1 at acpi? addr 0x2f8
com* at acpi?
mpbios0 at bios0
-# $OpenBSD: RAMDISK_CD,v 1.196 2021/12/20 14:54:37 hastings Exp $
+# $OpenBSD: RAMDISK_CD,v 1.197 2021/12/26 13:55:36 kettenis Exp $
machine amd64
maxusers 4
sdhc* at acpi?
acpihve* at acpi?
chvgpio* at acpi?
-com0 at acpi?
-com1 at acpi?
-com2 at acpi?
+com0 at acpi? addr 0x3f8
+com1 at acpi? addr 0x2f8
+com2 at acpi? addr 0x3e8
com* at acpi?
glkgpio* at acpi?
-/* $OpenBSD: acpivar.h,v 1.114 2021/03/15 22:44:57 patrick Exp $ */
+/* $OpenBSD: acpivar.h,v 1.115 2021/12/26 13:55:36 kettenis Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
*
struct aml_node *sc_devnode;
};
+#define ACPIDEVCF_ADDR 0
+#define acpidevcf_addr cf_loc[ACPIDEVCF_ADDR]
+#define ACPIDEVCF_ADDR_UNK -1
+
struct acpi_attach_args {
char *aaa_name;
bus_space_tag_t aaa_iot;
-/* $OpenBSD: com_acpi.c,v 1.5 2021/12/21 06:10:29 anton Exp $ */
+/* $OpenBSD: com_acpi.c,v 1.6 2021/12/26 13:55:36 kettenis Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis
*
if (aaa->aaa_naddr < 1 || aaa->aaa_nirq < 1)
return 0;
+ if (cf->acpidevcf_addr != aaa->aaa_addr[0] &&
+ cf->acpidevcf_addr != ACPIDEVCF_ADDR_UNK)
+ return 0;
return acpi_matchhids(aaa, com_hids, cf->cf_driver->cd_name);
}
-# $OpenBSD: files.acpi,v 1.62 2020/12/06 20:39:07 kettenis Exp $
+# $OpenBSD: files.acpi,v 1.63 2021/12/26 13:55:36 kettenis Exp $
#
# Config file and device description for machine-independent ACPI code.
# Included by ports that need it.
-define acpi {}
+define acpi {[addr = -1]}
device acpi
file dev/acpi/acpi.c acpi needs-flag
file dev/acpi/acpiutil.c acpi