summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2006-09-15 23:36:11 +0000
committerdrahn <drahn@openbsd.org>2006-09-15 23:36:11 +0000
commit5932473bd55808ee58c27d59d977f8cf6307d7fa (patch)
tree2f7a454fcc5c498bff6936b70f566c54c0faad0b /sys
parentsysctl(3) can return ESRCH; noted by Kristaps Johnson; ok miod@ jmc@ (diff)
downloadwireguard-openbsd-5932473bd55808ee58c27d59d977f8cf6307d7fa.tar.xz
wireguard-openbsd-5932473bd55808ee58c27d59d977f8cf6307d7fa.zip
Reset the sysfail led on thecus, so that it doesn't blink
(machines with older firmware). yes deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/armish/dev/i80321_mainbus.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/armish/dev/i80321_mainbus.c b/sys/arch/armish/dev/i80321_mainbus.c
index e4b14c2ee2f..ce711aac6fd 100644
--- a/sys/arch/armish/dev/i80321_mainbus.c
+++ b/sys/arch/armish/dev/i80321_mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i80321_mainbus.c,v 1.9 2006/08/01 22:22:20 kettenis Exp $ */
+/* $OpenBSD: i80321_mainbus.c,v 1.10 2006/09/15 23:36:11 drahn Exp $ */
/* $NetBSD: i80321_mainbus.c,v 1.16 2005/12/15 01:44:00 briggs Exp $ */
/*
@@ -365,6 +365,14 @@ i80321_mainbus_attach(struct device *parent, struct device *self, void *aux)
PLD_BTN));
#endif
}
+ {
+ extern struct cfdriver pcaled_cd;
+ void pcaled_gpio_pin_write(void *arg, int pin, int value);
+ if (pcaled_cd.cd_ndevs > 0 && pcaled_cd.cd_devs[0] != NULL) {
+ pcaled_gpio_pin_write(pcaled_cd.cd_devs[0], 13, 0);
+ pcaled_gpio_pin_write(pcaled_cd.cd_devs[0], 14, 0);
+ }
+ }
}
void