diff --git a/usr.sbin/gpioctl/gpioctl.8 b/usr.sbin/gpioctl/gpioctl.8 index 4bcc3cfd31f6..f1552c1c2e1b 100644 --- a/usr.sbin/gpioctl/gpioctl.8 +++ b/usr.sbin/gpioctl/gpioctl.8 @@ -1,4 +1,4 @@ -.\" $NetBSD: gpioctl.8,v 1.3 2008/01/09 15:50:00 xtraeme Exp $ +.\" $NetBSD: gpioctl.8,v 1.4 2008/01/09 15:56:27 xtraeme Exp $ .\" $OpenBSD: gpioctl.8,v 1.5 2004/12/02 05:11:40 grange Exp $ .\" .\" Copyright (c) 2004 Alexander Yurchenko @@ -115,6 +115,12 @@ push-pull output tri-state (output disabled) .It pu internal pull-up enabled +.It pd +internal pull-down enabled +.It iin +invert input +.It iout +invert output .El .Pp Note that not all the flags can be supported by the particular diff --git a/usr.sbin/gpioctl/gpioctl.c b/usr.sbin/gpioctl/gpioctl.c index cfbb614c9457..ebae7dd1c116 100644 --- a/usr.sbin/gpioctl/gpioctl.c +++ b/usr.sbin/gpioctl/gpioctl.c @@ -1,4 +1,4 @@ -/* $NetBSD: gpioctl.c,v 1.1 2005/09/27 02:54:27 jmcneill Exp $ */ +/* $NetBSD: gpioctl.c,v 1.2 2008/01/09 15:56:27 xtraeme Exp $ */ /* $OpenBSD: gpioctl.c,v 1.2 2004/08/08 00:05:09 deraadt Exp $ */ /* * Copyright (c) 2004 Alexander Yurchenko @@ -55,6 +55,9 @@ const struct bitstr { { GPIO_PIN_PUSHPULL, "pp" }, { GPIO_PIN_TRISTATE, "tri" }, { GPIO_PIN_PULLUP, "pu" }, + { GPIO_PIN_PULLDOWN, "pd" }, + { GPIO_PIN_INVIN, "iin" }, + { GPIO_PIN_INVOUT, "iiout" }, { 0, NULL }, };