The NetBSD Project

CVS log for src/sys/dev/pci/pci_map.c

[BACK] Up to [cvs.netbsd.org] / src / sys / dev / pci

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24.12.1 / (download) - annotate - [select for diffs], Tue Jan 3 18:26:25 2012 UTC (4 months, 3 weeks ago) by matt
Branch: matt-nb5-mips64
Changes since 1.24: +9 -6 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Only probe the upper BAR of a mem64 if the bit31 of the lower BAR isn't
writable.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:17 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.25: +12 -8 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync with HEAD.

Revision 1.24.16.3 / (download) - annotate - [select for diffs], Tue May 31 03:04:42 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.24.16.2: +2 -2 lines
Diff to previous 1.24.16.2 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 17 17:34:54 2011 UTC (12 months, 1 week ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, HEAD
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name.  Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

Revision 1.24.16.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:52 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.24.16.1: +10 -6 lines
Diff to previous 1.24.16.1 (colored) to branchpoint 1.24 (colored)

sync with head

Revision 1.28 / (download) - annotate - [select for diffs], Mon Apr 4 20:37:56 2011 UTC (13 months, 3 weeks ago) by dyoung
Branch: MAIN
Changes since 1.27: +10 -6 lines
Diff to previous 1.27 (colored)

Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 27 18:01:28 2011 UTC (14 months, 3 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.26: +1 -0 lines
Diff to previous 1.26 (colored)

revert previous; instead of commenting out the error message how about fixing
the code that causes it to be printed in the first place

Revision 1.26 / (download) - annotate - [select for diffs], Sun Feb 27 17:31:08 2011 UTC (14 months, 3 weeks ago) by jruoho
Branch: MAIN
Changes since 1.25: +2 -3 lines
Diff to previous 1.25 (colored)

Remove the following aprint_debug(9): "pci_mem_find: void region". I have
a system where this is printed about a hundred times. No functional change.

Revision 1.24.14.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:27 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.24: +38 -38 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.22.18.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:51 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.18.2: +38 -38 lines
Diff to previous 1.22.18.2 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

sync with head.

Revision 1.24.16.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:36 2010 UTC (23 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.24: +38 -38 lines
Diff to previous 1.24 (colored)

sync with head

Revision 1.25 / (download) - annotate - [select for diffs], Tue May 11 16:49:35 2010 UTC (2 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.24: +38 -38 lines
Diff to previous 1.24 (colored)

Cosmetic: remove superfluous parentheses from return statements.  Don't
test truth of pointers, or compare with 0, but compare with NULL,
instead.

The compiler generated the same assembly language before & after this
change.

Revision 1.22.18.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:59 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22.18.1: +23 -4 lines
Diff to previous 1.22.18.1 (colored) to branchpoint 1.22 (colored)

sync with head.

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:39 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.23: +23 -4 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with HEAD.

Revision 1.22.14.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:27 2008 UTC (3 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.22.14.1: +21 -2 lines
Diff to previous 1.22.14.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Sync with HEAD.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:35:07 2008 UTC (3 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.23: +23 -4 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.23.4.1 / (download) - annotate - [select for diffs], Mon Jul 28 14:37:27 2008 UTC (3 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.23: +23 -4 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Sync with head.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jul 22 04:52:19 2008 UTC (3 years, 10 months ago) by bjs
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, uebayasi-xip-base1, uebayasi-xip-base, simonb-wapbl-nbase, simonb-wapbl-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: uebayasi-xip, rmind-uvmplock, matt-nb5-mips64
Changes since 1.23: +23 -4 lines
Diff to previous 1.23 (colored)

Add pci_mapreg_submap():  This function is pci_mapreg_map() with two
additional arguments, offset and maxsize.  This new functionality
eases handling certain tasks within the direct rendering manager, though
I hope others will also find it useful.

pci_mapreg_map() is now merely a wrapper around pci_mapreg_submap();
the latter contains all of the code from the former.

ok christos@

Revision 1.18.14.1 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:24 2008 UTC (3 years, 11 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.18: +6 -3 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with netbsd-4.

Revision 1.22.14.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:42 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.22: +2 -9 lines
Diff to previous 1.22 (colored)

Sync with HEAD.

Revision 1.22.16.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:21 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.22: +2 -9 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

sync with head.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Sat May 17 16:16:09 2008 UTC (4 years ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.18: +6 -3 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Pull up following revision(s) (requested by sborrill in ticket #1142):
	sys/dev/pci/pci_map.c: revision 1.21
allow pci_find_mem to map a 64-bit BAR.

Revision 1.22.18.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:44 2008 UTC (4 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.22: +2 -9 lines
Diff to previous 1.22 (colored)

sync with head.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:55 2008 UTC (4 years ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl, haad-dm
Changes since 1.22: +2 -9 lines
Diff to previous 1.22 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.20.10.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:53:55 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.20: +7 -4 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

sync with HEAD

Revision 1.20.16.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:45 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.20: +7 -4 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.13.4.3 / (download) - annotate - [select for diffs], Fri Dec 7 17:30:28 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.13.4.2: +7 -4 lines
Diff to previous 1.13.4.2 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

sync with head

Revision 1.20.8.3 / (download) - annotate - [select for diffs], Sat Dec 1 06:06:06 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.20.8.2: +3 -3 lines
Diff to previous 1.20.8.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Dec 1 06:05:18 2007 UTC (4 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp, mjf-devfs2
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

aprintify

Revision 1.20.14.1 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:36 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.20: +6 -3 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with HEAD

Revision 1.21 / (download) - annotate - [select for diffs], Tue Nov 20 22:48:49 2007 UTC (4 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.20: +6 -3 lines
Diff to previous 1.20 (colored)

Merge from jmcneill-pm: XXX allow pci_find_mem to map a 64-bit BAR.

Revision 1.20.8.2 / (download) - annotate - [select for diffs], Tue Nov 20 22:46:45 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.20.8.1: +3 -3 lines
Diff to previous 1.20.8.1 (colored) to branchpoint 1.20 (colored)

Change the XXX to actually explain what it is doing.

Revision 1.13.4.2 / (download) - annotate - [select for diffs], Mon Sep 3 14:37:16 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.13.4.1: +4 -4 lines
Diff to previous 1.13.4.1 (colored) to branchpoint 1.13 (colored)

sync with head.

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Mon Aug 27 03:15:05 2007 UTC (4 years, 9 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.20: +6 -3 lines
Diff to previous 1.20 (colored)

XXX allow pci_find_mem to map a 64-bit BAR, needs revisiting.

Revision 1.18.10.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:07:55 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with head.

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:26 2007 UTC (5 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

sync with head.

Revision 1.18.8.1 / (download) - annotate - [select for diffs], Tue Apr 10 13:24:26 2007 UTC (5 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with head.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Apr 10 00:11:21 2007 UTC (5 years, 1 month ago) by macallan
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, thorpej-atomic-base, thorpej-atomic, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup
Branch point for: mjf-devfs, matt-armv6, jmcneill-pm, bouyer-xenamd64
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

turn the other 'void region' message into aprint_debug() as well

Revision 1.19 / (download) - annotate - [select for diffs], Tue Apr 10 00:05:16 2007 UTC (5 years, 1 month ago) by macallan
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

demote 'pci_io_find: void region' to aprint_debug()

Revision 1.16.16.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:45 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.16.16.1: +3 -3 lines
Diff to previous 1.16.16.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

sync with head.

Revision 1.16.14.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:31 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with head.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:09 2006 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, vmlocking, netbsd-4, mjf-ufs-trans
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

__unused removal on arguments; approved by core.

Revision 1.16.16.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:18 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

sync with head

Revision 1.17 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:32 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:18 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.14: +121 -15 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:05:06 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.13: +121 -15 lines
Diff to previous 1.13 (colored)

sync with head.

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:15 2006 UTC (6 years, 1 month ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.14: +121 -15 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Mar 1 18:53:39 2006 UTC (6 years, 2 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.15: +87 -2 lines
Diff to previous 1.15 (colored)

Add pci_find_rom() API as discussed on tech-kern.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:21 2006 UTC (6 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.14: +36 -15 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 27 16:11:58 2006 UTC (6 years, 2 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Changes since 1.14: +36 -15 lines
Diff to previous 1.14 (colored)

Add PCI_MAPREG_TYPE_ROM and allow it to be used with pci_mapreg_map().
Fix to configure (but do not enable) BARs for expansion ROMs.
Reviewed by briggs@

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:50 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

merge ktrace-lwp.

Revision 1.12.14.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:07 2005 UTC (7 years ago) by kent
Branch: kent-audio2
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

sync with -current

Revision 1.12.16.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:12 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.12.6.1 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:22 2005 UTC (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) next main 1.13 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.13 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:33 2005 UTC (7 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

nuke trailing whitespace

Revision 1.10.10.1 / (download) - annotate - [select for diffs], Fri Oct 10 18:00:59 2003 UTC (8 years, 7 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Pull up revision 1.11 (requested by kleink in ticket #1513):
When testing for a void region, use PCI_MAPREG_MEM_SIZE() for 32bit memaddr.
If the 32bit mask read is 0, wmask will be 0xffffffff00000000, and
PCI_MAPREG_MEM64_SIZE() won't make this 0.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:47:52 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.9.4.1: +31 -10 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

catch up with -current on kqueue branch

Revision 1.10.8.2 / (download) - annotate - [select for diffs], Thu Jun 20 16:33:41 2002 UTC (9 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.10.8.1: +29 -9 lines
Diff to previous 1.10.8.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

catch up with -current.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:39 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.9.2.1: +31 -10 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Catch up to -current.

Revision 1.10.8.1 / (download) - annotate - [select for diffs], Thu May 30 14:46:13 2002 UTC (9 years, 11 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

Catch up with -current.

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 30 12:06:43 2002 UTC (9 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, nathanw_sa_before_merge, nathanw_sa_base, matt-timespec, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kent-audio1-beforemerge, kent-audio1-base, kent-audio1, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Branch point for: yamt-km, ktrace-lwp, kent-audio2
Changes since 1.11: +29 -9 lines
Diff to previous 1.11 (colored)

implement a check whether a BAR is present at all at a given configuration
space address and use it where the mappings of the VGA card are registered
before descenting too deep into "memory" type specific code
(pci_mem_find() gets noisy if it doesn't like the register)

Revision 1.11 / (download) - annotate - [select for diffs], Wed May 29 14:57:36 2002 UTC (9 years, 11 months ago) by bouyer
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

When testing for a void region, use PCI_MAPREG_MEM_SIZE() for 32bit memaddr.
If the 32bit mask read is 0, wmask will be 0xffffffff00000000, and
PCI_MAPREG_MEM64_SIZE() won't make this 0.

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:54 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

Sync kqueue branch with -current.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:23 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

Catch up to -current.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 13 07:48:47 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.9: +4 -1 lines
Diff to previous 1.9 (colored)

add RCSID

Revision 1.5.12.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:12:33 2000 UTC (11 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5.12.1: +11 -42 lines
Diff to previous 1.5.12.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 29 18:22:17 2000 UTC (11 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: nathanw_sa, kqueue
Changes since 1.8: +11 -42 lines
Diff to previous 1.8 (colored)

ANSI'ify.

Revision 1.5.12.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:30 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.5: +83 -17 lines
Diff to previous 1.5 (colored)

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.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Wed Jun 28 17:43:42 2000 UTC (11 years, 10 months ago) by thorpej
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.7: +19 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Pull up rev. 1.8:
Don't check for a BAR address past PCI_MAPREG_END; some devices
have BARs way out in left field.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 28 17:32:48 2000 UTC (11 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +19 -3 lines
Diff to previous 1.7 (colored)

Don't check for a BAR address past PCI_MAPREG_END; some devices
have BARs way out in left field.

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 10 16:58:42 2000 UTC (12 years ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.6: +63 -13 lines
Diff to previous 1.6 (colored)

Add support for mapping 64-bit PCI memory space.  If the region
is mapped in a way that is inaccessible by a 32-bit bus_addr_t, then
print a message to that effect and return failure.

Original patches by Bill Studenmund, with a few small changes by me.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jan 25 22:30:04 2000 UTC (12 years, 4 months ago) by drochner
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

use BUS_SPACE_MAP_PREFETCHABLE instead BUS_SPACE_MAP_CACHEABLE where the
PCI BAR bit is referred to

Revision 1.5 / (download) - annotate - [select for diffs], Sat Aug 15 10:10:54 1998 UTC (13 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: thorpej_scsipi
Changes since 1.4: +23 -16 lines
Diff to previous 1.4 (colored)

Assign my copyrights to TNF.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Oct 6 21:01:24 1997 UTC (14 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base, eeh-paddr_t-base, eeh-paddr_t
Changes since 1.3: +8 -7 lines
Diff to previous 1.3 (colored)

Back out last change.  (Partially my fault, for not reviewing it close
enough.)

Revision 1.3 / (download) - annotate - [select for diffs], Fri Oct 3 18:45:39 1997 UTC (14 years, 7 months ago) by lonhyn
Branch: MAIN
Changes since 1.2: +8 -9 lines
Diff to previous 1.2 (colored)

pci_mapreg_info() has been changed to take arguments like pci_mapreg_map()

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Mon Sep 29 07:21:06 1997 UTC (14 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.1.2.2: +11 -1 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Sep 23 23:08:47 1997 UTC (14 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +11 -1 lines
Diff to previous 1.1 (colored)

If the region size turns out to be 0, return an error.  This is what will
happen if we try to use a mapping register that's not actually defined.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Sep 1 20:29:44 1997 UTC (14 years, 8 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.1.2.1: +227 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.1.2.1, Sat Aug 30 06:46:58 1997 UTC (14 years, 8 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.1: +0 -227 lines
FILE REMOVED

file pci_map.c was added on branch marc-pcmcia on 1997-09-01 20:29:44 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sat Aug 30 06:46:58 1997 UTC (14 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Branch point for: marc-pcmcia

* Rewrite pci_io_find() and pci_mem_find() using my original pci_map_io() and
pci_map_mem(), with appropriate changes for bus_space.
* Add extra arguments for use by pci_mapreg_*(), and make the functions
static.
* Rewrite pci_mapreg_info() and pci_mapreg_map() as wrappers around
pci_*_find(), using the documented interface.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>