Home | History | Annotate | Download | only in ixp12x0
History log of /src/sys/arch/arm/ixp12x0/ixp12x0_pci.c
RevisionDateAuthorComments
 1.18  27-Sep-2022  skrll Remove unnecessary sys/malloc.h include
 1.17  07-Jul-2020  thorpej Overhaul the interface to pci_configure_bus():
- Don't expose how PCI bus configuration resource management is implemented.
Provide a new resource provider API:

==> pciconf_resource_init() -- Initialize a PCI configuration resources
container.
==> pciconf_resource_add() -- Add a PCI configuration resource to the
container (I/O, MEM, or prefetchable MEM). Multiple resources of
each type may be added.
==> pciconf_resource_fini() -- Tear down the PCI configurtation resources
container once the bus has been configured.

This is much easier to use than the previous method of providing an
extent map for each kind of resource, and works better for e.g. ACPI
platforms that provide potentially multiple PCI resources in tables
provided by firmware.

- Re-implement PCI configuration resource management using vmem arenas,
rather than extent maps.
 1.16  14-Jun-2020  chs replace EX_NOWAIT with EX_WAITOK in device attach methods.
remove checks for failures that can no longer occur.
 1.15  02-Oct-2015  msaitoh PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
Currently the following extended capabilities are decoded:
- Advanced Error Reporting
- Virtual Channel
- Device Serial Number
- Power Budgeting
- Root Complex Link Declaration
- Root Complex Event Collector Association
- Access Control Services
- Alternative Routing-ID Interpretation
- Address Translation Services
- Single Root IO Virtualization
- Page Request
- TPH Requester
- Latency Tolerance Reporting
- Secondary PCI Express
- Process Address Space ID
- LN Requester
- L1 PM Substates
The following extended capabilities are not decoded yet:
- Root Complex Internal Link Control
- Multi-Function Virtual Channel
- RCRB Header
- Vendor Unique
- Configuration Access Correction
- Multiple Root IO Virtualization
- Multicast
- Resizable BAR
- Dynamic Power Allocation
- Protocol Multiplexing
- Downstream Port Containment
- Precision Time Management
- M-PCIe
- Function Reading Status Queueing
- Readiness Time Reporting
- Designated Vendor-Specific
 1.14  18-Aug-2013  matt branches: 1.14.6;
<arm/locore.h> fallout (fixes some include ordering errors)
 1.13  27-Oct-2012  chs branches: 1.13.2;
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.12  07-Sep-2012  matt branches: 1.12.2;
Fix more pci_conf_interrupt/pci_conf_hook problems
 1.11  27-Jan-2012  para converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged
 1.10  14-Mar-2009  dsl branches: 1.10.12; 1.10.16;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.9  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.8  28-Apr-2008  martin branches: 1.8.8; 1.8.14;
Remove clause 3 and 4 from TNF licenses
 1.7  11-Dec-2005  christos branches: 1.7.76; 1.7.78; 1.7.80;
merge ktrace-lwp.
 1.6  15-Sep-2003  ichiro add address decode of "PCI Configuration type 1"
 1.5  25-Mar-2003  igy branches: 1.5.2;
Add __KERNEL_RCSID tags
 1.4  17-Feb-2003  ichiro files.ixp12x0
no need device ixpcom in evbarm/conf/files.evbarm move it to
arm/ixp12x0/files.ixp12x0

ixp12x0_com.c:
some fix around address handling
1. Do not call bus_space_map() in ixpcominit(). Calling bus_space_map()
is not safe here, because bus_space_map() calls uvm_km_valloc() but
uvm is not yet initialized.
2. Use dv_unit to determine console instead comparering iobase.
Now you can attach ixpcom0 with physical address like this:
ixpcom* at ixpsip? addr 0x90000000 size 0x4000
Statically mapped address (0xf0000000) is still usable.

ixp12x0_clk:
1. access PLL_CFG register via bus_space
2. Make the delay() working correctly. (bug fix)
3. Start the timer device without interrupt on attach time.
Now delay() called before cpu_initclocks() works fine.

ixp12x0_pci:
1.Mapping PCI type0/1 configuration space to the upper address.
2."PCI I/O Cycle Access" mapping to same virtual address(VA==PA)
but size of this mapping increase to 1MByte because fails
cause couldnt set L2 table.
3.use bus_space address handling in ixp12x0_pci.c.
 1.3  08-Dec-2002  ichiro change flags of pmap_enter() in ixp12x0_io.c, ixpsip_io.c
bug fix: ixp12x0_pci.c
 1.2  09-Oct-2002  thorpej Need <dev/pci/pciconf.h>.
 1.1  15-Jul-2002  ichiro branches: 1.1.2; 1.1.4; 1.1.6;
add support for ixp12x0
 1.1.6.2  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.1.6.1  15-Jul-2002  jdolecek file ixp12x0_pci.c was added on branch kqueue on 2002-09-06 08:32:54 +0000
 1.1.4.3  11-Dec-2002  thorpej Sync with HEAD.
 1.1.4.2  18-Oct-2002  nathanw Catch up to -current.
 1.1.4.1  15-Jul-2002  nathanw file ixp12x0_pci.c was added on branch nathanw_sa on 2002-10-18 02:35:37 +0000
 1.1.2.2  21-Jul-2002  gehenna catch up with -current.
 1.1.2.1  15-Jul-2002  gehenna file ixp12x0_pci.c was added on branch gehenna-devsw on 2002-07-21 13:00:30 +0000
 1.5.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.5.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.5.2.1  03-Aug-2004  skrll Sync with HEAD
 1.7.80.2  04-May-2009  yamt sync with head.
 1.7.80.1  16-May-2008  yamt sync with head.
 1.7.78.1  18-May-2008  yamt sync with head.
 1.7.76.1  02-Jun-2008  mjf Sync with HEAD.
 1.8.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.8.8.1  28-Apr-2009  skrll Sync with HEAD.
 1.10.16.1  18-Feb-2012  mrg merge to -current.
 1.10.12.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.12.2  30-Oct-2012  yamt sync with head
 1.10.12.1  17-Apr-2012  yamt sync with head
 1.12.2.3  03-Dec-2017  jdolecek update from HEAD
 1.12.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.12.2.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.13.2.1  28-Aug-2013  rmind sync with head
 1.14.6.1  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)

RSS XML Feed