summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-09-12 14:57:15 +0000
committerschwarze <schwarze@openbsd.org>2017-09-12 14:57:15 +0000
commit1e7ef038de092c7c59b13120c121306e2114c8af (patch)
treeeeca24b3720ed7d83ac308e84cbfbf97388d3d28
parentminor markup corrections: Cd for options(4), Vt for data types (diff)
downloadwireguard-openbsd-1e7ef038de092c7c59b13120c121306e2114c8af.tar.xz
wireguard-openbsd-1e7ef038de092c7c59b13120c121306e2114c8af.zip
use the standard .Fa idiom for ioctl(2) args
-rw-r--r--share/man/man4/gpio.420
-rw-r--r--share/man/man4/radio.413
-rw-r--r--share/man/man4/uhid.412
3 files changed, 23 insertions, 22 deletions
diff --git a/share/man/man4/gpio.4 b/share/man/man4/gpio.4
index 67bad5eb45b..275896b2b69 100644
--- a/share/man/man4/gpio.4
+++ b/share/man/man4/gpio.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: gpio.4,v 1.25 2017/01/23 03:01:41 jsg Exp $
+.\" $OpenBSD: gpio.4,v 1.26 2017/09/12 14:57:15 schwarze Exp $
.\"
.\" Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: January 23 2017 $
+.Dd $Mdocdate: September 12 2017 $
.Dt GPIO 4
.Os
.Sh NAME
@@ -65,7 +65,7 @@ The following structures and constants are defined in the
.In sys/gpio.h
header file:
.Bl -tag -width XXXX
-.It Dv GPIOINFO (struct gpio_info)
+.It Dv GPIOINFO Fa "struct gpio_info"
Returns information about the GPIO
controller in the
.Fa gpio_info
@@ -75,7 +75,7 @@ struct gpio_info {
int gpio_npins; /* total number of pins available */
};
.Ed
-.It Dv GPIOPINREAD (struct gpio_pin_op)
+.It Dv GPIOPINREAD Fa "struct gpio_pin_op"
Returns the input pin value in the
.Fa gpio_pin_op
structure:
@@ -94,7 +94,7 @@ The
or
.Fa gp_pin
field must be set before calling.
-.It Dv GPIOPINWRITE (struct gpio_pin_op)
+.It Dv GPIOPINWRITE Fa "struct gpio_pin_op"
Writes the output value to the pin.
The value set in the
.Fa gp_value
@@ -106,11 +106,11 @@ field must be either
On return, the
.Fa gp_value
field contains the old pin state.
-.It Dv GPIOPINTOGGLE (struct gpio_pin_op)
+.It Dv GPIOPINTOGGLE Fa "struct gpio_pin_op"
Toggles the pin output value, i.e. changes it to the opposite.
.Fa gp_value
field is ignored and on return contains the old pin state.
-.It Dv GPIOPINSET (struct gpio_pin_set)
+.It Dv GPIOPINSET Fa "struct gpio_pin_set"
Changes pin configuration flags with the new ones provided in the
.Fa gpio_pin_set
structure:
@@ -163,10 +163,10 @@ If no flags are specified, the pin configuration stays unchanged.
Only GPIO pins that have been set using
.Ar GPIOPINSET
will be accessible at securelevels greater than 0.
-.It Dv GPIOPINUNSET (struct gpio_pin_set)
+.It Dv GPIOPINUNSET Fa "struct gpio_pin_set"
Unset the specified pin, i.e. clear its name and make it inaccessible
at securelevels greater than 0.
-.It Dv GPIOATTACH (struct gpio_attach)
+.It Dv GPIOATTACH Fa "struct gpio_attach"
Attach the device described in the
.Fa gpio_attach
structure on this gpio device.
@@ -177,7 +177,7 @@ struct gpio_attach {
u_int32_t ga_mask; /* binary mask */
};
.Ed
-.It Dv GPIODETACH (struct gpio_attach)
+.It Dv GPIODETACH Fa "struct gpio_attach"
Detach a device from this gpio device that was previously attached using the
.Dv GPIOATTACH
.Xr ioctl 2 .
diff --git a/share/man/man4/radio.4 b/share/man/man4/radio.4
index f4ee389af6e..5d82e30d28e 100644
--- a/share/man/man4/radio.4
+++ b/share/man/man4/radio.4
@@ -1,5 +1,5 @@
.\" $RuOBSD: radio.4,v 1.4 2001/10/26 05:38:43 form Exp $
-.\" $OpenBSD: radio.4,v 1.30 2016/08/31 15:55:46 tedu Exp $
+.\" $OpenBSD: radio.4,v 1.31 2017/09/12 14:57:15 schwarze Exp $
.\"
.\" Copyright (c) 2001 Vladimir Popov
.\" All rights reserved.
@@ -24,7 +24,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: August 31 2016 $
+.Dd $Mdocdate: September 12 2017 $
.Dt RADIO 4
.Os
.Sh NAME
@@ -53,12 +53,13 @@ The following
commands are supported:
.Pp
.Bl -tag -width indent -compact
-.It Dv RIOCSSRCH (int)
+.It Dv RIOCSSRCH Fa int
This command assumes that a signal search is required and gives direction
of search to the driver \- 0 to search down and any non-zero value to search up.
-.It Dv RIOCGINFO (struct radio_info)
-.It Dv RIOCSINFO (struct radio_info)
-Get or set the current hardware device information into the struct radio_info
+.It Dv RIOCGINFO Fa "struct radio_info"
+.It Dv RIOCSINFO Fa "struct radio_info"
+Get or set the current hardware device information into the
+.Fa radio_info
structure.
.Bd -literal
struct radio_info {
diff --git a/share/man/man4/uhid.4 b/share/man/man4/uhid.4
index bd608f12063..b21523f6aca 100644
--- a/share/man/man4/uhid.4
+++ b/share/man/man4/uhid.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: uhid.4,v 1.17 2016/02/28 17:57:50 stefan Exp $
+.\" $OpenBSD: uhid.4,v 1.18 2017/09/12 14:57:15 schwarze Exp $
.\" $NetBSD: uhid.4,v 1.13 2001/12/29 14:41:59 augustss Exp $
.\"
.\" Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: February 28 2016 $
+.Dd $Mdocdate: September 12 2017 $
.Dt UHID 4
.Os
.Sh NAME
@@ -46,9 +46,9 @@ The device handles the following
.Xr ioctl 2
calls:
.Bl -tag -width indent
-.It Dv USB_GET_REPORT_ID (int)
+.It Dv USB_GET_REPORT_ID Fa int
Get the report identifier used by this HID report.
-.It Dv USB_GET_REPORT_DESC (struct usb_ctl_report_desc)
+.It Dv USB_GET_REPORT_DESC Fa "struct usb_ctl_report_desc"
Get the HID report descriptor.
Using this descriptor the exact layout and meaning of data to/from
the device can be found.
@@ -59,7 +59,7 @@ struct usb_ctl_report_desc {
u_char ucrd_data[1024]; /* filled data size will vary */
};
.Ed
-.It Dv USB_GET_REPORT (struct usb_ctl_report)
+.It Dv USB_GET_REPORT Fa "struct usb_ctl_report"
Get a report from the device without waiting for data on
the interrupt pipe.
The
@@ -77,7 +77,7 @@ struct usb_ctl_report {
u_char ucr_data[1024]; /* used data size will vary */
};
.Ed
-.It Dv USB_SET_REPORT (struct usb_ctl_report)
+.It Dv USB_SET_REPORT Fa "struct usb_ctl_report"
Set a report in the device.
The
.Dv report