Home | History | Annotate | Download | only in pci
History log of /src/sys/arch/i386/pci/pcibios.h
RevisionDateAuthorComments
 1.12  25-Dec-2007  perry Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h
 1.11  10-Dec-2006  uwe branches: 1.11.24; 1.11.30; 1.11.32; 1.11.36;
Use aprint_normal for PCIBIOS_PRINTV
 1.10  26-Dec-2005  perry branches: 1.10.20; 1.10.22;
u_intN_t -> uintN_t
 1.9  11-Dec-2005  christos merge ktrace-lwp.
 1.8  20-Jun-2005  sekiya branches: 1.8.2;
pci_device_foreach(), pci_device_foreach_min(), pci_bridge_foreach(), and
pci_bridge_hook don't actually have any dependancies on PCIBIOS-specific code,
and they can be used to fixup PCI bus numbering in the absence of the BIOS.

To that end, decouple them from PCIBIOS.
 1.7  11-Apr-2004  kochi de __P, ANSIfy PCIBIOS related files.
 1.6  19-Feb-2004  uebayasi Update some URLs.
 1.5  22-Jan-2002  uch branches: 1.5.2; 1.5.18;
Add pci_bridge_foreach ().
 1.4  06-Jul-2001  mcr branches: 1.4.2;
context argument added to pci_device_foreach().
 1.3  18-Jul-2000  soda branches: 1.3.4; 1.3.6;
- define PCIBIOS_PRINTV() as pcibiosverbose printf() here,
instead of DPRINTF() in each C source.
- define PIR_DEVFUNC_{DEVICE,FUNCTION}
 1.2  28-Apr-2000  uch branches: 1.2.6;
PCIBIOS_IRQS changed to PCIBIOS_IRQS_HINT. PCIBIOS_IRQS_HINT is
used when no IRQ guess. when at least 1 PCI device configured
correctly, unused.
 1.1  17-Nov-1999  thorpej branches: 1.1.2;
Basic interface to the PCI BIOS and PCI Interrupt Routing table, separated
out from UCHIYAMA Yasushi's PCI BIOS patches, and fairly heavily reworked
by me.

Main differences:
- Only use the PCI BIOS to get the config mechanism and interrupt routing
info for now. No need to use the BIOS for PCI config access right now,
since the old mechanism works fine, and this keeps the code smaller.
- PCI BIOS initialization code path is much different.
- Always use the $PIR table if it exists, and only fallback to the
PCI BIOS 2.1 GetInterruptRouting call if it's not there.

This module does not include any of the fixup code; that is coming
in separate commits.
 1.1.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.2.6.1  10-Aug-2000  soda Pull up to netbsd-1-5 branch
Approved by: thorpej

- define PCIBIOS_PRINTV() as pcibiosverbose printf(),
instead of DPRINTF() in each C source.

- define PIR_DEVFUNC_{DEVICE,FUNCTION}.

- fix oversight introduced in pci_addr_fixup.c revision 1.4,
pointed out by Michael Shalayeff <mickey@openbsd.org>.

- reserve AGP space to avoid resource conflict.

by UCHIYAMA Yasushi <uch@netbsd.org>

- Fix a problem uncovered by rev 1.5 of pcibios.c:

Avoid interpreting the upper 32 bits of 64-bit BARs as a 32-bit BAR.
Otherwise, the code would assume that the value 0 was incorrect and either:
(a) [on bus 0] "fix up" the address to some nonzero value, thus placing
the decoded address range outside of 32-bit address space, or
(b) [elsewhere] completely disable the device.

The fact that this behaviour depends on the bus number of the device is
already XXX'd.

XXX: This will need revisiting if and when we ever want to handle a PCI bus
XXX: with more than 32 bits of address space on an i386.

The onboard Adaptec 7890 on my Dell Precision Workstation 410 works again.

by Nathan J Williams <nathanw@netbsd.org>

Revisions pulled up:
> cvs rdiff -r1.2 -r1.3 syssrc/sys/arch/i386/pci/pcibios.h
> cvs rdiff -r1.3 -r1.5 syssrc/sys/arch/i386/pci/pcibios.c
> cvs rdiff -r1.3 -r1.7 syssrc/sys/arch/i386/pci/pci_addr_fixup.c
 1.3.6.2  28-Feb-2002  nathanw Catch up to -current.
 1.3.6.1  24-Aug-2001  nathanw Catch up with -current.
 1.3.4.2  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.3.4.1  18-Jul-2000  bouyer file pcibios.h was added on branch thorpej_scsipi on 2000-11-20 20:09:35 +0000
 1.4.2.1  11-Feb-2002  jdolecek Sync w/ -current.
 1.5.18.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.5.18.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.18.2  18-Sep-2004  skrll Sync with HEAD.
 1.5.18.1  03-Aug-2004  skrll Sync with HEAD
 1.5.2.2  22-Jan-2002  uch Add pci_bridge_foreach ().
 1.5.2.1  22-Jan-2002  uch file pcibios.h was added on branch sommerfeld_i386mp_1 on 2002-01-22 15:07:28 +0000
 1.8.2.3  21-Jan-2008  yamt sync with head
 1.8.2.2  30-Dec-2006  yamt sync with head.
 1.8.2.1  21-Jun-2006  yamt sync with head.
 1.10.22.1  10-Dec-2006  yamt sync with head.
 1.10.20.1  12-Jan-2007  ad Sync with head.
 1.11.36.1  02-Jan-2008  bouyer Sync with HEAD
 1.11.32.1  26-Dec-2007  ad Sync with head.
 1.11.30.1  18-Feb-2008  mjf Sync with HEAD.
 1.11.24.1  09-Jan-2008  matt sync with HEAD

RSS XML Feed