PCI(4) Kernel Interfaces Manual PCI(4) NAME pci -- generic PCI driver SYNOPSIS device pci DESCRIPTION The pci driver provides a way for userland programs to read and write PCI configuration registers. It also provides a way for userland programs to get a list of all PCI devices, or all PCI devices that match various pat- terns. Since the pci driver provides a write interface for PCI configuration reg- isters, system administrators should exercise caution when granting access to the pci device. If used improperly, this driver can allow userland ap- plications to crash a machine or cause data loss. The pci driver implements the PCI bus in the kernel. It enumerates any de- vices on the PCI bus and gives PCI client drivers the chance to attach to them. It assigns resources to children, when the BIOS does not. It takes care of routing interrupts when necessary. It reprobes the unattached PCI children when PCI client drivers are dynamically loaded at runtime. KERNEL CONFIGURATION The pci device is included in the kernel as described in the SYNOPSIS sec- tion. The pci driver cannot be built as a kld(4). IOCTLS The following ioctl(2) calls are supported by the pci driver. They are de- fined in the header file <sys/pciio.h>. PCIOCGETCONF PCIOCREAD PCIOCWRITE FILES /dev/pci Character device for the pci driver. SEE ALSO pciconf(8) HISTORY The pci driver (not the kernel's PCI support code) first appeared in FreeBSD 2.2, and was written by Stefan Esser and Garrett Wollman. Support for device listing and matching was re-implemented by Kenneth Merry, and first appeared in FreeBSD 3.0. AUTHORS Kenneth Merry <ken@FreeBSD.org> BUGS It is not possible for users to specify an accurate offset into the device list without calling the PCIOCGETCONF at least once, since they have no way of knowing the current generation number otherwise. This probably is not a serious problem, though, since users can easily narrow their search by specifying a pattern or patterns for the kernel to match against. FreeBSD 8.1 January 3, 2008 PCI(4)
NAME | SYNOPSIS | DESCRIPTION | KERNEL CONFIGURATION | IOCTLS | FILES | SEE ALSO | HISTORY | AUTHORS | BUGS
Want to link to this manual page? Use this URL:
<https://man.FreeBSD.org/cgi/man.cgi?query=pci&sektion=4&manpath=FreeBSD+8.1-RELEASE>