diff options
Diffstat (limited to 'sys/dev/gpio/gpiovar.h')
-rw-r--r-- | sys/dev/gpio/gpiovar.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/gpio/gpiovar.h b/sys/dev/gpio/gpiovar.h index b507370ebe2..8987ae7d1e6 100644 --- a/sys/dev/gpio/gpiovar.h +++ b/sys/dev/gpio/gpiovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gpiovar.h,v 1.4 2008/11/24 12:12:12 mbalmer Exp $ */ +/* $OpenBSD: gpiovar.h,v 1.5 2008/11/26 14:51:20 mbalmer Exp $ */ /* * Copyright (c) 2004, 2006 Alexander Yurchenko <grange@openbsd.org> @@ -74,6 +74,12 @@ struct gpio_dev { LIST_ENTRY(gpio_dev) sc_next; }; +struct gpio_name { + char gp_name[GPIOPINMAXNAME]; + int gp_pin; + LIST_ENTRY(gpio_name) gp_next; +}; + int gpio_pin_map(void *, int, u_int32_t, struct gpio_pinmap *); void gpio_pin_unmap(void *, struct gpio_pinmap *); int gpio_pin_read(void *, struct gpio_pinmap *, int); |