summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-09-29 04:25:08 +0000
committervisa <visa@openbsd.org>2019-09-29 04:25:08 +0000
commit651d5443cec615bff709eb75537f4878427a7f8c (patch)
treeaba170670c549231b33a1ed0d220815531d16059
parentMake clang emit the proper path to our libcompiler_rt.a when asked to. (diff)
downloadwireguard-openbsd-651d5443cec615bff709eb75537f4878427a7f8c.tar.xz
wireguard-openbsd-651d5443cec615bff709eb75537f4878427a7f8c.zip
Reserve a few GPIO_CONFIG bits for machine-dependent use.
No objection from kettenis@
-rw-r--r--sys/dev/ofw/ofw_gpio.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ofw/ofw_gpio.h b/sys/dev/ofw/ofw_gpio.h
index 52b2fe08453..f7025863a58 100644
--- a/sys/dev/ofw/ofw_gpio.h
+++ b/sys/dev/ofw/ofw_gpio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofw_gpio.h,v 1.2 2016/07/27 21:13:49 kettenis Exp $ */
+/* $OpenBSD: ofw_gpio.h,v 1.3 2019/09/29 04:25:08 visa Exp $ */
/*
* Copyright (c) 2016 Mark Kettenis
*
@@ -37,6 +37,10 @@ void gpio_controller_register(struct gpio_controller *);
#define GPIO_CONFIG_INPUT 0x0000
#define GPIO_CONFIG_OUTPUT 0x0001
+#define GPIO_CONFIG_MD0 0x1000
+#define GPIO_CONFIG_MD1 0x2000
+#define GPIO_CONFIG_MD2 0x4000
+#define GPIO_CONFIG_MD3 0x8000
void gpio_controller_config_pin(uint32_t *, int);
int gpio_controller_get_pin(uint32_t *);