The NetBSD Project

CVS log for src/sys/dev/pci/pcireg.h

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.57.26.1 / (download) - annotate - [select for diffs], Sat Dec 24 01:27:25 2011 UTC (5 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.57: +165 -7 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Pull down latest from -HEAD.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Aug 17 00:59:47 2011 UTC (9 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, 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, HEAD
Changes since 1.72: +75 -56 lines
Diff to previous 1.72 (colored)

Redefine PCI_MSI_* and PCI_PCIE_* constants in terms of bits(3).

Use named constants and more conventional variable names in
pci_msi_establish() and pci_msi_disestablish().  Fix a couple of bugs:
pci_msi_establish() returned a pointer to the struct intrhand instead of
to the struct msi_hdl as it was intended to, and pci_msi_disestablish()
did not free(9) the msi_hdl.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:08 2011 UTC (11 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.71: +3 -1 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.66.2.4 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:25 2011 UTC (11 months, 2 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66.2.3: +2 -0 lines
Diff to previous 1.66.2.3 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

sync with head

Revision 1.72 / (download) - annotate - [select for diffs], Mon Jun 6 18:27:12 2011 UTC (11 months, 2 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.71: +3 -1 lines
Diff to previous 1.71 (colored)

Add two new capabilities(PCI_CAP_SATA and PCI_CAP_PCIAF).

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

Sync with HEAD.

Revision 1.66.2.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:00 2011 UTC (13 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66.2.2: +1 -1 lines
Diff to previous 1.66.2.2 (colored) to branchpoint 1.66 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Tue Apr 5 23:37:46 2011 UTC (13 months, 2 weeks ago) by dyoung
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

Use PCI_MAPREG_START instead of the anonymous constant 0x10.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:56 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.66.2.1: +71 -4 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored)

sync with head

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:19:53 2011 UTC (15 months, 2 weeks ago) by bouyer
Branch: bouyer-quota2
Changes since 1.69: +10 -1 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Sync with HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Wed Jan 26 00:49:56 2011 UTC (15 months, 4 weeks ago) by dyoung
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.69: +10 -1 lines
Diff to previous 1.69 (colored)

Define masks for subsystem vendor and subsystem ID fields, plus a couple
of macros for extracting them.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Jan 10 12:23:21 2011 UTC (16 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.68: +12 -1 lines
Diff to previous 1.68 (colored)

ppb_fix_pcix changes:
- rename to ppb_fix_pcie
- support version PCI-E 2.0
- print version and device/port type information
- use constants from pcireg.h instead of magic numbers

changes:

  ppb2 at pci0 dev 21 function 0: vendor 0x15ad product 0x07a0 (rev. 0x01)
  ppb2: unsupported PCI Express version

to:

  ppb2 at pci0 dev 21 function 0: vendor 0x15ad product 0x07a0 (rev. 0x01)
  ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex>

Revision 1.57.20.1.2.1 / (download) - annotate - [select for diffs], Fri Jan 7 02:26:15 2011 UTC (16 months, 2 weeks ago) by matt
Branch: matt-nb5-pq3
Changes since 1.57.20.1: +60 -4 lines
Diff to previous 1.57.20.1 (colored) next main 1.57.26.1 (colored)

Add/define some MSI support

Revision 1.68 / (download) - annotate - [select for diffs], Sat Dec 11 18:17:39 2010 UTC (17 months, 2 weeks ago) by matt
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.67: +51 -4 lines
Diff to previous 1.67 (colored)

Add some PCI Express definitions, MSI, MSIX, etc.

Revision 1.57.20.1 / (download) - annotate - [select for diffs], Fri Nov 19 23:40:28 2010 UTC (18 months ago) by riz
Branch: netbsd-5
CVS Tags: matt-nb5-pq3-base
Branch point for: matt-nb5-pq3
Changes since 1.57: +49 -1 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Pull up revisions (requested by msaitoh in ticket #1358):
	sys/dev/pci/if_wm.c		1.196-1.199,1.202,1.205
	sys/dev/pci/if_wmvar.h		1.9
	sys/dev/pci/if_wmreg.h		1.36-1.39
	sys/dev/pci/pcireg.h		1.61-1.64
	sys/dev/pci/pcidevs		1.1023
	sys/dev/pci/pcidevs.h		regen
	sys/dev/pci/pcidevs_data.h	regen
	mii/igphy.c			1.21
	mii/igphyvar.h			1.1
	mii/inbmphyreg.h		1.2

- Count Receive error, CRC error, Alignment error, Symbol error, Sequence
  error, Carrier extension error and Receive length error into ierror.
  Fixes PR#30349 reported by UMEZAWA Takeshi.
- Add support for 82575, 82576 and 82580(ER).
  - Apply the patch for 82575 from Wolfgang Stukenbrock (PR#42422). We use
    only one RX ring and with the legacy mode.
  - Add support for 82576.
  - Partial support for 82580.
  - Partial support for the serdes systems.
- Add two workarounds for ICH8 with igp3.
  - Workaround for 82566 Kumeran PCS lock loss.
  - WOL from S5 stops working.
- (pcireg.h) Add PCIe config register definitions.
- Note that the changes to count Missed packet (rx fifo overflow) and Receive
  no buffers (rx ring full) into iqdrops in rev. 1.196 of if_wm.c is not
  pulled up.

Revision 1.57.10.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:04 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57.10.4: +3 -1 lines
Diff to previous 1.57.10.4 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

sync with head.

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

sync with head

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:43 2010 UTC (2 years ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.63: +18 -8 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Sync with HEAD.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Mar 20 00:23:41 2010 UTC (2 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Changes since 1.66: +3 -1 lines
Diff to previous 1.66 (colored)

Add PCI_BAR(n) for the nth Base Address Register.

Revision 1.57.10.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:58 2010 UTC (2 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57.10.3: +21 -8 lines
Diff to previous 1.57.10.3 (colored) to branchpoint 1.57 (colored)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Fri Feb 26 00:38:14 2010 UTC (2 years, 2 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.65: +8 -1 lines
Diff to previous 1.65 (colored)

Move the definitions for PCI_BAR0, PCI_BAR1, PCI_BAR2, PCI_BAR3,
PCI_BAR4, and PCI_BAR5 to pcireg.h for re-use.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Feb 23 19:28:00 2010 UTC (2 years, 3 months ago) by dyoung
Branch: MAIN
Changes since 1.64: +1 -7 lines
Diff to previous 1.64 (colored)

Remove unused functions pci_disable_retry() and cardbus_disable_retry().

Revision 1.64 / (download) - annotate - [select for diffs], Fri Feb 12 04:01:07 2010 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.63: +9 -2 lines
Diff to previous 1.63 (colored)

- Add some PCIe config registers.
- The register at 0x1c is not Control Status register. It contains Control
  bits only. Rename it.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Feb 1 05:38:36 2010 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.62: +5 -2 lines
Diff to previous 1.62 (colored)

Fix the bug that unaligned access occurs on amd64. It also fixes the bug
that error bits aren't cleard because these bits are W2C (in other word, W1C).

Reported by Michael van Elst.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Jan 28 02:55:31 2010 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.61: +3 -1 lines
Diff to previous 1.61 (colored)

Add some register definitions.

Revision 1.57.10.3 / (download) - annotate - [select for diffs], Wed Sep 16 13:37:52 2009 UTC (2 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57.10.2: +37 -1 lines
Diff to previous 1.57.10.2 (colored) to branchpoint 1.57 (colored)

sync with head

Revision 1.61 / (download) - annotate - [select for diffs], Fri Sep 11 01:28:20 2009 UTC (2 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.60: +37 -1 lines
Diff to previous 1.60 (colored)

Add support for the 5100 and newer firmware. Tested also with the 4900.
Thanks to everyone for helping and testing.

Revision 1.57.10.2 / (download) - annotate - [select for diffs], Wed Aug 19 18:47:17 2009 UTC (2 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57.10.1: +19 -1 lines
Diff to previous 1.57.10.1 (colored) to branchpoint 1.57 (colored)

sync with head.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Aug 17 14:11:09 2009 UTC (2 years, 9 months ago) by jakllsch
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7
Changes since 1.59: +19 -1 lines
Diff to previous 1.59 (colored)

A few new PCI register #defines:
 - size of config and extended config space
 - EFI ROM code type number
 - extended capability list register bits

Revision 1.57.10.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:01 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

sync with head.

Revision 1.57.18.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:28 2009 UTC (3 years, 4 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Sync with HEAD.

Revision 1.57.6.1 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:01 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Sync with HEAD.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Jan 16 23:23:34 2009 UTC (3 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

rename PCI_PMCSR_PME to PCI_PMCSR_PME_STS.
Per request from jmcneill

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jan 16 23:09:27 2009 UTC (3 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.57: +2 -1 lines
Diff to previous 1.57 (colored)

add Power Management flag. From FreeBSD.

Revision 1.54.14.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:58 2008 UTC (4 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.54.14.2: +6 -6 lines
Diff to previous 1.54.14.2 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Sync with HEAD.

Revision 1.46.12.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:13 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.6: +6 -6 lines
Diff to previous 1.46.12.6 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

sync with head

Revision 1.54.8.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:00 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.54: +14 -8 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

sync with HEAD

Revision 1.56.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:54:58 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.56: +6 -6 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

Sync with HEAD

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:06 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.56: +6 -6 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

Sync with head.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:42 2007 UTC (4 years, 5 months ago) by perry
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, 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, mjf-devfs-base, 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, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, netbsd-5, mjf-devfs2, matt-nb5-mips64
Changes since 1.56: +6 -6 lines
Diff to previous 1.56 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.54.14.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:47 2007 UTC (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.54.14.1: +3 -3 lines
Diff to previous 1.54.14.1 (colored) to branchpoint 1.54 (colored)

Sync with HEAD.

Revision 1.46.12.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:30:30 2007 UTC (4 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.5: +3 -3 lines
Diff to previous 1.46.12.5 (colored) to branchpoint 1.46 (colored)

sync with head

Revision 1.54.6.3 / (download) - annotate - [select for diffs], Mon Dec 3 16:14:37 2007 UTC (4 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.54.6.2: +3 -3 lines
Diff to previous 1.54.6.2 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Sync with HEAD.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Nov 28 04:03:16 2007 UTC (4 years, 5 months ago) by briggs
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

Correct a typo.  To create the command/status word, shift the components
left, not right.

Revision 1.54.14.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:17 2007 UTC (4 years, 6 months ago) by mjf
Branch: mjf-devfs
Changes since 1.54: +7 -1 lines
Diff to previous 1.54 (colored)

Sync with HEAD.

Revision 1.46.12.5 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:26 2007 UTC (4 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.4: +7 -1 lines
Diff to previous 1.46.12.4 (colored) to branchpoint 1.46 (colored)

sync with head.

Revision 1.54.6.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:32 2007 UTC (4 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.54.6.1: +2 -2 lines
Diff to previous 1.54.6.1 (colored) to branchpoint 1.54 (colored)

Sync with HEAD.

Revision 1.54.12.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:01:31 2007 UTC (4 years, 6 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.54: +7 -1 lines
Diff to previous 1.54 (colored) next main 1.55 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 12 19:54:36 2007 UTC (4 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.54: +7 -1 lines
Diff to previous 1.54 (colored)

Merge pci_disable_retry function from jmcneill-pm as it is found in
various drivers.

Revision 1.54.6.1 / (download) - annotate - [select for diffs], Mon Oct 1 05:37:53 2007 UTC (4 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.54: +7 -1 lines
Diff to previous 1.54 (colored)

Extend device API by device_power_private and device_power_set_private.
The latter is a temporary mean until the pnp_register API itself is
overhault. This functions allow a generic power handler to store its
state independent of the driver.

Use this and revamp the PCI power handling. Pretty much all PCI devices
had power handlers that did the same thing, generalize this in
pci_generic_power_register/deregister and the handler. This interface
offers callbacks for the drivers to save and restore state on
transistions. After a long discussion with jmcneill@ it was considered
to be powerful enough until evidence is shown that devices can handle
D1/D2 with less code and higher speed than without the full
save/restore. The generic code is carefully written to handle device
without PCI-PM support and ensure that the correct registers are written
to when D3 loses all state.

Reimplement the generic PCI network device handling on
top of PCI generic power handling.

Introduce pci_disable_retry as used and implemented locally at least by
ath(4) and iwi(4). Use it in this drivers to restore behaviour from
before the introduction of generic PCI network handling.

Convert all PCI drivers that were using pnp_register to the new
framework. The only exception is vga(4) as it is commonly used as
console device. Add a note therein that this should be fixed later.

Revision 1.46.12.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:37:20 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.3: +2 -1 lines
Diff to previous 1.46.12.3 (colored) to branchpoint 1.46 (colored)

sync with head.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:40 2007 UTC (4 years, 8 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Mon Jul 30 21:52:30 2007 UTC (4 years, 9 months ago) by liamjfoy
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-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
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Pull up following revision(s) (requested by dyoung in ticket #739):
	sys/dev/pci/pccbb.c: revision 1.140
	sys/dev/pci/pccbb.c: revision 1.141
	sys/dev/pci/pccbb.c: revision 1.142
	sys/dev/pci/pccbb.c: revision 1.143
	sys/dev/pci/pccbb.c: revision 1.144
	sys/dev/pci/pccbbvar.h: revision 1.28
	sys/dev/pci/pcireg.h: revision 1.53
	sys/dev/pci/pccbb.c: revision 1.139
Name magic numbers PCI_PMCSR_PME_EN and PCI_PMCSR.

Fix grammar in comment.  From Patrick Welche.

Use the right subroutine name for the debug message.

Convert the rather long and backslash-ridden DELAY_MS macro to a
much shorter static subroutine, delay_ms().

Cosmetic: KNF indentation, curly braces, and argument declarations.

sc_pwrcycle is shared between the interrupt handler and Cardbus
event thread, so make it volatile.

Fix a bug in Cardbus power activation.

Most Cardbus bridges supported by pccbb(4) fire a power-cycle
interrupt when the power state of a cardslot changes from 'off' to
'on'.  TI bridges fire a power-cycle interrupt on both on->off and
off->on changes.

When pccbb_power() powered-down a cardslot, it did not wait around
for the power-cycle interrupt.  When pccbb_power() powered-up a
cardslot, it did wait for the interrupt.  If a pccbb_power(UP)
followed a pccbb_power(DOWN) very closely, pccbb_power() used to
interpret the power-cycle interrupt for the up->down transition as
"power-up complete," read the power-state bit and, finding that
power had NOT been activated, complain, "cbb0:  power on failed?"
Then pccbb_power() exited before power-activation was complete,
falsely indicating that the power-activation *was* complete.  After
that, a driver attach/enable routine would blithely configure a
card that was not fully powered-up.  An operator who ran a command
such as 'ifconfig rtw0 down up' or 'ifconfig ath0 down up' would
read 'cbb0: power on failed?' in the system log, and their NIC
would misbehave.

This excerpt from a comment in the source should suffice to explain
how I fixed the bug,

         /*
          * Wait as long as 200ms for a power-cycle interrupt.  If
          * interrupts are enabled, but the socket has already
          * changed to the desired status, keep waiting for the
          * interrupt.  "Consuming" the interrupt in this way keeps
          * the interrupt from prematurely waking some subsequent
          * pccbb_power call.

And this explains why this patch will work for Ricoh bridges that
do not fire an interrupt on the on->off transition:

          * XXX Not every bridge interrupts on the ->OFF transition.
          * XXX That's ok, we will time-out after 200ms.
          *
          * XXX The power cycle event will never happen when attaching
          * XXX a 16-bit card.  That's ok, we will time-out after
          * XXX 200ms.
          */

M. Warner Losh and Charles M. Hannum provided valuable input on
this patch.

Revision 1.53.8.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:01 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync with head.

Revision 1.53.6.1 / (download) - annotate - [select for diffs], Sun May 27 14:30:27 2007 UTC (5 years ago) by ad
Branch: vmlocking
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync with head.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Thu May 17 13:41:34 2007 UTC (5 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.53: +2 -1 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

sync with head.

Revision 1.54 / (download) - annotate - [select for diffs], Sun May 13 03:30:46 2007 UTC (5 years ago) by kent
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-idlelwp-base8, vmlocking-base, 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.53: +2 -1 lines
Diff to previous 1.53 (colored)

Add PCI_SUBCLASS_MULTIMEDIA_HDAUDIO to pcireg.h
and azalia(4) uses it

Revision 1.46.12.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:10:34 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.2: +2 -1 lines
Diff to previous 1.46.12.2 (colored) to branchpoint 1.46 (colored)

sync with head.

Revision 1.51.4.2 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:25 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.51.4.1: +2 -1 lines
Diff to previous 1.51.4.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored)

Sync with head.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jan 26 02:04:09 2007 UTC (5 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, vmlocking, mjf-ufs-trans
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

#Define PCI_PMCSR_PME_EN.

Revision 1.46.12.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:48 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.12.1: +2 -1 lines
Diff to previous 1.46.12.1 (colored) to branchpoint 1.46 (colored)

sync with head.

Revision 1.51.6.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:46 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

sync with head.

Revision 1.51.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:33 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

Sync with head.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Nov 8 11:09:52 2006 UTC (5 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, netbsd-4-base
Branch point for: wrstuden-fixsa, netbsd-4
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

avoid magic number

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:19 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.47: +42 -1 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

sync with head

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:29 2006 UTC (5 years, 10 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Merge from HEAD.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:23 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.49: +4 -1 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

sync with head.

Revision 1.46.12.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.46: +42 -1 lines
Diff to previous 1.46 (colored)

sync with head.

Revision 1.49.8.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:01:37 2006 UTC (5 years, 11 months ago) by chap
Branch: chap-midi
Changes since 1.49: +4 -1 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Jun 17 23:34:27 2006 UTC (5 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, rpaulo-netinet-merge-pcb-base, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

re-factor the pci powestate api. reviewed by gimpy

Revision 1.47.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:48 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.47.6.1: +3 -1 lines
Diff to previous 1.47.6.1 (colored) next main 1.48 (colored)

Sync with head.

Revision 1.50 / (download) - annotate - [select for diffs], Wed May 31 10:01:18 2006 UTC (5 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: simonb-timecounters-base, gdamore-uart-base
Branch point for: gdamore-uart
Changes since 1.49: +3 -1 lines
Diff to previous 1.49 (colored)

-add 2 subclasses new in rev. 3.0 of the spec, and fix a pasto in another
-get power management rev printing right

Revision 1.47.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
Changes since 1.47: +39 -1 lines
Diff to previous 1.47 (colored)

Sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Mar 1 18:53:40 2006 UTC (6 years, 2 months ago) by gdamore
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, peter-altq, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, chap-midi
Changes since 1.48: +38 -1 lines
Diff to previous 1.48 (colored)

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

Revision 1.47.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.47: +2 -1 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

sync with head.

Revision 1.48 / (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.47: +2 -1 lines
Diff to previous 1.47 (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.47 / (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.46: +1 -1 lines
Diff to previous 1.46 (colored)

merge ktrace-lwp.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:31:07 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.42.2.2: +1 -1 lines
Diff to previous 1.42.2.2 (colored) next main 1.43 (colored)

Fix the sync with head I botched.

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:49:06 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.42.2.1: +1 -1 lines
Diff to previous 1.42.2.1 (colored)

Sync with HEAD.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:11 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.42: +41 -25 lines
Diff to previous 1.42 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Mon Aug 2 14:50:36 2004 UTC (7 years, 9 months ago) by joda
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, yamt-km-base2, yamt-km-base, yamt-km, 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, matt-timespec, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored)

bridge memory and lower prefetch memory ranges are only 12 bits wide

Revision 1.45 / (download) - annotate - [select for diffs], Wed Feb 4 06:58:24 2004 UTC (8 years, 3 months ago) by soren
Branch: MAIN
CVS Tags: 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
Changes since 1.44: +4 -2 lines
Diff to previous 1.44 (colored)

Use the right bits for the AGP version.

Revision 1.44 / (download) - annotate - [select for diffs], Tue Dec 2 16:31:06 2003 UTC (8 years, 5 months ago) by briggs
Branch: MAIN
Changes since 1.43: +8 -1 lines
Diff to previous 1.43 (colored)

Configure PCI-Cardbus bridges, too.
Patch from KIYOHARA Takashi on current-users.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Oct 21 16:22:48 2003 UTC (8 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +27 -20 lines
Diff to previous 1.42 (colored)

- Since we access PCI config space as 32-bit words, redefine the PCI-X
  command register bits offset and shifted appropriatly (PCI-X command
  makes up the upper 16 bits of the register that holds the PCI-X cap ID
  and next-cap-pointer).
- Define shift counts for max memory read byte count in the command
  and status registers.

Revision 1.42 / (download) - annotate - [select for diffs], Mon May 5 13:04:29 2003 UTC (9 years ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.41: +6 -1 lines
Diff to previous 1.41 (colored)

Define PCI32_DMA_BOUNCE_THRESHOLD

Revision 1.41 / (download) - annotate - [select for diffs], Sun Apr 20 22:53:56 2003 UTC (9 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.40: +65 -1 lines
Diff to previous 1.40 (colored)

Add register definitions for the PCI-X capability.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Mar 25 21:56:20 2003 UTC (9 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +11 -1 lines
Diff to previous 1.39 (colored)

Add PCI VPD access routines.  From psi.cz!freza, PR kern/20889.

Revision 1.34.2.5 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:19 2002 UTC (9 years, 7 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.34.2.4: +9 -2 lines
Diff to previous 1.34.2.4 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

Catch up to -current.

Revision 1.35.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:41:12 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.35.2.3: +9 -2 lines
Diff to previous 1.35.2.3 (colored) next main 1.36 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.39 / (download) - annotate - [select for diffs], Sat Sep 21 16:16:31 2002 UTC (9 years, 8 months ago) by drochner
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.38: +9 -2 lines
Diff to previous 1.38 (colored)

-correct the "MSI" capability
-add some new subclasses and capability IDs

Revision 1.35.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:36 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.35.2.2: +8 -2 lines
Diff to previous 1.35.2.2 (colored)

sync kqueue branch with HEAD

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:35:44 2002 UTC (9 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.37: +8 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

catch up with -current.

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:48:02 2002 UTC (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.35.2.1: +7 -1 lines
Diff to previous 1.35.2.1 (colored)

catch up with -current on kqueue branch

Revision 1.34.2.4 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:53 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.34.2.3: +8 -2 lines
Diff to previous 1.34.2.3 (colored) to branchpoint 1.34 (colored)

Catch up to -current.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Jun 18 13:18:37 2002 UTC (9 years, 11 months ago) by tshiozak
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.37: +8 -2 lines
Diff to previous 1.37 (colored)

add support for the per-device power management capability.

int pci_set_powerstate(pci_chipset_tag_t pc, pcitag_t tag, int newstate)
	set power state of the device to newstate.
int pci_get_powerstate(pci_chipset_tag_t pc, pcitag_t tag)
	get current power state of the device.

In the future, these functions will be used for ACPI support.

Revision 1.34.2.3 / (download) - annotate - [select for diffs], Mon Apr 1 07:46:44 2002 UTC (10 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.34.2.2: +7 -1 lines
Diff to previous 1.34.2.2 (colored) to branchpoint 1.34 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.37 / (download) - annotate - [select for diffs], Fri Mar 22 20:03:20 2002 UTC (10 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, 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, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.36: +7 -1 lines
Diff to previous 1.36 (colored)

iadd subclass codes from the 2.3 spec

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Thu Oct 25 17:54:48 2001 UTC (10 years, 7 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.28.2.1: +32 -14 lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Pull up revisions 1.31-1.32 (requested by ad):
  Add Mylex DACC960, CAC-EISA, and I2O block/SCSI drivers.

Revision 1.34.2.2 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:02 2001 UTC (10 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.34.2.1: +2 -2 lines
Diff to previous 1.34.2.1 (colored) to branchpoint 1.34 (colored)

Catch up to -current.

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Thu Sep 13 01:16:02 2001 UTC (10 years, 8 months ago) by thorpej
Branch: kqueue
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Update the kqueue branch to HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Aug 30 02:53:56 2001 UTC (10 years, 8 months ago) by briggs
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

Rename PCI_MAPREG_TYPE_ROM to PCI_MAPREG_ROM_ENABLE to keep up with pciconf.?

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:21 2001 UTC (10 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.34: +64 -1 lines
Diff to previous 1.34 (colored)

Catch up with -current.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 6 20:20:55 2001 UTC (10 years, 10 months ago) by thorpej
Branch: MAIN
Branch point for: kqueue
Changes since 1.34: +64 -1 lines
Diff to previous 1.34 (colored)

Add a bunch of Vital Product Data definitions.

Revision 1.20.2.3 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:15 2001 UTC (11 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.20.2.2: +2 -1 lines
Diff to previous 1.20.2.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Feb 12 06:24:24 2001 UTC (11 years, 3 months ago) by briggs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

Deal with a lack of the proper type of memory.  For example, if a bridge
only supports 16-bit I/O addresses, do not configure it with addresses
having the upper 16-bits non-zero.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:05 2001 UTC (11 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.20.2.1: +66 -1 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Feb 9 14:33:16 2001 UTC (11 years, 3 months ago) by briggs
Branch: MAIN
Changes since 1.32: +66 -1 lines
Diff to previous 1.32 (colored)

Add an option (defopt) PCI_NETBSD_CONFIGURE that provides PCI bus
configuration (assignment of bus numbers, BARs, timer values,
interrupt lines, etc.).
The interface must be called from m.d. code prior to probing the bus.
It is meant to be called once for each primary (bus == 0) PCI bus in
the system.  It will configure any busses behind PCI-PCI bridges.
Section 9 man page for pci_configure_bus() will come soon.
In the meantime, sample usage is in arch/sandpoint/sandpoint/mainbus.c.
[ Reviewed by thorpej ]

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:35 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.20: +103 -16 lines
Diff to previous 1.20 (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.32 / (download) - annotate - [select for diffs], Sat Oct 7 18:58:14 2000 UTC (11 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.31: +31 -13 lines
Diff to previous 1.31 (colored)

Update for current PCI device class/subclass and capability codes.
(also, tweak the I2O subclass string to be "standard" -- the removal
of version info didn't extend that far.)

Revision 1.31 / (download) - annotate - [select for diffs], Mon Oct 2 14:48:13 2000 UTC (11 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

I2O subclasses currently have nothing to do with the protocol version.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Aug 21 05:17:33 2000 UTC (11 years, 9 months ago) by castor
Branch: MAIN
Changes since 1.29: +47 -3 lines
Diff to previous 1.29 (colored)

Add a bunch of macros of the form PCI_<regname>_CODE similar to
existing PCI_ID_CODE to create the PCI appropriate register from
parameters.

Avoid use of 'class' in macro -- it's a C++ reserved keyword.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Thu Aug 10 22:25:56 2000 UTC (11 years, 9 months ago) by soda
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Pull up to netbsd-1-5 branch
Approved by: thorpej

- define PCI_INTERRUPT_PIN_MAX and use it instead of magic number.
- define I386_PCI_INTERRUPT_LINE_NO_CONNECTION and use it instead of
  magic number.

Revisions pulled up:
 > cvs rdiff -r1.28 -r1.29 syssrc/sys/dev/pci/pcireg.h
 > cvs rdiff -r1.14 -r1.15 syssrc/sys/arch/i386/include/pci_machdep.h
 > cvs rdiff -r1.38 -r1.39 syssrc/sys/arch/i386/pci/pci_machdep.c
 > cvs rdiff -r1.1 -r1.2 syssrc/sys/arch/i386/pci/opti82c558.c \
 >     syssrc/sys/arch/i386/pci/sis85c503.c \
 >     syssrc/sys/arch/i386/pci/via82c586.c

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jul 18 10:59:04 2000 UTC (11 years, 10 months ago) by soda
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

add "#define PCI_INTERRUPT_PIN_MAX 0x04"

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:07:37 2000 UTC (11 years, 11 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jun 9 04:45:53 2000 UTC (11 years, 11 months ago) by soda
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

long long constant needs "LL" suffix.

Revision 1.27 / (download) - annotate - [select for diffs], Fri May 12 03:35:34 2000 UTC (12 years ago) by jhawk
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.26: +11 -1 lines
Diff to previous 1.26 (colored)

Define some PCI power management CSR constants.

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 10 16:58:42 2000 UTC (12 years ago) by thorpej
Branch: MAIN
Changes since 1.25: +7 -1 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Mon May 8 10:45:52 2000 UTC (12 years ago) by kleink
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24 (colored)

Add a register offset for the Capability List Pointer in header type 2.

XXX Ideally the PCI-Cardbus Bridge header should be restructured to just
XXX present standard register definitions, making it ~safe to be included.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Apr 28 17:12:45 2000 UTC (12 years, 1 month ago) by uch
Branch: MAIN
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

add PCI_MAPREG_PPB_END (PCI-PCI bridge) PCI_MAPREG_PCB_END (PCI-Cardbus bridge)

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

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

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:24 1999 UTC (12 years, 5 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.20: +6 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Pull up to last week's -current.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 16 02:13:02 1999 UTC (12 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Make this file compile again; terminate the continuation line with backslash.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 15 23:41:10 1999 UTC (12 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +6 -1 lines
Diff to previous 1.20 (colored)

Add a macro to generate a class code given class, subclass, and interface.

From UCHIYAMA Yasushi's PCI BIOS patches.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Sep 27 03:20:47 1999 UTC (12 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.19: +46 -4 lines
Diff to previous 1.19 (colored)

add classes/subclasses new in PCI 2.2.  Needs a bit of cleanup, but then,
so does everything involving configuration space headers and if i don't
get this out of my source tree i'll go insane.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Dec 21 20:31:54 1998 UTC (13 years, 5 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Changes since 1.18: +14 -2 lines
Diff to previous 1.18 (colored)

add two of the newer register definitions

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 7 16:47:22 1998 UTC (13 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.17: +16 -1 lines
Diff to previous 1.17 (colored)

add support for "extended capabilities" (new in PCI spec 2.2)

Revision 1.17 / (download) - annotate - [select for diffs], Sat Aug 15 03:02:46 1998 UTC (13 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Make copyright notices with my name consistent.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jun 1 17:48:13 1998 UTC (13 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

according to the PCI 2.1 spec, the low _two_ bits of I/O BARs have
defined meaning/value other than specifying the address of the region.
(lowest bit is 1, meaning I/O space.  second-lowest bit is reserved.)

Revision 1.15 / (download) - annotate - [select for diffs], Mon May 18 17:17:04 1998 UTC (14 years ago) by cgd
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

add a PCI_HDRTYPE_TYPE() macro, to get the 'type' portion of the
headertype register (i.e., not including the 'multifunction' bit).

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 14 21:22:44 1998 UTC (14 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

Add UDF and 66MHz capable bit definitions for the PCI status register.
From Zubin D. Dittia <zubin@clouseau.arl.wustl.edu>, PR #4249.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 11 05:24:40 1997 UTC (15 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, 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-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.12: +7 -7 lines
Diff to previous 1.12 (colored)

clean up some constants ([A-F]->[a-f] in hex constants

Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 19 19:38:47 1997 UTC (15 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.11: +51 -4 lines
Diff to previous 1.11 (colored)

fix multi-function device support, add new known classes/subclasses,
and clean up class/subclass printing.  From brb@brig.com via PR 3359.

Revision 1.7.4.1 / (download) - annotate - [select for diffs], Tue Dec 10 05:45:28 1996 UTC (15 years, 5 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.7: +6 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

From trunk:
Deal with devices that do not allow allow of the I/O address bits to be set.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Aug 10 15:42:33 1996 UTC (15 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.10: +3 -5 lines
Diff to previous 1.10 (colored)

Change PCI_MAPREG_{MEM,IO}_SIZE() to use the standard `x & -x' trick to select
the lowest bit set.  This isn't any more or less valid according to the PCI
spec, but it deals with lame devices that don't implement all of the top
bits.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Aug 6 02:11:25 1996 UTC (15 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

revert PCI_MAPREG_IO_ADDR_MASK and PCI_MAPREG_IO_SIZE_MASK to their old
values, i.e. 0xfffffffe and 0xffffffff respectively.  The changed
definitions were incorrect, according to the PCI Local Bus Specification
(Revision 2.0).  Further rationale and a workaround for the broken
devices that instigated the change provided in a message to
current-users@netbsd.org, dated Mon, 05 Aug 1996 22:06:58 -0400,
message ID 16773.839297218@ux2.sp.cs.cmu.edu>.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jul 26 07:13:53 1996 UTC (15 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +8 -2 lines
Diff to previous 1.8 (colored)

Add PCI_MAPREG_{IO,MEM}_SIZE(), and use them.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 26 06:35:35 1996 UTC (15 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Changes PCI_MAPREG_IO_ADDR_MASK to 0xfffe.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 27 04:08:27 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.6: +6 -1 lines
Diff to previous 1.6 (colored)

modify these to provide a new, better-specified PCI interface
(soon to be documented on mailing lists; eventually in section 9 manual
pages), most importantly:
	(1) support interrupt pin swizzling on non-i386 systems with
	    PCI-PCI bridges (per PPB spec; done, but meaningless, on i386).
	(2) provide pci_{io,mem}_find(), to determine what I/O or memory
	    space is described by a given PCI configuration space
	    mapping register.
	(3) provide pci_intr_map(), pci_intr_string(), and
	    pci_intr_{,dis}establish() to manipulate and print info about
	    PCI interrupts.
	(4) make pci functions take as an argument a machine-dependent
	    cookie, to allow more flexibility in implementation.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 27 00:13:57 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.5: +29 -1 lines
Diff to previous 1.5 (colored)

add definitions for the BIST/Header Type/Latency Timer/Cache Line Size
configuration space register, and use it to determine whether or not
a given PCI device uses multiple functions.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 4 19:30:51 1996 UTC (16 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.4: +30 -17 lines
Diff to previous 1.4 (colored)

reorganize mapping register definitions

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 27 00:29:02 1995 UTC (16 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.3: +5 -2 lines
Diff to previous 1.3 (colored)

Add stuff for I/O mapping.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 18 01:34:01 1995 UTC (16 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +127 -85 lines
Diff to previous 1.2 (colored)

macros to split out various parts of PCI registers, adjust constants
to match.  (now, comparisons are comparisons, code doing them doesn't
have to mask.)  define types for the various parts of the registers'
contents, where practical.

Revision 1.2 / (download) - annotate - [select for diffs], Thu Oct 27 04:21:41 1994 UTC (17 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

new RCS ID format.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 9 00:47:53 1994 UTC (17 years, 9 months ago) by mycroft
Branch: MAIN

Add PCI autoconfiguration support.

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>