Subject: CVS commit: src/sys
To: None <source-changes@netbsd.org>
From: Frank van der Linden <fvdl@netbsd.org>
List: source-changes
Date: 06/15/2003 23:09:10
Module Name:	src
Committed By:	fvdl
Date:		Sun Jun 15 23:09:09 UTC 2003

Modified Files:
	src/sys/arch/algor/algor: machdep.c
	src/sys/arch/algor/dev: bonito_mainbus.c vtpbc_mainbus.c
	src/sys/arch/algor/include: bus.h
	src/sys/arch/alpha/include: bus.h
	src/sys/arch/alpha/pci: a12c.c apecs.c cia.c dwlpx.c irongate.c lca.c
	    mcpcia.c tsc.c ttwoga.c
	src/sys/arch/amd64/amd64: mainbus.c
	src/sys/arch/amd64/include: pci_machdep.h
	src/sys/arch/arc/include: bus.h
	src/sys/arch/arc/pci: necpb.c
	src/sys/arch/arm/footbridge: footbridge.c
	src/sys/arch/arm/include: bus.h
	src/sys/arch/arm/ixp12x0: ixp12x0.c
	src/sys/arch/arm/s3c2xx0: s3c2800_pci.c
	src/sys/arch/arm/xscale: becc.c i80312.c i80321.c
	src/sys/arch/atari/include: bus.h
	src/sys/arch/bebox/bebox: mainbus.c
	src/sys/arch/cobalt/dev: gt.c
	src/sys/arch/cobalt/include: bus.h
	src/sys/arch/dreamcast/dev/g2: gapspci.c
	src/sys/arch/dreamcast/include: bus.h
	src/sys/arch/evbarm/ifpga: ifpga.c
	src/sys/arch/evbmips/malta/dev: gt.c
	src/sys/arch/evbppc/walnut/pci: pchb.c
	src/sys/arch/hp700/include: bus.h
	src/sys/arch/hpcmips/include: bus.h
	src/sys/arch/hpcmips/vr: vrc4172pci.c vrpciu.c
	src/sys/arch/hpcsh/include: bus.h
	src/sys/arch/i386/i386: mainbus.c
	src/sys/arch/i386/pci: pchb.c
	src/sys/arch/macppc/include: bus.h
	src/sys/arch/macppc/pci: bandit.c grackle.c uninorth.c
	src/sys/arch/mipsco/include: bus.h
	src/sys/arch/mvmeppc/mvmeppc: mainbus.c
	src/sys/arch/newsmips/include: bus.h
	src/sys/arch/ofppc/firepower: firepower.c
	src/sys/arch/ofppc/include: bus.h
	src/sys/arch/playstation2/include: bus.h
	src/sys/arch/pmax/include: bus.h
	src/sys/arch/powerpc/include: bus.h
	src/sys/arch/powerpc/include/ibm4xx: bus.h
	src/sys/arch/prep/prep: mainbus.c
	src/sys/arch/sandpoint/sandpoint: mainbus.c
	src/sys/arch/sgimips/include: bus.h
	src/sys/arch/sgimips/pci: macepci.c
	src/sys/arch/sh5/include: bus.h
	src/sys/arch/sparc/include: bus.h
	src/sys/arch/sparc/sparc: msiiep.c
	src/sys/arch/sparc64/dev: psycho.c
	src/sys/arch/sparc64/include: bus.h
	src/sys/arch/sun68k/include: bus.h
	src/sys/arch/vax/include: bus.h
	src/sys/arch/x68k/include: bus.h
	src/sys/arch/x86/include: bus.h pci_machdep.h
	src/sys/arch/x86/pci: pci_machdep.c
	src/sys/dev/pci: if_bge.c pci.c pcivar.h ppb.c

