2000-06-11 05:13:44 +04:00
|
|
|
.\" $NetBSD: pcibios.4,v 1.4 2000/06/11 01:13:44 augustss Exp $
|
2000-02-27 20:09:39 +03:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Lennart Augustsson.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the NetBSD
|
|
|
|
.\" Foundation, Inc. and its contributors.
|
|
|
|
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
.\" contributors may be used to endorse or promote products derived
|
|
|
|
.\" from this software without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.Dd February 27, 2000
|
|
|
|
.Dt PCIBIOS 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm pcibios
|
|
|
|
.Nd introduction to PCI BIOS support
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd "options PCIBIOS"
|
|
|
|
.Cd "#options PCIBIOSVERBOSE"
|
|
|
|
.Cd "options PCIBIOS_INTR_FIXUP"
|
2000-04-28 23:15:15 +04:00
|
|
|
.Cd "#options PCIBIOS_IRQS_HINT=""0x0a00"" #IRQ 9,11"
|
2000-02-27 20:09:39 +03:00
|
|
|
.Cd "#options PCIINTR_DEBUG"
|
|
|
|
.Cd "options PCIBIOS_BUS_FIXUP"
|
2000-04-28 23:15:15 +04:00
|
|
|
.Cd "options PCIBIOS_ADDR_FIXUP"
|
2000-02-27 20:09:39 +03:00
|
|
|
.Pp
|
|
|
|
.Sh INTRODUCTION
|
|
|
|
.Nx
|
|
|
|
provides support for setting up PCI controllers, bridges, and devices
|
|
|
|
using information extracted from the BIOS.
|
|
|
|
.Pp
|
|
|
|
Ideally, the boot firmware of a machine (a.k.a. BIOS) should set
|
|
|
|
up all PCI devices; assigning them I/O and memory addresses and
|
|
|
|
interrupts. Alas, this does not always happen, so there is some
|
|
|
|
PC specific code that can do the initialization when
|
|
|
|
.Nx
|
|
|
|
boots.
|
|
|
|
.Pp
|
|
|
|
Options:
|
|
|
|
.Bl -tag -width PCIBIOS_INTR_FIXUP -offset 3n -compact
|
|
|
|
.It Nm PCIBIOS
|
|
|
|
turn on the PCI BIOS support.
|
|
|
|
.It Nm PCIBIOSVERBOSE
|
|
|
|
make the setup procedure verbose.
|
|
|
|
.It Nm PCIBIOS_INTR_FIXUP
|
|
|
|
fixup PCI interrupt routing.
|
2000-04-28 23:15:15 +04:00
|
|
|
.It Nm PCIBIOS_IRQS_HINT
|
2000-06-11 05:13:44 +04:00
|
|
|
hint for IRQ use.
|
|
|
|
When the PCI BIOS support cannot
|
|
|
|
guess an adequate IRQ for a device the hint is used.
|
2000-02-27 20:09:39 +03:00
|
|
|
.It Nm PCIINTR_DEBUG
|
2000-03-21 23:47:34 +03:00
|
|
|
super-verbose PCI interrupt fixup.
|
2000-02-27 20:09:39 +03:00
|
|
|
.It Nm PCIBIOS_BUS_FIXUP
|
|
|
|
fixup PCI bus numbering; needed for many
|
|
|
|
.Xr cardbus 4
|
|
|
|
bridges.
|
2000-04-28 23:15:15 +04:00
|
|
|
.It Nm PCIBIOS_ADDR_FIXUP
|
|
|
|
fixup PCI I/O and memory addresses.
|
2000-02-27 20:09:39 +03:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr cardbus 4 ,
|
|
|
|
.Xr pci 4
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
code appeared in
|
|
|
|
.Nx 1.5 .
|