xref: /openbsd-src/share/man/man4/pci.4 (revision fb8aa7497fded39583f40e800732f9c046411717)
1.\"	$OpenBSD: pci.4,v 1.349 2016/06/16 19:13:57 martijn 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 $Mdocdate: June 16 2016 $
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.Cd "pci* at mcpcia?"
48.Pp
49.Cd "# amd64, i386"
50.Cd "pci* at mainbus0"
51.Pp
52.Cd "# armish"
53.Cd "pci* at iopxs0"
54.Pp
55.Cd "# hppa"
56.Cd "pci* at dino?"
57.Cd "pci* at elroy?"
58.Pp
59.Cd "# landisk"
60.Cd "pci* at shpcic?"
61.Pp
62.Cd "# loongson"
63.Cd "pci* at bonito?"
64.Pp
65.Cd "# macppc"
66.Cd "pci* at mpcpcibr?"
67.Cd "pci* at ht?"
68.Cd "pci* at hpb?"
69.Pp
70.Cd "# sgi"
71.Cd "pci* at macepcibr?"
72.Cd "pci* at xbridge?"
73.Pp
74.Cd "# sparc64"
75.Cd "pci* at psycho?"
76.Cd "pci* at schizo?"
77.Cd "pci* at pyro?"
78.Cd "pci* at vpci?"
79.Pp
80.Cd "# all architectures"
81.Cd "pci* at pchb?"
82.Cd "pci* at ppb?"
83.Sh DESCRIPTION
84The system includes a machine-independent
85.Tn PCI
86bus subsystem and
87several machine-independent
88.Tn PCI
89device drivers.
90.Pp
91Note that interrupt mappings on the i386 may require that you configure
92your BIOS to reserve sufficient interrupts as "PCI/ISAPnP" so that there
93are sufficient interrupts remaining to configure the discovered PCI
94devices.
95For more information, see
96.Xr pcibios 4 .
97.Pp
98.Ox
99provides support for the following devices.
100Note that not all architectures support all devices.
101.Ss SCSI host adapters
102.Bl -tag -width 10n -offset ind -compact
103.It Xr adv 4 , Xr adw 4
104AdvanSys PCI SCSI interface
105.It Xr ahc 4
106Adaptec VL/EISA/PCI SCSI interface
107.It Xr ahd 4
108Adaptec PCI/PCI-X AIC79xx-based Ultra320 SCSI interface
109.It Xr bha 4
110Buslogic SCSI interface
111.It Xr iha 4
112Initio INIC-940/950 based PCI SCSI interface
113.It Xr mpi 4
114LSI Logic Fusion-MPT Message Passing Interface
115.It Xr mpii 4
116LSI Logic Fusion-MPT Message Passing Interface II
117.It Xr nvme 4
118Non-Volatile Memory Host Controller Interface
119.It Xr pcscp 4
120Advanced Micro Devices Am53c974 PCscsi-PCI SCSI interface
121.It Xr qla 4
122QLogic ISP2100/2200/2300 Fibre Channel controller
123.It Xr qle 4
124QLogic ISP2400/2500 Fibre Channel controller
125.It Xr qlw 4
126QLogic ISP1000/1020/1x40/1x80/1x160 SCSI controller
127.It Xr siop 4
128LSI/Symbios Logic/NCR 53c8xx SCSI interface
129.It Xr sli 4
130Emulex LightPulse Fibre Channel SCSI interface
131.It Xr trm 4
132TRM-S1040 based PCI SCSI interface
133.It Xr vmwpvs 4
134VMware Paravirtual SCSI
135.El
136.Ss IDE disk controllers
137.Bl -tag -width 10n -offset ind -compact
138.It Xr ahci 4
139Advanced Host Controller Interface for Serial ATA
140.It Xr jmb 4
141JMicron JMB36x SATA II and PATA Host Controller
142.It Xr pciide 4
143PCI IDE controller driver
144.It Xr sili 4
145Silicon Image 3124/3132/3531 SATA controller
146.El
147.Ss RAID and cache controllers
148.Bl -tag -width 10n -offset ind -compact
149.It Xr aac 4
150Adaptec SAS/SATA/SCSI RAID controller
151.It Xr ami 4
152American Megatrends Inc. MegaRAID PATA/SATA/SCSI RAID controller
153.It Xr arc 4
154Areca Technology Corporation SAS/SATA RAID controller
155.It Xr cac 4
156Compaq Smart Array 2/3/4 SCSI RAID controller
157.It Xr ciss 4
158Compaq Smart Array SAS/SATA/SCSI RAID controller
159.It Xr dpt 4
160DPT EATA SCSI RAID controller
161.It Xr gdt 4
162ICP-Vortex and Intel GDT SATA/SCSI RAID controller
163.It Xr ips 4
164IBM SATA/SCSI ServeRAID controller
165.It Xr mfi 4
166LSI Logic & Dell MegaRAID SAS RAID controller
167.It Xr mfii 4
168LSI Logic MegaRAID SAS Fusion RAID controller
169.It Xr twe 4
1703ware 5000/6000/7000/8000 series PATA/SATA RAID controller
171.El
172.Ss Wired network interfaces
173.Bl -tag -width 10n -offset ind -compact
174.It Xr age 4
175Attansic L1 10/100/Gigabit Ethernet device
176.It Xr alc 4
177Atheros AR813x/AR815x 10/100/Gigabit Ethernet device
178.It Xr ale 4
179Atheros AR8121/AR8113/AR8114 10/100/Gigabit Ethernet device
180.It Xr bce 4
181Broadcom BCM4401 10/100 Ethernet device
182.It Xr bge 4
183Broadcom BCM57xx/BCM590x 10/100/Gigabit Ethernet device
184.It Xr bnx 4
185Broadcom NetXtreme II 10/100/Gigabit Ethernet device
186.It Xr cas 4
187Sun Cassini 10/100/Gigabit Ethernet device
188.It Xr dc 4
189DEC/Intel 21140/21142/21143/21145 and clones 10/100 Ethernet device
190.It Xr de 4
191DEC DC21x4x (Tulip) 10/100 Ethernet device
192.It Xr em 4
193Intel PRO/1000 10/100/Gigabit Ethernet device
194.\" .It Xr en 4
195.\" Midway-based Efficient Networks Inc.\&
196.\" and Adaptec ATM interfaces
197.It Xr ep 4
1983Com EtherLink III and Fast EtherLink III 10/100 Ethernet device
199.It Xr epic 4
200SMC 83C170 (EPIC/100) 10/100 Ethernet device
201.It Xr et 4
202Agere/LSI ET1310 10/100/Gigabit Ethernet device
203.It Xr fxp 4
204Intel EtherExpress PRO/100 10/100 Ethernet device
205.It Xr gem 4
206GEM 10/100/Gigabit Ethernet device
207.It Xr hme 4
208Sun Happy Meal 10/100 Ethernet device
209.It Xr ix 4
210Intel 82598/82599/X540 PCI Express 10Gb Ethernet device
211.It Xr ixgb 4
212Intel PRO/10GbE 10Gb Ethernet device
213.It Xr jme 4
214JMicron JMC25x/JMC26x 10/100/Gigabit Ethernet device
215.It Xr lge 4
216Level 1 LXT1001 NetCellerator PCI Gigabit Ethernet device
217.It Xr lii 4
218Attansic L2 10/100 Ethernet device
219.It Xr msk 4
220Marvell Yukon-2 10/100/Gigabit Ethernet device
221.It Xr mtd 4
222Myson Technology MTD800/MTD803/MTD891 10/100/Gigabit Ethernet device
223.It Xr myx 4
224Myricom Myri-10G PCI Express 10Gb Ethernet device
225.It Xr ne 4
226NE2000 and compatible 10/100 Ethernet device
227.It Xr nep 4
228Sun Neptune 10Gb Ethernet device
229.It Xr nfe 4
230NVIDIA nForce MCP 10/100/Gigabit Ethernet device
231.It Xr nge 4
232National Semiconductor PCI 10/100/Gigabit Ethernet device
233.It Xr oce 4
234Emulex OneConnect 10Gb Ethernet device
235.It Xr pcn 4
236AMD PCnet-PCI 10/100 Ethernet device
237.It Xr re 4
238Realtek 8139C+/8169/816xS/811xS/8168/810xE 10/100/Gigabit Ethernet device
239.It Xr rl 4
240Realtek 8129/8139 10/100 Ethernet device
241.It Xr se 4
242SiS 190/191 10/100/Gigabit Ethernet device
243.It Xr sf 4
244Adaptec AIC-6915 "Starfire" PCI 10/100 Ethernet device
245.It Xr sis 4
246SiS 900, SiS 7016, and NS DP83815/6 10/100 Ethernet device
247.It Xr sk 4
248SysKonnect XMAC II and Marvell Yukon 10/100/Gigabit Ethernet device
249.It Xr ste 4
250Sundance Technologies ST201 10/100 Ethernet device
251.It Xr stge 4
252Sundance/Tamarack TC9021 Gigabit Ethernet device
253.It Xr tht 4
254Tehuti Networks 10Gb Ethernet device
255.It Xr ti 4
256Alteon Networks Tigon I and II Gigabit Ethernet device
257.It Xr tl 4
258Texas Instruments ThunderLAN 10/100 Ethernet device
259.It Xr txp 4
2603Com 3XP Typhoon/Sidewinder (3CR990) 10/100 Ethernet device
261.It Xr vge 4
262VIA Velocity 10/100/Gigabit Ethernet device
263.It Xr vic 4
264VMware VMXnet Virtual Interface Controller device
265.It Xr vr 4
266VIA Rhine I/II/III 10/100 Ethernet device
267.It Xr vte 4
268RDC R6040 10/100 Ethernet device
269.It Xr wb 4
270Winbond W89C840F 10/100 Ethernet device
271.It Xr xge 4
272Neterion Xframe/Xframe II 10Gb Ethernet device
273.It Xr xl 4
2743Com EtherLink XL and Fast EtherLink XL 10/100 Ethernet device
275.El
276.Ss Wireless network interfaces
277.Bl -tag -width 10n -offset ind -compact
278.It Xr acx 4
279TI ACX100/ACX111 IEEE 802.11a/b/g wireless network device
280.It Xr an 4
281Aironet Communications 4500/4800 IEEE 802.11FH/b wireless network device
282.It Xr ath 4
283Atheros IEEE 802.11a/b/g wireless network device with GPIO
284.It Xr athn 4
285Atheros IEEE 802.11a/b/g/n wireless network device
286.It Xr atw 4
287ADMtek ADM8211 IEEE 802.11b wireless network device
288.It Xr bwi 4
289Broadcom AirForce IEEE 802.11b/g wireless network device
290.It Xr ipw 4
291Intel PRO/Wireless 2100 IEEE 802.11b wireless network device
292.It Xr iwi 4
293Intel
294PRO/Wireless 2200BG/2225BG/2915ABG IEEE 802.11a/b/g wireless network device
295.It Xr iwn 4
296Intel WiFi Link and Centrino IEEE 802.11a/b/g/n wireless network devices
297.It Xr iwm 4
298Intel 7000/8000 IEEE 802.11a/ac/b/g/n wireless network devices
299.It Xr malo 4
300Marvell Libertas IEEE 802.11b/g wireless network device
301.It Xr pgt 4
302Conexant/Intersil Prism GT Full-MAC IEEE 802.11a/b/g wireless network device
303.It Xr ral 4
304Ralink Technology/MediaTek IEEE 802.11a/b/g/n wireless network device
305.It Xr rtw 4
306Realtek RTL8180L IEEE 802.11b wireless network device
307.It Xr rtwn 4
308Realtek RTL8188CE PCIe IEEE 802.11b/g/n wireless network device
309.It Xr wi 4
310WaveLAN/IEEE, PRISM 2-3, and Spectrum24 IEEE 802.11b wireless network
311device
312.It Xr wpi 4
313Intel PRO/Wireless 3945ABG IEEE 802.11a/b/g wireless network device
314.El
315.Ss Cryptography accelerators
316.Bl -tag -width 10n -offset ind -compact
317.It Xr glxsb 4
318Geode LX Security Block crypto accelerator
319.It Xr hifn 4
320Hifn 7751/7811/7951/7955/7956/9751 crypto accelerator
321.It Xr safe 4
322SafeNet crypto accelerator
323.It Xr ubsec 4
324Broadcom and BlueSteel uBsec 5x0x crypto accelerator
325.El
326.Ss Serial interfaces
327.Bl -tag -width 10n -offset ind -compact
328.It Xr cy 4
329Cyclades Cyclom-4Y, -8Y, and -16Y asynchronous serial communications devices
330.It Xr cz 4
331Cyclades-Z series multi-port serial adapter device
332.It Xr puc 4
333PCI
334.Dq universal
335communications card driver
336.El
337.Ss Display adapters
338.Bl -tag -width 10n -offset ind -compact
339.It Xr sti 4
340HP Standard Text Interface
341.It Xr tga 4
342DECchip 21030 (TGA) graphics driver
343.It Xr vga 4
344VGA graphics cards
345.El
346.Ss Audio devices
347.Bl -tag -width 10n -offset ind -compact
348.It Xr auacer 4
349Acer Labs I/O Controller Hub integrated AC'97 audio device
350.It Xr auglx 4
351AMD Geode LX CS5536 integrated AC'97 audio device
352.It Xr auich 4
353Intel ICH integrated AC'97 audio device
354.It Xr auixp 4
355ATI SB200/SB300/SB400/SB600 integrated AC'97 audio device
356.It Xr autri 4
357Trident 4DWAVE-DX/NX, SiS 7018, ALi M5451 audio device
358.It Xr auvia 4
359VIA VT82C686A/VT8233/VT8235/VT8237 integrated AC'97 audio device
360.It Xr azalia 4
361generic High Definition Audio device
362.It Xr clcs 4
363Cirrus Logic CS4280/CS4610/CS4615 audio device
364.It Xr clct 4
365Cirrus Logic CS4281 audio device
366.It Xr cmpci 4
367C-Media CMI8338/CMI8738/CMI8768 PCI audio device
368.It Xr eap 4
369Ensoniq AudioPCI audio device
370.It Xr emu 4
371Creative Labs SBLive!, PCI 512, and Audigy audio device
372.It Xr envy 4
373VIA Envy24 audio device
374.It Xr esa 4
375ESS Technology Allegro-1/Maestro-3 family audio device
376.It Xr eso 4
377ESS Technology Solo-1 PCI AudioDrive audio device
378.It Xr fms 4
379Forte Media FM801 audio device
380.It Xr maestro 4
381ESS Maestro 1 and 2 audio device
382.It Xr neo 4
383NeoMagic 256AV/ZX audio device
384.It Xr sv 4
385S3 SonicVibes audio device
386.It Xr yds 4
387Yamaha DS-XG audio device
388.El
389.Ss Time receiver devices
390.Bl -tag -width 10n -offset ind -compact
391.It Xr mbg 4
392Meinberg Funkuhren timedelta sensor
393.El
394.Ss Radio receiver devices
395.Bl -tag -width 10n -offset ind -compact
396.It Xr fms 4
397Forte Media FM801 audio device
398.It Xr gtp 4
399Gemtek PCI FM radio device
400.El
401.Ss Hardware Sensors
402.Bl -tag -width 10n -offset ind -compact
403.It Xr berkwdt 4
404Berkshire Products watchdog timer device
405.It Xr elansc 4
406AMD Elan SC520 System Controller with watchdog timer and GPIO
407.It Xr geodesc 4
408Geode SC1100/SCx200 IAOC watchdog timer device
409.It Xr ichwdt 4
410Intel 6300ESB ICH watchdog timer device
411.It Xr itherm 4
412Intel 3400 temperature sensor
413.It Xr kate 4
414AMD K8 temperature sensor
415.It Xr km 4
416AMD K10 temperature sensor
417.It Xr pchtemp 4
418Intel PCH temperature sensor
419.It Xr pwdog 4
420Quancom PWDOG1 watchdog timer device
421.It Xr viapm 4
422VIA SMBus controller and VIA VT82C686A/VT8231 hardware monitor
423.It Xr wdt 4
424ICS PCI-WDT500/501 watchdog timer device
425.El
426.Ss Miscellaneous devices
427.Bl -tag -width "piixpcib(4)" -offset ind -compact
428.It Xr alipm 4
429Acer Labs M7101 SMBus controller
430.It Xr amas 4
431AMD memory address map
432.It Xr amdiic 4
433AMD-8111 SMBus controller
434.It Xr amdpcib 4
435AMD-8111 series LPC bridge and timecounter
436.It Xr amdpm 4
437AMD-756/766/768/8111 Power Management and SMBus controller
438.It Xr bktr 4
439Brooktree Bt848/849/878/879
440.Tn PCI
441TV tuners and video capture boards
442.It Xr cbb 4
443.Tn PCI
444Yenta compatible
445.Tn CardBus
446bridges
447.It Xr ehci 4
448USB Enhanced Host Controller Interface
449.It Xr gcu 4
450Intel EP80579 Global Configuration Unit
451.It Xr glxpcib 4
452CS5536 PCI-ISA Bridge with timecounter, watchdog timer, and GPIO
453.It Xr gscpcib 4
454National Semiconductor Geode SC1100 PCI-ISA bridge with GPIO
455.It Xr hpb 4
456.Tn HyperTransport Ns \- Ns Tn PCI bridge
457.It Xr ichiic 4
458Intel ICH SMBus controller
459.It Xr nviic 4
460NVIDIA nForce2/3/4 SMBus controller
461.It Xr ohci 4
462USB Open Host Controller Interface
463.It Xr pcib 4
464PCI-ISA bridge
465.It Xr pcic 4
466.Tn PCI
467.Tn PCMCIA
468controllers, including the Cirrus Logic GD6729
469.It Xr piixpcib 4
470Intel PIIX4 ISA bridges
471.It Xr piixpm 4
472Intel PIIX SMBus controller
473.It Xr ppb 4
474.Tn PCI Ns \- Ns Tn PCI bridge
475.It Xr rtsx 4
476Realtek SD card reader
477.It Xr sdhc 4
478SD Host Controller
479.It Xr ssio 4
480National Semiconductor PC87560 Legacy IO
481.It Xr tcpcib 4
482Intel Atom E600 series LPC bridge and watchdog timer
483.It Xr uhci 4
484USB Universal Host Controller Interface
485.It Xr viapm 4
486VIA SMBus controller
487.It Xr virtio 4
488VirtIO support driver
489.El
490.Sh IOCTLS
491If the kernel is compiled with the
492.Va USER_PCICONF
493kernel option, the following
494.Xr ioctl 2
495calls are supported by the
496.Nm
497driver.
498They are defined in the header file
499.In sys/pciio.h .
500.Bl -tag -width Ds
501.It PCIOCREAD Fa "struct pci_io *"
502This
503.Xr ioctl 2
504reads the
505.Tn PCI
506configuration registers specified by the passed-in
507.Va pci_io
508structure.
509The
510.Va pci_io
511structure consists of the following fields:
512.Bl -tag -width pi_width
513.It pi_sel
514A
515.Va pcisel
516structure which specifies the bus, slot and function the user would like to
517query.
518.It pi_reg
519The
520.Tn PCI
521configuration register the user would like to access.
522.It pi_width
523The width, in bytes, of the data the user would like to read.
524This value can be only 4.
525.It pi_data
526The data returned by the kernel.
527.El
528.It PCIOCWRITE Fa "struct pci_io *"
529This
530.Xr ioctl 2
531allows users to write to the
532.Tn PCI
533device specified in the passed-in
534.Va pci_io
535structure.
536The
537.Va pci_io
538structure is described above.
539The limitations on data width described for
540reading registers, above, also apply to writing
541.Tn PCI
542configuration registers.
543.It PCIOCGETROM Fa "struct pci_rom *"
544This
545.Xr ioctl 2
546allows users to read the contents of the
547.Tn PCI
548ROM specified in the passed-in
549.Va pci_rom
550structure.
551The
552.Va pci_rom
553structure consists of the following fields:
554.Bl -tag -width pr_romlen
555.It pr_sel
556A
557.Va pcisel
558structure which specifies the bus, slot and function the user would like to
559query.
560.It pr_romlen
561Size of the buffer to store the contents of the ROM.
562Upon return, this field will contain the size of the ROM
563.It pr_rom
564The address of the buffer to store the contents of the ROM.
565.El
566.Pp
567If the ROM is larger than the specified buffer size,
568.Dv ENOMEM
569will be returned.
570.El
571.Sh FILES
572.Bl -tag -width /dev/pci* -compact
573.It Pa /dev/pci*
574Character device for the
575.Nm
576driver.
577.El
578.Sh SEE ALSO
579.Xr intro 4 ,
580.Xr pcidump 8
581.Sh HISTORY
582The machine-independent
583.Tn PCI
584subsystem appeared in
585.Ox 1.2 .
586