diff options
author | 2020-09-16 09:35:14 +0000 | |
---|---|---|
committer | 2020-09-16 09:35:14 +0000 | |
commit | c8f65f57934033dedd31ebb97d7547b3690f91d5 (patch) | |
tree | 045cd08b974c9a30280780a37dee6616fbe9f73d | |
parent | Avoid generating a core dump during make build. The Perl configure (diff) | |
download | wireguard-openbsd-c8f65f57934033dedd31ebb97d7547b3690f91d5.tar.xz wireguard-openbsd-c8f65f57934033dedd31ebb97d7547b3690f91d5.zip |
Add a command explaining that this driver uses the ACPI SMI command port
and why we need magic to map it.
-rw-r--r-- | sys/dev/acpi/abl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/acpi/abl.c b/sys/dev/acpi/abl.c index 98f13fe855a..99ff47237cf 100644 --- a/sys/dev/acpi/abl.c +++ b/sys/dev/acpi/abl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: abl.c,v 1.1 2020/09/15 18:31:14 mglocker Exp $ */ +/* $OpenBSD: abl.c,v 1.2 2020/09/16 09:35:14 kettenis Exp $ */ /* * Copyright (c) 2020 Marcus Glocker <mglocker@openbsd.org> @@ -136,9 +136,12 @@ abl_attach(struct device *parent, struct device *self, void *aux) return; } - /* Map I/O space. */ + /* + * Map I/O space. This driver uses the ACPI SMI command port. + * This port has already been claimed by the generic ACPI code + * so we need to work around that here by calling _bus_space_map(). + */ sc->sc_bt = aaa->aaa_iot; - /* XXX: Something else already seems to map this address. */ if (_bus_space_map(sc->sc_bt, sc->sc_io_base, ABL_IO_SIZE, 0, &sc->sc_bh)) { printf(": can't map register\n"); |