diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-10-03 20:24:52 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-10-03 20:24:52 +0000 |
commit | 04bcf51a1f7bbc75966d47af6c1cabcf04ff401a (patch) | |
tree | a38b75a259019fe921425fbd35a71265666807dc /sys/dev/gpio/gpiovar.h | |
parent | 65d54d24c8660c42636983d81b47f59d2c5c1940 (diff) |
Add a 'flag' locator to gpioiic(4), and define a first flag
value to swap the SDA and SCL pins assigment during attach.
Mostly from work with mbalmer@NetBSD.
ok miod@
Diffstat (limited to 'sys/dev/gpio/gpiovar.h')
-rw-r--r-- | sys/dev/gpio/gpiovar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/gpio/gpiovar.h b/sys/dev/gpio/gpiovar.h index 8987ae7d1e6..e6df1e7d083 100644 --- a/sys/dev/gpio/gpiovar.h +++ b/sys/dev/gpio/gpiovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gpiovar.h,v 1.5 2008/11/26 14:51:20 mbalmer Exp $ */ +/* $OpenBSD: gpiovar.h,v 1.6 2011/10/03 20:24:51 matthieu Exp $ */ /* * Copyright (c) 2004, 2006 Alexander Yurchenko <grange@openbsd.org> @@ -61,6 +61,7 @@ struct gpio_attach_args { int ga_offset; u_int32_t ga_mask; char *ga_dvname; + u_int32_t ga_flags; }; /* GPIO pin map */ |