diff options
author | 2020-09-13 14:11:28 +0000 | |
---|---|---|
committer | 2020-09-13 14:11:28 +0000 | |
commit | c245f113be49e2ce779294491ab7379ba351e456 (patch) | |
tree | 6908c33ad4860b9a684453d53e4043889e124941 | |
parent | use drm_cache.c from linux 5.7.y (diff) | |
download | wireguard-openbsd-c245f113be49e2ce779294491ab7379ba351e456.tar.xz wireguard-openbsd-c245f113be49e2ce779294491ab7379ba351e456.zip |
The SMC base address and i/o region size is now queried by acpi(4) and
doesn't need to be hard coded anymore.
-rw-r--r-- | sys/dev/acpi/asmc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/acpi/asmc.c b/sys/dev/acpi/asmc.c index 707226591a1..23e396668f5 100644 --- a/sys/dev/acpi/asmc.c +++ b/sys/dev/acpi/asmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asmc.c,v 1.1 2020/09/12 07:47:26 mglocker Exp $ */ +/* $OpenBSD: asmc.c,v 1.2 2020/09/13 14:11:28 mglocker Exp $ */ /* * Copyright (c) 2015 Joerg Jung <jung@openbsd.org> * @@ -36,9 +36,6 @@ #include <dev/wscons/wsconsio.h> -#define ASMC_BASE 0x300 /* SMC base address */ -#define ASMC_IOSIZE 32 /* I/O region size 0x300-0x31f */ - #define ASMC_DATA 0x00 /* SMC data port offset */ #define ASMC_COMMAND 0x04 /* SMC command port offset */ #define ASMC_STATUS 0x1e /* SMC status port offset */ |