svn commit: r349606 - stable/11/share/man/man4
Niclas Zeising
zeising at FreeBSD.org
Tue Jul 2 17:24:27 UTC 2019
Author: zeising (doc,ports committer)
Date: Tue Jul 2 17:24:25 2019
New Revision: 349606
URL: https://svnweb.freebsd.org/changeset/base/349606
Log:
MFC 349133 349146 349150: document PCIOCATTACHED
r349133:
pci(4): Document PCIOCATTACHED
Document the PCIOCATTACHED ioctl(2) in the pci(4) manual.
PCIOCATTACHED is used to query if a driver has attached to a PCI.
Reviewed by: bcr, imp
Differential Revision: https://reviews.freebsd.org/D20652
r349146:
pci.4: wordsmith and add missing words
Add missing words after PCI in the description of the PCIOCWRITE and
PCIOCATTACHED ioctls.
Use singular in PCIOCREAD, we only read one register at the time.
Reviewed by: bcr, bjk, rgrimes, cem
Differential Revision: https://reviews.freebsd.org/D20671
r349150:
pci.4: Use plural configuration registers
It is customary to use plural when talking about PCI configure registers.
Reported by: scottl
Merge conflicts manually.
Modified:
stable/11/share/man/man4/pci.4
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/share/man/man4/pci.4
==============================================================================
--- stable/11/share/man/man4/pci.4 Tue Jul 2 17:23:37 2019 (r349605)
+++ stable/11/share/man/man4/pci.4 Tue Jul 2 17:24:25 2019 (r349606)
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 8, 2016
+.Dd June 17, 2019
.Dt PCI 4
.Os
.Sh NAME
@@ -290,7 +290,7 @@ This
.Xr ioctl 2
reads the
.Tn PCI
-configuration registers specified by the passed-in
+configuration register specified by the passed-in
.Va pci_io
structure.
The
@@ -307,7 +307,7 @@ from the ioctl.
.It pi_reg
The
.Tn PCI
-configuration register the user would like to access.
+configuration registers the user would like to access.
.It pi_width
The width, in bytes, of the data the user would like to read.
This value
@@ -323,7 +323,7 @@ This
.Xr ioctl 2
allows users to write to the
.Tn PCI
-specified in the passed-in
+configuration registers specified in the passed-in
.Va pci_io
structure.
The
@@ -334,6 +334,26 @@ reading registers, above, also apply to writing
.Tn PCI
configuration registers.
.El
+.It PCIOCATTACHED
+This
+.Xr ioctl 2
+allows users to query if a driver is attached to the
+.Tn PCI
+device specified in the passed-in
+.Va pci_io
+structure.
+The
+.Va pci_io
+structure is described above, however, the
+.Va pi_reg
+and
+.Va pi_width
+fields are not used.
+The status of the device is stored in the
+.Va pi_data
+field.
+A value of 0 indicates no driver is attached, while a value larger than 0
+indicates that a driver is attached.
.Sh LOADER TUNABLES
Tunables can be set at the
.Xr loader 8
More information about the svn-src-stable-11
mailing list