Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man4/pci.4
Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | |||||
.Er EINVAL . | .Er EINVAL . | ||||
.El | .El | ||||
.El | .El | ||||
.It PCIOCREAD | .It PCIOCREAD | ||||
This | This | ||||
.Xr ioctl 2 | .Xr ioctl 2 | ||||
reads the | reads the | ||||
.Tn PCI | .Tn PCI | ||||
configuration registers specified by the passed-in | configuration register specified by the passed-in | ||||
.Va pci_io | .Va pci_io | ||||
structure. | structure. | ||||
The | The | ||||
.Va pci_io | .Va pci_io | ||||
structure consists of the following fields: | structure consists of the following fields: | ||||
.Bl -tag -width pi_width | .Bl -tag -width pi_width | ||||
.It pi_sel | .It pi_sel | ||||
A | A | ||||
Show All 16 Lines | |||||
.It pi_data | .It pi_data | ||||
The data returned by the kernel. | The data returned by the kernel. | ||||
.El | .El | ||||
.It PCIOCWRITE | .It PCIOCWRITE | ||||
This | This | ||||
.Xr ioctl 2 | .Xr ioctl 2 | ||||
allows users to write to the | allows users to write to the | ||||
.Tn PCI | .Tn PCI | ||||
specified in the passed-in | configuration register specified in the passed-in | ||||
.Va pci_io | .Va pci_io | ||||
structure. | structure. | ||||
The | The | ||||
.Va pci_io | .Va pci_io | ||||
structure is described above. | structure is described above. | ||||
The limitations on data width described for | The limitations on data width described for | ||||
reading registers, above, also apply to writing | reading registers, above, also apply to writing | ||||
.Tn PCI | .Tn PCI | ||||
configuration registers. | configuration registers. | ||||
.It PCIOCATTACHED | .It PCIOCATTACHED | ||||
This | This | ||||
.Xr ioctl 2 | .Xr ioctl 2 | ||||
allows users to query if a driver is attached to the | allows users to query if a driver is attached to the | ||||
.Tn PCI | .Tn PCI | ||||
specified in the passed-in | device specified in the passed-in | ||||
.Va pci_io | .Va pci_io | ||||
structure. | structure. | ||||
The | The | ||||
.Va pci_io | .Va pci_io | ||||
structure is described above, however, the | structure is described above, however, the | ||||
.Va pi_reg | .Va pi_reg | ||||
and | and | ||||
.Va pi_width | .Va pi_width | ||||
▲ Show 20 Lines • Show All 315 Lines • Show Last 20 Lines |