diff options
author | 2005-08-05 07:29:02 +0000 | |
---|---|---|
committer | 2005-08-05 07:29:02 +0000 | |
commit | 33972537e55adf98fc33cbea23a13282226c0a4a (patch) | |
tree | 9bab185b6dbd88c68013819f4d43837e159759c7 | |
parent | List aps(4) in device lists. Reminded by deraadt@ (diff) | |
download | wireguard-openbsd-33972537e55adf98fc33cbea23a13282226c0a4a.tar.xz wireguard-openbsd-33972537e55adf98fc33cbea23a13282226c0a4a.zip |
X40 has to be prodded a bit more to work.
tested by jolan@
Diffstat (limited to '')
-rw-r--r-- | sys/dev/isa/aps.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/isa/aps.c b/sys/dev/isa/aps.c index bca5f2279c9..d97cd16e0ab 100644 --- a/sys/dev/isa/aps.c +++ b/sys/dev/isa/aps.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aps.c,v 1.1 2005/08/05 03:52:32 jsg Exp $ */ +/* $OpenBSD: aps.c,v 1.2 2005/08/05 07:29:02 jsg Exp $ */ /* * Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org> * @@ -80,6 +80,11 @@ aps_match(struct device *parent, void *match, void *aux) /* See if this machine has APS */ bus_space_write_1(iot, ioh, APS_INIT, 0x13); bus_space_write_1(iot, ioh, APS_CMD, 0x01); + + /* ask again as the X40 is slightly deaf in one ear */ + bus_space_write_1(iot, ioh, APS_INIT, 0x13); + bus_space_write_1(iot, ioh, APS_CMD, 0x01); + if (!aps_mem_read_1(iot, ioh, APS_CMD, 0x00)) { bus_space_unmap(iot, ioh, APS_ADDR_SIZE); return (0); |