summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordenis <denis@openbsd.org>2019-04-25 16:47:56 +0000
committerdenis <denis@openbsd.org>2019-04-25 16:47:56 +0000
commit79f8f91b91e4b449ee575cb04c1f79c29fcde339 (patch)
treeca4d4ea58869d791b377fbe2160d9f3d18f9b172
parentNeed to escape ]. (diff)
downloadwireguard-openbsd-79f8f91b91e4b449ee575cb04c1f79c29fcde339.tar.xz
wireguard-openbsd-79f8f91b91e4b449ee575cb04c1f79c29fcde339.zip
Make openprom.4 platform independent.
Suggested by deraadt@ OK ingo@ jmc@ visa@
-rw-r--r--share/man/man4/Makefile4
-rw-r--r--share/man/man4/man4.arm64/Makefile4
-rw-r--r--share/man/man4/man4.macppc/Makefile4
-rw-r--r--share/man/man4/man4.macppc/openprom.4153
-rw-r--r--share/man/man4/man4.octeon/Makefile6
-rw-r--r--share/man/man4/man4.octeon/openprom.4148
-rw-r--r--share/man/man4/man4.sparc64/Makefile4
-rw-r--r--share/man/man4/man4.sparc64/openprom.4153
-rw-r--r--share/man/man4/openprom.4 (renamed from share/man/man4/man4.arm64/openprom.4)27
9 files changed, 33 insertions, 470 deletions
diff --git a/share/man/man4/Makefile b/share/man/man4/Makefile
index 880801050d6..6dd0fc29f12 100644
--- a/share/man/man4/Makefile
+++ b/share/man/man4/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.706 2019/04/02 04:03:48 kettenis Exp $
+# $OpenBSD: Makefile,v 1.707 2019/04/25 16:47:56 denis Exp $
MAN= aac.4 abcrtc.4 ac97.4 acphy.4 acrtc.4 \
acpi.4 acpiac.4 acpials.4 acpiasus.4 acpibat.4 \
@@ -48,7 +48,7 @@ MAN= aac.4 abcrtc.4 ac97.4 acphy.4 acrtc.4 \
mvpinctrl.4 mvrng.4 mvrtc.4 mvtemp.4 myx.4 \
ne.4 neo.4 nep.4 netintro.4 nfe.4 nge.4 nmea.4 \
nsclpcsio.4 nsgphy.4 nsphy.4 nsphyter.4 null.4 nviic.4 nvme.4 nvt.4 \
- oce.4 ohci.4 options.4 onewire.4 oosiop.4 osiop.4 otus.4 \
+ oce.4 ohci.4 onewire.4 oosiop.4 openprom.4 options.4 osiop.4 otus.4 \
owid.4 owctr.4 owsbm.4 owtemp.4 \
pair.4 pcagpio.4 pcaled.4 pcdisplay.4 pchb.4 pchtemp.4 pci.4 pcib.4 \
pcfadc.4 pcfiic.4 pcfrtc.4 pcxrtc.4 pciide.4 pckbc.4 pckbd.4 \
diff --git a/share/man/man4/man4.arm64/Makefile b/share/man/man4/man4.arm64/Makefile
index 3ef8781f94e..ad127d020eb 100644
--- a/share/man/man4/man4.arm64/Makefile
+++ b/share/man/man4/man4.arm64/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.7 2019/04/23 17:41:04 denis Exp $
+# $OpenBSD: Makefile,v 1.8 2019/04/25 16:47:56 denis Exp $
-MAN= agtimer.4 ampintc.4 apm.4 efi.4 intro.4 openprom.4
+MAN= agtimer.4 ampintc.4 apm.4 efi.4 intro.4
MANSUBDIR=arm64
diff --git a/share/man/man4/man4.macppc/Makefile b/share/man/man4/man4.macppc/Makefile
index 07922647abb..481b9271b1c 100644
--- a/share/man/man4/man4.macppc/Makefile
+++ b/share/man/man4/man4.macppc/Makefile
@@ -1,11 +1,11 @@
-# $OpenBSD: Makefile,v 1.38 2016/03/30 06:38:44 jmc Exp $
+# $OpenBSD: Makefile,v 1.39 2019/04/25 16:47:56 denis Exp $
# from: @(#)Makefile 5.1 (Berkeley) 2/12/91
# Id: Makefile,v 1.4 1995/12/14 05:41:38 deraadt Exp $
MAN= abtn.4 adb.4 aoa.4 apm.4 asms.4 autoconf.4 awacs.4 \
bm.4 daca.4 dfs.4 esp.4 fcu.4 ht.4 hpb.4 intro.4 \
kauaiata.4 kiic.4 macobio.4 macgpio.4 mc.4 mediabay.4 mem.4 memc.4 \
- mesh.4 mpcpcibr.4 openpic.4 openprom.4 onyx.4 pgs.4 piic.4 smu.4 \
+ mesh.4 mpcpcibr.4 openpic.4 onyx.4 pgs.4 piic.4 smu.4 \
snapper.4 sysbutton.4 tumbler.4 xlights.4 zs.4
MANSUBDIR=macppc
diff --git a/share/man/man4/man4.macppc/openprom.4 b/share/man/man4/man4.macppc/openprom.4
deleted file mode 100644
index f3322cd33f2..00000000000
--- a/share/man/man4/man4.macppc/openprom.4
+++ /dev/null
@@ -1,153 +0,0 @@
-.\" $OpenBSD: openprom.4,v 1.6 2017/11/17 18:58:41 jmc Exp $
-.\" Copyright (c) 1992, 1993
-.\" The Regents of the University of California. All rights reserved.
-.\"
-.\" This software was developed by the Computer Systems Engineering group
-.\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
-.\" contributed to Berkeley.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" from: @(#)openprom.4 8.1 (Berkeley) 6/5/93
-.\"
-.Dd $Mdocdate: November 17 2017 $
-.Dt OPENPROM 4 macppc
-.Os
-.Sh NAME
-.Nm openprom
-.Nd OPENPROM interface
-.Sh SYNOPSIS
-.In machine/openpromio.h
-.Sh DESCRIPTION
-The file
-.Pa /dev/openprom
-is an interface to the Macintosh OPENPROM.
-This interface is highly stylized;
-ioctls are used for all operations.
-These ioctls refer to
-.Dq nodes ,
-which are simply
-.Dq magic
-integer values describing data areas.
-Occasionally the number 0 may be used or returned instead,
-as described below.
-.Pp
-The calls that take and/or return a node
-use a pointer to an
-.Li int
-variable for this purpose;
-others use a pointer to a
-.Li struct opiocdesc
-descriptor,
-which contains a node and two counted strings.
-The first string is comprised of the fields
-.Li op_namelen
-(an
-.Li int )
-and
-.Li op_name
-(a
-.Li "char *" ) ,
-giving the name of a field.
-The second string is comprised of the fields
-.Li op_buflen
-and
-.Li op_buf ,
-used analogously.
-These two counted strings work in a
-.Dq value-result
-fashion.
-At entry to the ioctl,
-the counts are expected to reflect the buffer size;
-on return,
-the counts are updated to reflect the buffer contents.
-.Pp
-The following ioctls are supported:
-.Bl -tag -width OPIOCGETOPTNODE
-.It Dv OPIOCGETOPTNODE
-Takes nothing, and fills in the options node number.
-.It Dv OPIOCGETNEXT
-Takes a node number and returns the number of the following node.
-The node following the last node is number 0;
-the node following number 0 is the first node.
-.It Dv OPIOCGETCHILD
-Takes a node number and returns the number of the first
-.Dq child
-of that node.
-This child may have siblings; these can be discovered by using
-.Dv OPIOCGETNEXT .
-.It Dv OPIOCGET
-Fills in the value of the named property for the given node.
-If no such property is associated with that node,
-the value length is set to -1.
-If the named property exists but has no value,
-the value length is set to 0.
-.It Dv OPIOCSET
-Writes the given value under the given name.
-The OPENPROM may refuse this operation;
-in this case
-.Dv EINVAL
-is returned.
-.It Dv OPIOCNEXTPROP
-Finds the property whose name follows the given name
-in OPENPROM internal order.
-The resulting name is returned in the value field.
-If the named property is the last, the
-.Dq next
-name is the empty string.
-As with
-.Dv OPIOCGETNEXT ,
-the next name after the empty string is the first name.
-.El
-.Sh FILES
-.Pa /dev/openprom
-.Sh ERRORS
-The following may result in rejection of an operation:
-.Bl -tag -width "[ENAMETOOLONG]"
-.It Bq Er EINVAL
-The given node number
-is not zero
-and does not correspond to any valid node,
-or is zero where zero is not allowed.
-.It Bq Er EBADF
-The requested operation requires permissions not specified at the call to
-.Fn open .
-.It Bq Er ENAMETOOLONG
-The given name or value field
-exceeds the maximum allowed length (8191 bytes).
-.El
-.Sh SEE ALSO
-.Xr ioctl 2 ,
-.Xr eeprom 8
-.Sh HISTORY
-A
-macppc
-.Nm openprom
-manual page first appeared in
-.Ox 4.3 .
-.Sh BUGS
-Due to limitations within the OPENPROM itself,
-these functions run at elevated priority
-and may adversely affect system performance.
diff --git a/share/man/man4/man4.octeon/Makefile b/share/man/man4/man4.octeon/Makefile
index 77ef9bc508a..bb38f0f6fd7 100644
--- a/share/man/man4/man4.octeon/Makefile
+++ b/share/man/man4/man4.octeon/Makefile
@@ -1,9 +1,9 @@
-# $OpenBSD: Makefile,v 1.16 2019/04/25 15:22:22 visa Exp $
+# $OpenBSD: Makefile,v 1.17 2019/04/25 16:47:56 denis Exp $
MAN= amdcf.4 cnmac.4 octcf.4 octcib.4 octcit.4 octciu.4 \
octcrypto.4 octgpio.4 \
- octiic.4 octmmc.4 octrng.4 octrtc.4 octsctl.4 octuctl.4 octxctl.4 \
- openprom.4
+ octiic.4 octmmc.4 octrng.4 octrtc.4 octsctl.4 octuctl.4 octxctl.4
+
MANSUBDIR=octeon
.include <bsd.prog.mk>
diff --git a/share/man/man4/man4.octeon/openprom.4 b/share/man/man4/man4.octeon/openprom.4
deleted file mode 100644
index 37255289406..00000000000
--- a/share/man/man4/man4.octeon/openprom.4
+++ /dev/null
@@ -1,148 +0,0 @@
-.\" $OpenBSD: openprom.4,v 1.3 2019/04/24 13:12:32 visa Exp $
-.\" Copyright (c) 1992, 1993
-.\" The Regents of the University of California. All rights reserved.
-.\"
-.\" This software was developed by the Computer Systems Engineering group
-.\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
-.\" contributed to Berkeley.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" from: @(#)openprom.4 8.1 (Berkeley) 6/5/93
-.\"
-.Dd $Mdocdate: April 24 2019 $
-.Dt OPENPROM 4 octeon
-.Os
-.Sh NAME
-.Nm openprom
-.Nd OPENPROM interface
-.Sh SYNOPSIS
-.In machine/openpromio.h
-.Sh DESCRIPTION
-The file
-.Pa /dev/openprom
-is an interface to the OCTEON OPENPROM.
-This interface is highly stylized,
-ioctls are used for all operations.
-These ioctls refer to
-.Dq nodes ,
-which are simply
-.Dq magic
-integer values describing data areas.
-Occasionally the number 0 may be used or returned instead,
-as described below.
-.Pp
-The calls that take and/or return a node
-use a pointer to an
-.Li int
-variable for this purpose;
-others use a pointer to a
-.Li struct opiocdesc
-descriptor,
-which contains a node and two counted strings.
-The first string is comprised of the fields
-.Li op_namelen
-(an
-.Li int )
-and
-.Li op_name
-(a
-.Li "char *" ) ,
-giving the name of a field.
-The second string is comprised of the fields
-.Li op_buflen
-and
-.Li op_buf ,
-used analogously.
-These two counted strings work in a
-.Dq value-result
-fashion.
-At entry to the ioctl,
-the counts are expected to reflect the buffer size;
-on return,
-the counts are updated to reflect the buffer contents.
-.Pp
-The following ioctls are supported:
-.Bl -tag -width OPIOCGETOPTNODE
-.It Dv OPIOCGETOPTNODE
-Takes nothing, and fills in the options node number.
-.It Dv OPIOCGETNEXT
-Takes a node number and returns the number of the following node.
-The node following the last node is number 0;
-the node following number 0 is the first node.
-.It Dv OPIOCGETCHILD
-Takes a node number and returns the number of the first
-.Dq child
-of that node.
-This child may have siblings; these can be discovered by using
-.Dv OPIOCGETNEXT .
-.It Dv OPIOCGET
-Fills in the value of the named property for the given node.
-If no such property is associated with that node,
-the value length is set to -1.
-If the named property exists but has no value,
-the value length is set to 0.
-.Dv EINVAL
-is returned.
-.It Dv OPIOCNEXTPROP
-Finds the property whose name follows the given name
-in OPENPROM internal order.
-The resulting name is returned in the value field.
-If the named property is the last, the
-.Dq next
-name is the empty string.
-As with
-.Dv OPIOCGETNEXT ,
-the next name after the empty string is the first name.
-.El
-.Sh FILES
-.Pa /dev/openprom
-.Sh ERRORS
-The following may result in rejection of an operation:
-.Bl -tag -width "[ENAMETOOLONG]"
-.It Bq Er EINVAL
-The given node number
-is not zero
-and does not correspond to any valid node,
-or is zero where zero is not allowed.
-.It Bq Er EBADF
-The requested operation requires permissions not specified at the call to
-.Fn open .
-.It Bq Er ENAMETOOLONG
-The given name or value field
-exceeds the maximum allowed length (8191 bytes).
-.It Bq Er ENOMEM
-Memory could not be allocated.
-.El
-.Sh SEE ALSO
-.Xr ioctl 2 ,
-.Xr eeprom 8
-.Sh HISTORY
-The OCTEON OPENPROM interface first appeared in
-.Ox 6.0 .
-.Sh BUGS
-Due to limitations within the OPENPROM itself,
-these functions run at elevated priority
-and may adversely affect system performance.
diff --git a/share/man/man4/man4.sparc64/Makefile b/share/man/man4/man4.sparc64/Makefile
index 5a90d5f74a9..a2d0b0ec7d9 100644
--- a/share/man/man4/man4.sparc64/Makefile
+++ b/share/man/man4/man4.sparc64/Makefile
@@ -1,11 +1,11 @@
-# $OpenBSD: Makefile,v 1.81 2016/03/30 06:38:44 jmc Exp $
+# $OpenBSD: Makefile,v 1.82 2019/04/25 16:47:56 denis Exp $
MAN= agten.4 apio.4 asio.4 audioce.4 audiocs.4 autoconf.4 auxio.4 \
bbc.4 be.4 beeper.4 bpp.4 bwtwo.4 cbus.4 central.4 cgsix.4 cgthree.4 \
cgtwelve.4 clkbrd.4 clock.4 cmp.4 comkbd.4 comms.4 core.4 creator.4 \
ebus.4 ecadc.4 environ.4 esp.4 fhc.4 gfxp.4 ifb.4 intro.4 \
le.4 led.4 lom.4 \
- machfb.4 magma.4 mem.4 mgx.4 openprom.4 \
+ machfb.4 magma.4 mem.4 mgx.4 \
pcons.4 pmc.4 power.4 ppm.4 prtc.4 psycho.4 pyro.4 qe.4 qec.4 \
radeonfb.4 raptor.4 rfx.4 \
sab.4 sbbc.4 schizo.4 spif.4 ssm.4 \
diff --git a/share/man/man4/man4.sparc64/openprom.4 b/share/man/man4/man4.sparc64/openprom.4
deleted file mode 100644
index c9984c30e12..00000000000
--- a/share/man/man4/man4.sparc64/openprom.4
+++ /dev/null
@@ -1,153 +0,0 @@
-.\" $OpenBSD: openprom.4,v 1.13 2017/11/17 18:58:41 jmc Exp $
-.\" Copyright (c) 1992, 1993
-.\" The Regents of the University of California. All rights reserved.
-.\"
-.\" This software was developed by the Computer Systems Engineering group
-.\" at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
-.\" contributed to Berkeley.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
-.\" may be used to endorse or promote products derived from this software
-.\" without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\" from: @(#)openprom.4 8.1 (Berkeley) 6/5/93
-.\"
-.Dd $Mdocdate: November 17 2017 $
-.Dt OPENPROM 4 sparc64
-.Os
-.Sh NAME
-.Nm openprom
-.Nd OPENPROM interface
-.Sh SYNOPSIS
-.In machine/openpromio.h
-.Sh DESCRIPTION
-The file
-.Pa /dev/openprom
-is an interface to the UltraSPARC OPENPROM.
-This interface is highly stylized;
-ioctls are used for all operations.
-These ioctls refer to
-.Dq nodes ,
-which are simply
-.Dq magic
-integer values describing data areas.
-Occasionally the number 0 may be used or returned instead,
-as described below.
-.Pp
-The calls that take and/or return a node
-use a pointer to an
-.Li int
-variable for this purpose;
-others use a pointer to a
-.Li struct opiocdesc
-descriptor,
-which contains a node and two counted strings.
-The first string is comprised of the fields
-.Li op_namelen
-(an
-.Li int )
-and
-.Li op_name
-(a
-.Li "char *" ) ,
-giving the name of a field.
-The second string is comprised of the fields
-.Li op_buflen
-and
-.Li op_buf ,
-used analogously.
-These two counted strings work in a
-.Dq value-result
-fashion.
-At entry to the ioctl,
-the counts are expected to reflect the buffer size;
-on return,
-the counts are updated to reflect the buffer contents.
-.Pp
-The following ioctls are supported:
-.Bl -tag -width OPIOCGETOPTNODE
-.It Dv OPIOCGETOPTNODE
-Takes nothing, and fills in the options node number.
-.It Dv OPIOCGETNEXT
-Takes a node number and returns the number of the following node.
-The node following the last node is number 0;
-the node following number 0 is the first node.
-.It Dv OPIOCGETCHILD
-Takes a node number and returns the number of the first
-.Dq child
-of that node.
-This child may have siblings; these can be discovered by using
-.Dv OPIOCGETNEXT .
-.It Dv OPIOCGET
-Fills in the value of the named property for the given node.
-If no such property is associated with that node,
-the value length is set to -1.
-If the named property exists but has no value,
-the value length is set to 0.
-.It Dv OPIOCSET
-Writes the given value under the given name.
-The OPENPROM may refuse this operation;
-in this case
-.Dv EINVAL
-is returned.
-.It Dv OPIOCNEXTPROP
-Finds the property whose name follows the given name
-in OPENPROM internal order.
-The resulting name is returned in the value field.
-If the named property is the last, the
-.Dq next
-name is the empty string.
-As with
-.Dv OPIOCGETNEXT ,
-the next name after the empty string is the first name.
-.El
-.Sh FILES
-.Pa /dev/openprom
-.Sh ERRORS
-The following may result in rejection of an operation:
-.Bl -tag -width "[ENAMETOOLONG]"
-.It Bq Er EINVAL
-The given node number
-is not zero
-and does not correspond to any valid node,
-or is zero where zero is not allowed.
-.It Bq Er EBADF
-The requested operation requires permissions not specified at the call to
-.Fn open .
-.It Bq Er ENAMETOOLONG
-The given name or value field
-exceeds the maximum allowed length (8191 bytes).
-.El
-.Sh SEE ALSO
-.Xr ioctl 2 ,
-.Xr eeprom 8
-.Sh HISTORY
-A
-sparc64
-.Nm openprom
-manual page first appeared in
-.Ox 3.0 .
-.Sh BUGS
-Due to limitations within the OPENPROM itself,
-these functions run at elevated priority
-and may adversely affect system performance.
diff --git a/share/man/man4/man4.arm64/openprom.4 b/share/man/man4/openprom.4
index 26910ea17ec..7054ca0ea17 100644
--- a/share/man/man4/man4.arm64/openprom.4
+++ b/share/man/man4/openprom.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: openprom.4,v 1.3 2019/04/24 15:58:57 denis Exp $
+.\" $OpenBSD: openprom.4,v 1.1 2019/04/25 16:47:56 denis Exp $
.\" Copyright (c) 1992, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -32,8 +32,8 @@
.\"
.\" from: @(#)openprom.4 8.1 (Berkeley) 6/5/93
.\"
-.Dd $Mdocdate: April 24 2019 $
-.Dt OPENPROM 4 arm64
+.Dd $Mdocdate: April 25 2019 $
+.Dt OPENPROM 4
.Os
.Sh NAME
.Nm openprom
@@ -43,7 +43,7 @@
.Sh DESCRIPTION
The file
.Pa /dev/openprom
-is an interface to the ARM OPENPROM.
+is an interface to the OPENPROM.
This interface is highly stylized,
ioctls are used for all operations.
These ioctls refer to
@@ -104,6 +104,10 @@ If no such property is associated with that node,
the value length is set to -1.
If the named property exists but has no value,
the value length is set to 0.
+.It Dv OPIOCSET
+Writes the given value under the given name.
+The OPENPROM may refuse this operation,
+in this case
.Dv EINVAL
is returned.
.It Dv OPIOCNEXTPROP
@@ -135,12 +139,25 @@ The given name or value field
exceeds the maximum allowed length (8191 bytes).
.It Bq Er ENOMEM
Memory could not be allocated.
+.It Bq Er ENOTTY
+The ioctl is not supported on this architecture.
.El
.Sh SEE ALSO
.Xr ioctl 2 ,
.Xr eeprom 8
.Sh HISTORY
-The ARM OPENPROM interface first appeared in
+The
+.Nm
+interface first appeared in
+.Ox 3.0
+for sparc64.
+It has been available on macppc since
+.Ox 4.3 ,
+on octeon since
+.Ox 6.0 ,
+on armv7 since
+.Ox 6.0 ,
+and on arm64 since
.Ox 6.1 .
.Sh BUGS
Due to limitations within the OPENPROM itself,