Log Message:
Handle 64bit DMA addresses on PCI for platforms that can (currently only
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.


To generate a diff of this commit:
cvs rdiff -r1.20 -r1.21 src/sys/arch/algor/algor/machdep.c
cvs rdiff -r1.6 -r1.7 src/sys/arch/algor/dev/bonito_mainbus.c
cvs rdiff -r1.10 -r1.11 src/sys/arch/algor/dev/vtpbc_mainbus.c
cvs rdiff -r1.7 -r1.8 src/sys/arch/algor/include/bus.h
cvs rdiff -r1.48 -r1.49 src/sys/arch/alpha/include/bus.h
cvs rdiff -r1.13 -r1.14 src/sys/arch/alpha/pci/a12c.c
cvs rdiff -r1.42 -r1.43 src/sys/arch/alpha/pci/apecs.c
cvs rdiff -r1.61 -r1.62 src/sys/arch/alpha/pci/cia.c
cvs rdiff -r1.27 -r1.28 src/sys/arch/alpha/pci/dwlpx.c
cvs rdiff -r1.10 -r1.11 src/sys/arch/alpha/pci/irongate.c \
    src/sys/arch/alpha/pci/tsc.c
cvs rdiff -r1.40 -r1.41 src/sys/arch/alpha/pci/lca.c
cvs rdiff -r1.16 -r1.17 src/sys/arch/alpha/pci/mcpcia.c
cvs rdiff -r1.6 -r1.7 src/sys/arch/alpha/pci/ttwoga.c
cvs rdiff -r1.5 -r1.6 src/sys/arch/amd64/amd64/mainbus.c
cvs rdiff -r1.1 -r1.2 src/sys/arch/amd64/include/pci_machdep.h
cvs rdiff -r1.15 -r1.16 src/sys/arch/arc/include/bus.h
cvs rdiff -r1.14 -r1.15 src/sys/arch/arc/pci/necpb.c
cvs rdiff -r1.13 -r1.14 src/sys/arch/arm/footbridge/footbridge.c
cvs rdiff -r1.9 -r1.10 src/sys/arch/arm/include/bus.h
cvs rdiff -r1.7 -r1.8 src/sys/arch/arm/ixp12x0/ixp12x0.c
cvs rdiff -r1.4 -r1.5 src/sys/arch/arm/s3c2xx0/s3c2800_pci.c
cvs rdiff -r1.5 -r1.6 src/sys/arch/arm/xscale/becc.c
cvs rdiff -r1.13 -r1.14 src/sys/arch/arm/xscale/i80312.c
cvs rdiff -r1.12 -r1.13 src/sys/arch/arm/xscale/i80321.c
cvs rdiff -r1.29 -r1.30 src/sys/arch/atari/include/bus.h
cvs rdiff -r1.15 -r1.16 src/sys/arch/bebox/bebox/mainbus.c
cvs rdiff -r1.7 -r1.8 src/sys/arch/cobalt/dev/gt.c
cvs rdiff -r1.9 -r1.10 src/sys/arch/cobalt/include/bus.h
cvs rdiff -r1.9 -r1.10 src/sys/arch/dreamcast/dev/g2/gapspci.c
cvs rdiff -r1.7 -r1.8 src/sys/arch/dreamcast/include/bus.h
cvs rdiff -r1.14 -r1.15 src/sys/arch/evbarm/ifpga/ifpga.c
cvs rdiff -r1.5 -r1.6 src/sys/arch/evbmips/malta/dev/gt.c
cvs rdiff -r1.1 -r1.2 src/sys/arch/evbppc/walnut/pci/pchb.c
cvs rdiff -r1.4 -r1.5 src/sys/arch/hp700/include/bus.h
cvs rdiff -r1.16 -r1.17 src/sys/arch/hpcmips/include/bus.h
cvs rdiff -r1.8 -r1.9 src/sys/arch/hpcmips/vr/vrc4172pci.c
cvs rdiff -r1.12 -r1.13 src/sys/arch/hpcmips/vr/vrpciu.c
cvs rdiff -r1.8 -r1.9 src/sys/arch/hpcsh/include/bus.h
cvs rdiff -r1.51 -r1.52 src/sys/arch/i386/i386/mainbus.c
cvs rdiff -r1.42 -r1.43 src/sys/arch/i386/pci/pchb.c
cvs rdiff -r1.15 -r1.16 src/sys/arch/macppc/include/bus.h
cvs rdiff -r1.21 -r1.22 src/sys/arch/macppc/pci/bandit.c
cvs rdiff -r1.6 -r1.7 src/sys/arch/macppc/pci/grackle.c
cvs rdiff -r1.7 -r1.8 src/sys/arch/macppc/pci/uninorth.c
cvs rdiff -r1.10 -r1.11 src/sys/arch/mipsco/include/bus.h
cvs rdiff -r1.5 -r1.6 src/sys/arch/mvmeppc/mvmeppc/mainbus.c
cvs rdiff -r1.7 -r1.8 src/sys/arch/newsmips/include/bus.h
cvs rdiff -r1.8 -r1.9 src/sys/arch/ofppc/firepower/firepower.c
cvs rdiff -r1.3 -r1.4 src/sys/arch/ofppc/include/bus.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/playstation2/include/bus.h
cvs rdiff -r1.18 -r1.19 src/sys/arch/pmax/include/bus.h
cvs rdiff -r1.10 -r1.11 src/sys/arch/powerpc/include/bus.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/powerpc/include/ibm4xx/bus.h
cvs rdiff -r1.15 -r1.16 src/sys/arch/prep/prep/mainbus.c
cvs rdiff -r1.13 -r1.14 src/sys/arch/sandpoint/sandpoint/mainbus.c
cvs rdiff -r1.7 -r1.8 src/sys/arch/sgimips/include/bus.h
cvs rdiff -r1.10 -r1.11 src/sys/arch/sgimips/pci/macepci.c
cvs rdiff -r1.5 -r1.6 src/sys/arch/sh5/include/bus.h
cvs rdiff -r1.38 -r1.39 src/sys/arch/sparc/include/bus.h
cvs rdiff -r1.18 -r1.19 src/sys/arch/sparc/sparc/msiiep.c
cvs rdiff -r1.62 -r1.63 src/sys/arch/sparc64/dev/psycho.c
cvs rdiff -r1.44 -r1.45 src/sys/arch/sparc64/include/bus.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/sun68k/include/bus.h
cvs rdiff -r1.21 -r1.22 src/sys/arch/vax/include/bus.h
cvs rdiff -r1.10 -r1.11 src/sys/arch/x68k/include/bus.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/x86/include/bus.h
cvs rdiff -r1.1 -r1.2 src/sys/arch/x86/include/pci_machdep.h
cvs rdiff -r1.4 -r1.5 src/sys/arch/x86/pci/pci_machdep.c
cvs rdiff -r1.40 -r1.41 src/sys/dev/pci/if_bge.c
cvs rdiff -r1.79 -r1.80 src/sys/dev/pci/pci.c
cvs rdiff -r1.55 -r1.56 src/sys/dev/pci/pcivar.h
cvs rdiff -r1.25 -r1.26 src/sys/dev/pci/ppb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.