1.\" $OpenBSD: pci.4,v 1.76 2003/06/19 20:29:51 deraadt Exp $ 2.\" $NetBSD: pci.4,v 1.29 2000/04/01 00:32:23 tsarna Exp $ 3.\" 4.\" Copyright (c) 2000 Theo de Raadt. All rights reserved. 5.\" Copyright (c) 1997 Jason R. Thorpe. All rights reserved. 6.\" Copyright (c) 1997 Jonathan Stone 7.\" All rights reserved. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 3. All advertising materials mentioning features or use of this software 18.\" must display the following acknowledgements: 19.\" This product includes software developed by Jonathan Stone 20.\" 4. The name of the author may not be used to endorse or promote products 21.\" derived from this software without specific prior written permission 22.\" 23.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 24.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 25.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 26.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 27.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 28.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 29.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 30.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33.\" 34.Dd April 3, 2000 35.Dt PCI 4 36.Os 37.Sh NAME 38.Nm pci 39.Nd introduction to PCI bus support 40.Sh SYNOPSIS 41.Cd "# alpha" 42.Cd "pci* at apecs?" 43.Cd "pci* at cia?" 44.Cd "pci* at irongate?" 45.Cd "pci* at lca?" 46.Cd "pci* at tsp?" 47.Pp 48.Cd "# i386" 49.Cd "pci* at mainbus0 bus ?" 50.Cd "pci* at pchb? bus ?" 51.Pp 52.Cd "# macppc" 53.Cd "pci* at mpcpcibr?" 54.Pp 55.Cd "# sparc64" 56.Cd "pci* at psycho?" 57.Cd "pci* at schizo?" 58.Pp 59.Cd "# all architectures" 60.Cd "ppb* at pci? dev ? function ?" 61.Cd "pci* at ppb? bus ?" 62.Sh DESCRIPTION 63The system includes a machine-independent 64.Tn PCI 65bus subsystem and 66several machine-independent 67.Tn PCI 68device drivers. 69.Pp 70Your system may support additional 71.Tn PCI 72devices. 73Drivers for 74.Tn PCI 75devices not listed here are machine-dependent. 76Consult your system's 77.Xr intro 4 78for additional information. 79.Ss Details specific to the i386 80Note that interrupt mappings on the i386 may require that you configure 81your BIOS to reserve sufficient interrupts as "PCI/ISAPnP" so that there 82are sufficient interrupts remaining to configure the discovered PCI 83devices. 84For more information, see 85.Xr pcibios 4 . 86.Sh SUPPORTED DEVICES 87The system includes machine-independent 88.Tn PCI 89drivers, sorted by device type and driver name: 90.Ss SCSI host adapters 91.Bl -tag -width 10n -offset ind -compact 92.It Xr adv 4 , Xr adw 4 93AdvanSys PCI 94.Tn SCSI 95interfaces. 96.It Xr ahc 4 97Adaptec 27xx, 29xx, 39xx, 29160, and other AIC-7xxx-based 98.Tn SCSI 99interfaces. 100.It Xr bha 4 101Buslogic BT-9xx 102.Tn SCSI 103interfaces. 104.It Xr iha 4 105Initio INIC-940 and INIC-950 based 106.Tn SCSI 107interfaces. 108.It Xr isp 4 109QLogic ISP-1020, ISP-1040, and ISP-2100 110.Tn SCSI 111and 112.Tn FibreChannel 113interfaces. 114.It Xr ncr 4 , Xr siop 4 115LSI/Symbios Logic/NCR 53c8xx and 53c1010-family 116.Tn SCSI 117interfaces. 118.It Xr pcscp 4 119AMD Am53c974 PCscsi-PCI 120.Tn SCSI 121interfaces. 122.It Xr trm 4 123Tekram DC-3x5U (TRM-S1040 based) 124.Tn SCSI 125interfaces. 126.El 127.Ss IDE disk controllers 128.Bl -tag -width 10n -offset ind -compact 129.It Xr pciide 4 130PCI IDE controller driver. 131.El 132.Ss RAID and cache controllers 133.Bl -tag -width 10n -offset ind -compact 134.It Xr aac 4 135Adaptec "FSA" family (Adaptec AAC, Dell PERC, HP NetRaid) 136.Tn RAID 137controllers. 138.It Xr ami 4 139American Megatrends Inc. 140MegaRAID family 141.Tn RAID 142controllers. 143.It Xr cac 4 144Compaq Smart ARRAY 145.Tn RAID 146controllers. 147.It Xr dpt 4 148DPT SmartCache/SmartRAID III and IV 149.Tn SCSI 150controllers. 151.It Xr gdt 4 152ICP-Vortex GDT 153.Tn RAID 154controllers. 155.It Xr iop 4 156Generic 157.Tn I2O 158specification 159.Tn RAID 160controllers. 161.It Xr twe 4 1623ware Escalade 163.Tn RAID 164controllers. 165.El 166.Ss Network interfaces 167.Bl -tag -width 10n -offset ind -compact 168.It Xr an 4 169Aironet Communications 4500/4800 IEEE 802.11DS wireless network adapter. 170.It Xr bge 4 171Broadcom BCM570x PCI gigabit ethernet. 172.It Xr dc 4 173Various Tulip-like Ethernet 174interfaces such as the DEC/Intel 21143; 175Macronix 98713, 98713A, 98715, 98715A, 98725, 98727, and 98732; 176Davicom DM9100, DM9102, and DM9102A; 177ASIX Electronics AX88140A and AX88141; 178ADMtek AL981 Comet and AN983 Centaur-P; 179Lite-On 82c168 and 82c169 PNIC; 180and 181Lite-On/Macronix 82c115 PNIC II. 182.It Xr de 4 183.Tn DEC 184DC21x4x (Tulip) based Ethernet 185interfaces, including the DE435, DE450, DE500; 186Znyx ZX3xx; 187SMC 8432, 9332, 9334; 188Cogent/Adaptec EM100FX and EM440TX; 189and Asante single- and multi-port 190Ethernet interfaces. 191Multi-port interfaces are typically configured as 192.Tn PCI Ns \- Ns Tn PCI 193bridges with multiple 194.Xr de 4 195instances on the 196.Tn PCI 197bus on the other side of the bridge. 198.It Xr em 4 199Intel Gigabit Ethernet interfaces. (i82542, i82543, i82544) 200.It Xr en 4 201Midway-based Efficient Networks Inc. 202and Adaptec ATM interfaces. 203.It Xr ep 4 2043Com 3c590 and 3c595 Ethernet interfaces. 205.It Xr fpa 4 206.Tn DEC 207DEFPA 208.Tn FDDI 209interfaces. 210.It Xr fxp 4 211Intel EtherExpress PRO 10+/100B Ethernet interfaces. 212.It Xr gem 4 213Sun GEM and Apple GMAC Gigabit Ethernet interfaces. 214.It Xr le 4 215PCNet-PCI Ethernet interfaces. 216.It Xr lge 4 217Level 1 LXT1001 NetCellerator PCI Gigabit Ethernet. 218.It Xr lmc 4 219Lan Media Corporation 220.Tn SSI/DS1/HSSI/DS3 221interfaces. 222.It Xr ne 4 223NE2000-compatible Ethernet interfaces. 224.It Xr nge 4 225National Semiconductor DP83820 and DP83821 based Gigabit Ethernet. 226.It Xr rl 4 227Realtek 8129/8139 Ethernet interfaces. 228.It Xr sf 4 229Adaptec AIC-6915 "Starfire" Ethernet interfaces. 230.It Xr sis 4 231SiS 900, SiS 7016, and NS DP83815 Ethernet interfaces. 232.It Xr sk 4 233SysKonnect SK-984x Gigabit Ethernet interfaces. 234.It Xr ste 4 235Sundance Technologies ST201 Ethernet interfaces. 236.It Xr stge 4 237Sundance/Tamarack TC9021 Gigabit Ethernet driver. 238.It Xr ti 4 239Alteon Networks Tigon I and Tigon II Gigabit Ethernet interfaces. 240.It Xr tl 4 241Texas Instruments ThunderLAN-based Ethernet interfaces. 242.It Xr tx 4 243SMC 9432 10/100 Mbps Ethernet interfaces. 244.It Xr txp 4 2453Com 3XP Typhoon/Sidewinder (3C990) 10/100 Mbps Ethernet interfaces. 246.It Xr vr 4 247VIA Technologies VT3043 and VT86C100A Ethernet interfaces. 248.It Xr wb 4 249Winbond W89C840F Ethernet interfaces. 250.It Xr wi 4 251WaveLAN/IEEE and PRISM-II 802.11DS wireless network interfaces behind 252a PLX 905x-based dumb PCMCIA->PCI bridge. 253.It Xr xl 4 2543Com 3c555, 3c556, 3c900, 3c905, 3c980, and 3cSOHO Ethernet interfaces. 255.El 256.Ss Cryptography accelerators 257.Bl -tag -width 10n -offset ind -compact 258.It Xr hifn 4 259Hifn 7751, 7811, and 7951. 260Symmetric Encryption Accelerator. 261.It Xr ises 4 262Pijnenburg PCC-ISES hardware crypto accelerator. 263.It Xr lofn 4 264Hifn 6500 crypto accelerator. 265.It Xr noct 4 266NetOctave NSP2000 crypto accelerator. 267.It Xr nofn 4 268Hifn 7814, 7851 and 7854 crypto processor. 269.It Xr ubsec 4 270Broadcom Bluesteelnet uBsec 5501, 5601, 5805, 5820, and 5821. 271.El 272.Ss Serial interfaces 273.Bl -tag -width 10n -offset ind -compact 274.It Xr cy 4 275Cyclades Cyclom-4Y, -8Y, and -16Y asynchronous serial communications devices. 276.It Xr cz 4 277Cyclades-Z series multi-port serial adapter device driver. 278.El 279.Ss Display adapters 280.Bl -tag -width 10n -offset ind -compact 281.It Xr vga 4 282VGA graphics cards. 283.El 284.Ss Audio devices 285.Bl -tag -width 10n -offset ind -compact 286.It Xr auich 4 287Integrated Intel 82801AA/AB/BA/CA and 440MX sound devices. 288.It Xr autri 4 289Trident 4DWAVE-DX/NX, SiS 7018, ALi M5451 audio devices. 290.It Xr auvia 4 291Integrated AC97 audio controller of the 292.Tn VIA Technologies VT82C686A 293and 294.Tn VT8233 295Southbridges. 296.It Xr clcs 4 297Cirrus Logic CrystalClear CS4280 sound devices. 298.It Xr clct 4 299Cirrus Logic CrystalClear CS4281 sound devices. 300.It Xr cmpci 4 301C-Media CMI8x38 sound devices. 302.It Xr eap 4 303Ensoniq AudioPCI sound devices. 304.It Xr emu 4 305Creative Labs SBLive! and PCI 512 audio device driver. 306.It Xr esa 4 307ESS Alegro 1 and Maestro 3 sound devices. 308.It Xr eso 4 309ESS Solo-1 PCI AudioDrive sound devices. 310.It Xr fms 4 311Forte Media FM801 sound devices. 312.It Xr maestro 4 313ESS Maestro 1, 2 and 2E sound devices. 314.It Xr neo 4 315NeoMagic 256AV/ZX sound devices. 316.It Xr sv 4 317S3 SonicVibes sound devices. 318.It Xr yds 4 319Yamaha DS-XG sound devices. 320.El 321.Ss Radio receiver devices 322.Bl -tag -width 10n -offset ind -compact 323.It Xr fms 4 324SoundForte RadioLink SF64-PCR, SoundForte Quad X-treme SF256-PCP-R and 325SoundForte Theatre X-treme 5.1 SF256-PCS-R FM radio devices driver. 326.It Xr gtp 4 327Gemtek PCI FM radio device driver. 328.El 329.Ss Miscellaneous devices 330.Bl -tag -width 10n -offset ind -compact 331.It Xr amdpm 4 332AMD768 Power Management controller. 333.It Xr bktr 4 334Brooktree Bt848 335.Tn PCI 336TV tuners and video capture boards. 337.It Xr cbb 4 338.Tn PCI 339Yenta compatible 340.Tn CardBus 341bridges. 342.It Xr ohci 4 343USB OHCI host controller. 344.It Xr pcic 4 345.Tn PCI 346.Tn PCMCIA 347controllers, including the Cirrus Logic GD6729. 348.It Xr ppb 4 349Generic 350.Tn PCI Ns \- Ns Tn PCI 351bridges, including 352.Tn PCI 353expansion backplanes. 354.It Xr puc 4 355PCI 356.Dq universal 357communications cards, containing 358.Xr com 4 359and 360.Xr lpt 4 361communications ports. 362.It Xr uhci 4 363USB UHCI host controller. 364.It Xr wdt 4 365ICS PCI-WDT500/501 watchdog timer devices. 366.El 367.Sh IOCTLS 368If the kernel is compiled with the 369.Va USER_PCICONF 370kernel option, the following 371.Xr ioctl 2 372calls are supported by the 373.Nm 374driver. 375They are defined in the header file 376.Aq Pa sys/pciio.h . 377.Bl -tag -width 012345678901234 378.Pp 379.It PCIOCREAD 380This 381.Xr ioctl 2 382reads the 383.Tn PCI 384configuration registers specified by the passed-in 385.Va pci_io 386structure. 387The 388.Va pci_io 389structure consists of the following fields: 390.Bl -tag -width pi_width 391.It pi_sel 392A 393.Va pcisel 394structure which specifies the bus, slot and function the user would like to 395query. 396.It pi_reg 397The 398.Tn PCI 399configuration register the user would like to access. 400.It pi_width 401The width, in bytes, of the data the user would like to read. 402This value may be either 1, 2, or 4. 4033-byte reads and reads larger than 4 bytes are not supported. 404.It pi_data 405The data returned by the kernel. 406.El 407.It PCIOCWRITE 408This 409.Xr ioctl 2 410allows users to write to the 411.Tn PCI 412specified in the passed-in 413.Va pci_io 414structure. 415The 416.Va pci_io 417structure is described above. 418The limitations on data width described for 419reading registers, above, also apply to writing 420.Tn PCI 421configuration registers. 422.El 423.Sh FILES 424.Bl -tag -width /dev/pci -compact 425.It Pa /dev/pci 426Character device for the 427.Nm 428driver. 429.El 430.Sh SEE ALSO 431.Xr aac 4 , 432.Xr adv 4 , 433.Xr adw 4 , 434.Xr ahc 4 , 435.Xr ami 4 , 436.Xr an 4 , 437.\" no manpage .Xr apecs 4 438.Xr auich 4 , 439.Xr autri 4 , 440.Xr auvia 4 , 441.Xr bge 4 , 442.Xr bha 4 , 443.Xr bktr 4 , 444.Xr cac 4 , 445.Xr cardbus 4 , 446.\" no manpage .Xr cia 4 447.Xr clcs 4 , 448.Xr clct 4 , 449.Xr cmpci 4 , 450.Xr cy 4 , 451.Xr cz 4 , 452.Xr dc 4 , 453.Xr de 4 , 454.Xr dpt 4 , 455.Xr eap 4 , 456.Xr eisa 4 , 457.Xr em 4 , 458.Xr emu 4 , 459.\" no manpage .Xr en 4 , 460.Xr ep 4 , 461.Xr esa 4 , 462.Xr eso 4 , 463.Xr fms 4 , 464.Xr fpa 4 , 465.Xr fxp 4 , 466.Xr gdt 4 , 467.Xr gtp 4 , 468.Xr hifn 4 , 469.Xr iha 4 , 470.Xr intro 4 , 471.Xr iop 4 , 472.\" no manpage .Xr irongate 4 473.Xr isa 4 , 474.Xr isapnp 4 , 475.Xr ises 4 , 476.Xr isp 4 , 477.\" no manpage .Xr lca 4 478.Xr le 4 , 479.Xr lge 4 , 480.Xr lmc 4 , 481.Xr lofn 4 , 482.Xr maestro 4 , 483.\" no manpage .Xr mpcpcibr 4 484.Xr ncr 4 , 485.Xr ne 4 , 486.Xr neo 4 , 487.Xr nge 4 , 488.Xr noct 4 , 489.Xr nofn 4 , 490.Xr ohci 4 , 491.Xr options 4 , 492.Xr pchb 4 , 493.Xr pcic 4 , 494.Xr pcmcia 4 , 495.Xr pcscp 4 , 496.Xr ppb 4 , 497.Xr psycho 4 , 498.Xr puc 4 , 499.Xr rl 4 , 500.\" no manpage .Xr tsp 4 501.Xr schizo 4 , 502.Xr sf 4 , 503.Xr siop 4 , 504.Xr sis 4 , 505.Xr sk 4 , 506.Xr ste 4 , 507.Xr stge 4 , 508.Xr sv 4 , 509.Xr ti 4 , 510.Xr tl 4 , 511.Xr trm 4 , 512.Xr twe 4 , 513.Xr tx 4 , 514.Xr txp 4 , 515.Xr ubsec 4 , 516.Xr uhci 4 , 517.Xr usb 4 , 518.Xr vga 4 , 519.Xr vr 4 , 520.Xr wb 4 , 521.Xr wdt 4 , 522.Xr wi 4 , 523.Xr xl 4 , 524.Xr yds 4 525.Sh HISTORY 526The machine-independent 527.Tn PCI 528subsystem appeared in 529.Ox 2.0 . 530Support for device listing and matching was re-implemented by 531Kenneth Merry, and first appeared in 532.Fx 3.0 . 533