svn commit: r349605 - stable/12/share/man/man4

Niclas Zeising zeising at FreeBSD.org
Tue Jul 2 17:23:39 UTC 2019


Author: zeising (doc,ports committer)
Date: Tue Jul  2 17:23:37 2019
New Revision: 349605
URL: https://svnweb.freebsd.org/changeset/base/349605

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

Modified:
  stable/12/share/man/man4/pci.4
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/share/man/man4/pci.4
==============================================================================
--- stable/12/share/man/man4/pci.4	Tue Jul  2 16:56:27 2019	(r349604)
+++ stable/12/share/man/man4/pci.4	Tue Jul  2 17:23:37 2019	(r349605)
@@ -24,7 +24,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd June 14, 2018
+.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
@@ -333,6 +333,26 @@ The limitations on data width described for
 reading registers, above, also apply to writing
 .Tn PCI
 configuration registers.
+.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.
 .It PCIOCBARMMAP
 This
 .Xr ioctl 2


More information about the svn-src-all mailing list