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.169 / (download) - annotate - [select for diffs], Fri Feb 2 22:19:13 2024 UTC (3 weeks, 3 days ago) by andvar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.168: +2 -2 lines
Diff to previous 1.168 (colored)

s/Staus/Status/ in comments.

Revision 1.168 / (download) - annotate - [select for diffs], Mon Oct 17 03:05:32 2022 UTC (16 months, 1 week ago) by mrg
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.167: +4 -1 lines
Diff to previous 1.167 (colored)

add pcie capability and read request size linux compat, some pci root support

implement support for:
- pcie_capability_read_dword()
- pcie_capability_read_word()
- pcie_capability_write_dword()
- pcie_capability_write_word()
- pcie_get_readrq()
- pcie_set_readrq()

implement the "struct pci_dev" bus->self member by creating a minimal fake
"struct pci_dev" for the pci bus itself.  this is kind of gross.  it checks
that the current device's parent is a netbsd "pci" device, and that it has
a (grand) parent "ppb" device, and then fills in the fake device based upon
the pci and ppb devices.

add some PCIE_LCSR2_TGT_LSPEED encodings, and map them to linux names.
map several other PCIE_LCSR and PCIE_LCAP names.

uncomment several pcie code segments in radeon and amdgpu.  (not sure that
we can test the amdgpu_si.c change, as we use the radeon version and the
amdgpu version hangs on the one machine i have.)

tested on amdgpu (RX550) and radeon (7750 & 3650).


ok @riastradh

Revision 1.167 / (download) - annotate - [select for diffs], Sat Oct 1 12:40:42 2022 UTC (16 months, 3 weeks ago) by rin
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.166: +2 -2 lines
Diff to previous 1.166 (colored)

No need to mangle argument of macro.

Revision 1.166 / (download) - annotate - [select for diffs], Tue Sep 20 23:01:42 2022 UTC (17 months, 1 week ago) by mrg
Branch: MAIN
Changes since 1.165: +14 -1 lines
Diff to previous 1.165 (colored)

fill out more of the linux pci API compat

- implement pcie_get_speed_cap(), pcie_bandwidth_available(), and
  pci_is_root_bus().
- expand "enum pci_bus_speed" to add PCIe 5.x and 6.x speeds.
- add "enum pcie_link_width".
- add defines for PCIE_LCSR_LINKSPEED (PCIe generation) and PCIE_LCSR_NLW
  (negotiated lane width) to pcireg.h
- enable amdgpu_device_get_pcie_info() code now it works.

ok riastradh@

Revision 1.165 / (download) - annotate - [select for diffs], Mon Jan 31 10:14:55 2022 UTC (2 years ago) by msaitoh
Branch: MAIN
Changes since 1.164: +6 -1 lines
Diff to previous 1.164 (colored)

Decode SCSI programming interface. Whitespace fix.

Revision 1.164 / (download) - annotate - [select for diffs], Mon Jan 31 10:11:33 2022 UTC (2 years ago) by msaitoh
Branch: MAIN
Changes since 1.163: +4 -1 lines
Diff to previous 1.163 (colored)

Add three new extended capabilities:

  - Physical Layer 32.0 GT/s
  - Alternate Protocol
  - System Firmware Intermediary

Revision 1.130.2.11 / (download) - annotate - [select for diffs], Sat Jan 29 17:11:22 2022 UTC (2 years ago) by martin
Branch: netbsd-8
Changes since 1.130.2.10: +34 -3 lines
Diff to previous 1.130.2.10 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1728:

	sys/dev/pci/pci_subr.c				1.232-1.239 via patch
	sys/dev/pci/pcireg.h				1.62-1.63

- Decode link control2's Compliance Preset/De-emphasis more.
- Decode Physical Layer 16.0 GT/s extended capability.
- Decode Lane Margining at the Receiver extended capability.
- Print "reserved" instead of "unknown" when printing equalization
  preset. One of them is known to be the default value.
- Fix typo.

Revision 1.147.4.4 / (download) - annotate - [select for diffs], Sat Jan 29 17:08:33 2022 UTC (2 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.147.4.3: +34 -3 lines
Diff to previous 1.147.4.3 (colored) to branchpoint 1.147 (colored) next main 1.148 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1412:

	sys/dev/pci/pci_subr.c				1.232-1.239 via patch
	sys/dev/pci/pcireg.h				1.62-1.63

- Decode link control2's Compliance Preset/De-emphasis more.
- Decode Physical Layer 16.0 GT/s extended capability.
- Decode Lane Margining at the Receiver extended capability.
- Print "reserved" instead of "unknown" when printing equalization
  preset. One of them is known to be the default value.
- Fix typo.

Revision 1.163 / (download) - annotate - [select for diffs], Sat Jan 1 03:27:53 2022 UTC (2 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.162: +33 -2 lines
Diff to previous 1.162 (colored)

Print Physical Layer 16.0 GT/s and Lane Margining at the Receiver extended cap.

 - Decode Physical Layer 16.0 GT/s extended capability.
 - Decode Lane Margining at the Receiver extended capability.
 - Rename pcie_link_compliance_preset_deemphasis to
   pcie_link_preset_preshoot_deemphasis because the table is referenced from
   multiple places.
 - Print "reserved" instead of "unknown" when printing equalization preset.
   One of them is known to be the default value.
 - Rename PCI_EXTCAP_PYSLAY_16GT to PCI_EXTCAP_PL16G.

Revision 1.162 / (download) - annotate - [select for diffs], Tue Dec 28 09:16:05 2021 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.161: +2 -2 lines
Diff to previous 1.161 (colored)

Decode link control2's Compliance Preset/De-emphasis more. Fix typo.

Revision 1.130.2.10 / (download) - annotate - [select for diffs], Fri Dec 3 19:45:13 2021 UTC (2 years, 2 months ago) by martin
Branch: netbsd-8
Changes since 1.130.2.9: +100 -92 lines
Diff to previous 1.130.2.9 (colored) to branchpoint 1.130 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1714:

	sys/dev/pci/pcireg.h			1.148-1.154, 1.156-1.161
	sys/dev/pci/pci_subr.c			1.217-1.222, 1.224, 1.227-1.232
						via patch
	sys/dev/pci/nvme_pci.c			1.31
	sys/dev/pci/pci.c			1.158
	sys/dev/pci/ppb.c			1.74

- Print Bridge Config Retry Enable bit and Retimer Presence Detect
  Supported bit.
- Add PCIe 4.0 stuff a little:
  - 10-bit Tag Requester/Completer.
  - Add Data link Feature extended capability.
  - Add Physical Layer 16.0 GT/s extended capability. Not decode yet.
- Change pci_conf_print() to allocate memory for the regs dynamically
  instead of on-stack.
- Print some DPC register values not with %04x but with %08x because
  those are 32bit.
- Fix a bug that the virtual channel extended configuration's
  arbitration phase register can't be decoded correctly.
- When parsing Enhanced Allocation entries, use the correct calculation
  for finding the next entry.
- Add 32.0GT/s to the list of pcie speeds (PCIe 5.x.).
- Add Some PCI config information:
  - Lane Margining at the Receiver
  - NVME admin interface
  - UFSHCI
  - InfiniBand
  - Host fabric
  - HDA 1.0 with vendor ext
  - USB4 HCI
  - MIPI I3C
  - Cellular controller/modem (+ Ethernet)
- Change PCI_VENDOR_MASK and PCI_PRODUCT_MASK to unsigned values, to
  prevent sign extension of product ID when shifted up into place in
  PCI_ID_CODE(). Fixes PR kern/56176.
- Add LCAP & LCAP2 definitions.
- Use PCI-SIG official acronyms for some macros.
- Remove unused shift and mask definitions.
- Fix typo in some messages.
- Fix typo in comments.
- Whitespace fixes.

Revision 1.147.4.3 / (download) - annotate - [select for diffs], Fri Dec 3 19:40:38 2021 UTC (2 years, 2 months ago) by martin
Branch: netbsd-9
Changes since 1.147.4.2: +76 -54 lines
Diff to previous 1.147.4.2 (colored) to branchpoint 1.147 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1384:

	sys/dev/pci/pcireg.h			1.152-1.154, 1.156-1.161
	sys/dev/pci/pci_subr.c			1.222, 1.227-1.232 via patch
	sys/dev/pci/nvme_pci.c			1.31
	sys/dev/pci/pci.c			1.158, 1.163
	sys/dev/pci/ppb.c			1.74

- When parsing Enhanced Allocation entries, use the correct calculation
  for finding the next entry.
- Add 32.0GT/s to the list of pcie speeds (PCIe 5.x.).
- Add Some PCI config information:
  - Lane Margining at the Receiver
  - NVME admin interface
  - UFSHCI
  - InfiniBand
  - Host fabric
  - HDA 1.0 with vendor ext
  - USB4 HCI
  - MIPI I3C
  - Cellular controller/modem (+ Ethernet)
- Change PCI_VENDOR_MASK and PCI_PRODUCT_MASK to unsigned values, to
  prevent sign extension of product ID when shifted up into place in
  PCI_ID_CODE(). Fixes PR kern/56176.
- Add LCAP & LCAP2 definitions.
- Use PCI-SIG official acronyms for some macros.
- Fix typo in some messages.
- Fix typo in comments.
- Whitespace fixes.

Revision 1.161 / (download) - annotate - [select for diffs], Sun Oct 10 23:28:36 2021 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.160: +8 -8 lines
Diff to previous 1.160 (colored)

Use PCI-SIG official acronyms:

 - RP stands for Root Port.
 - RC stands for Root Complex.
 - RCIEP stands for Root Complex Integrated End Point.

Revision 1.160 / (download) - annotate - [select for diffs], Sun Oct 10 07:20:01 2021 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.159: +14 -2 lines
Diff to previous 1.159 (colored)

Add Some PCI config information:

 - Lane Margining at the Receiver
 - NVME admin interface
 - UFSHCI
 - InfiniBand
 - Host fabric
 - HDA 1.0 with vendor ext
 - USB4 HCI
 - MIPI I3C
 - Cellular controller/modem (+ Ethernet)

Revision 1.159 / (download) - annotate - [select for diffs], Sun Oct 10 07:09:20 2021 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.158: +6 -6 lines
Diff to previous 1.158 (colored)

 Whitespace fix. No functional change.

Revision 1.158 / (download) - annotate - [select for diffs], Thu Sep 9 08:11:42 2021 UTC (2 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.157: +7 -7 lines
Diff to previous 1.157 (colored)

fix part of the previous: Link Capability Max Speed is a value not
a bitmask.  pointed out by msaitoh@.

Revision 1.157 / (download) - annotate - [select for diffs], Thu Sep 9 02:12:48 2021 UTC (2 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.156: +13 -1 lines
Diff to previous 1.156 (colored)

add some bits in the pci Link Capabilities Register, and also the similar
set in the Link Capabilities 2 Register.

Revision 1.156 / (download) - annotate - [select for diffs], Tue Aug 17 22:00:32 2021 UTC (2 years, 6 months ago) by andvar
Branch: MAIN
Changes since 1.155: +9 -9 lines
Diff to previous 1.155 (colored)

fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.

Revision 1.153.4.2 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:30 2021 UTC (2 years, 6 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.153.4.1: +16 -1 lines
Diff to previous 1.153.4.1 (colored) to branchpoint 1.153 (colored) next main 1.154 (colored)

Sync with HEAD.

Revision 1.155 / (download) - annotate - [select for diffs], Thu Jun 24 23:48:08 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.154: +16 -1 lines
Diff to previous 1.154 (colored)

From the "Should have been done years ago" department, add some macros
describing the format of PCI Type 0 and Type 1 Configuration Cycle
addresses.

Revision 1.153.4.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:29 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.153: +3 -3 lines
Diff to previous 1.153 (colored)

Sync w/ HEAD.

Revision 1.153.6.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:18 2021 UTC (2 years, 8 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.153: +3 -3 lines
Diff to previous 1.153 (colored) next main 1.154 (colored)

sync with head

Revision 1.154 / (download) - annotate - [select for diffs], Sat May 15 13:00:45 2021 UTC (2 years, 9 months ago) by jakllsch
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.153: +3 -3 lines
Diff to previous 1.153 (colored)

Change PCI_VENDOR_MASK and PCI_PRODUCT_MASK to unsigned values, to prevent
sign extension of product ID when shifted up into place in PCI_ID_CODE()

Should fix PR 56176.

Revision 1.151.6.1 / (download) - annotate - [select for diffs], Sun Jan 3 16:35:01 2021 UTC (3 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.151: +29 -31 lines
Diff to previous 1.151 (colored) next main 1.152 (colored)

Sync w/ HEAD.

Revision 1.153 / (download) - annotate - [select for diffs], Mon Dec 28 13:12:24 2020 UTC (3 years, 2 months ago) by skrll
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.152: +28 -30 lines
Diff to previous 1.152 (colored)

Add second space indentation for bit field values for Enhanced Allocation
capabilities.  From thorpej.

Revision 1.152 / (download) - annotate - [select for diffs], Mon Dec 28 12:38:44 2020 UTC (3 years, 2 months ago) by skrll
Branch: MAIN
Changes since 1.151: +2 -2 lines
Diff to previous 1.151 (colored)

Trailing whitespace

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:09 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.138.2.1: +25 -39 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

Merge changes from current as of 20200406

Revision 1.147.4.2 / (download) - annotate - [select for diffs], Thu Mar 19 19:05:34 2020 UTC (3 years, 11 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.147.4.1: +24 -38 lines
Diff to previous 1.147.4.1 (colored) to branchpoint 1.147 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #782):

	sys/dev/pci/pcireg.h: revision 1.150
	sys/dev/pci/pcireg.h: revision 1.151
	sys/dev/pci/pci_subr.c: revision 1.220
	sys/dev/pci/pci_subr.c: revision 1.221
	sys/dev/pci/pcireg.h: revision 1.149

- Print Bridge Config Retry Enable bit and Retimer Presence Detect Supported
   bit.
- Avoid using magic number.

Add PCIe 4.0 stuff a little:
  - 10-bit Tag Requester/Completer.
  - Add Data link Feature extended capability.
  - Add Physical Layer 16.0 GT/s extended capability. Not decode yet.

  Remove unused shift and mask definitions.

  Add comment.

Revision 1.148.2.2 / (download) - annotate - [select for diffs], Sat Feb 29 20:19:14 2020 UTC (3 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.148.2.1: +2 -2 lines
Diff to previous 1.148.2.1 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored)

Sync with head.

Revision 1.151 / (download) - annotate - [select for diffs], Tue Feb 18 04:08:12 2020 UTC (4 years ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Branch point for: thorpej-futex
Changes since 1.150: +2 -2 lines
Diff to previous 1.150 (colored)

 Add comment.

Revision 1.148.2.1 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:49 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.148: +23 -37 lines
Diff to previous 1.148 (colored)

Sync with head.

Revision 1.150 / (download) - annotate - [select for diffs], Sat Jan 25 08:13:39 2020 UTC (4 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: ad-namecache-base2
Changes since 1.149: +23 -1 lines
Diff to previous 1.149 (colored)

Add PCIe 4.0 stuff a little:

 - 10-bit Tag Requester/Completer.
 - Add Data link Feature extended capability.
 - Add Physical Layer 16.0 GT/s extended capability. Not decode yet.

Revision 1.149 / (download) - annotate - [select for diffs], Wed Jan 22 02:51:38 2020 UTC (4 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.148: +1 -37 lines
Diff to previous 1.148 (colored)

 Remove unused shift and mask definitions.

Revision 1.147.4.1 / (download) - annotate - [select for diffs], Tue Jan 21 15:15:23 2020 UTC (4 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.147: +2 -2 lines
Diff to previous 1.147 (colored)

Pull up the following, requested by msaitoh in ticket #629:

	sys/dev/pci/pcireg.h			1.148
	sys/dev/pci/pci_subr.c			1.218-1.219

- Fix a bug that the virtual channel extended configuration's
  arbitration phase register can't be decoded correctly.
- Fix typo.

Revision 1.148 / (download) - annotate - [select for diffs], Wed Dec 11 07:33:55 2019 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.147: +2 -2 lines
Diff to previous 1.147 (colored)

s/enalbe/enable/

Revision 1.130.2.9 / (download) - annotate - [select for diffs], Thu Sep 26 18:14:54 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.130.2.8: +3 -1 lines
Diff to previous 1.130.2.8 (colored) to branchpoint 1.130 (colored)

Pull up the following revisions, requested by msaitoh in ticket #1388:

	sys/dev/pci/pcireg.h				1.147 via patch
	sys/dev/pci/pci_subr.c				1.212, 1.215-1.217 via patch

- Change fast back-to-back "capable" to "enable" in pci_subr.c.
- Print Primary Discard Timer, Secondary Discard Timer, Discard
  Timer Status and Discard Timer SERR# Enable bit in pci_subr.c.
- Print some DPC register values not with %04x but with %08x because
  those are 32bit.
- Remove whitespace for consistency.
- Use macro.
- Whitespace fixes.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:27 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.138: +145 -59 lines
Diff to previous 1.138 (colored)

Sync with HEAD

Revision 1.147 / (download) - annotate - [select for diffs], Fri Mar 1 09:26:00 2019 UTC (4 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.146: +72 -54 lines
Diff to previous 1.146 (colored)

- Almost all ppbreg.h's definitions are also in pcireg.h. Remove duplicated
  definitions from ppbreg.h and move some definitions from ppbreg.h to
  pcireg.h.
- Change fast back-to-back "capable" to "enable" in pci_subr.c.
- Print Primary Discard Timer, Secondary Discard Timer, Discard Timer Status
  and Discard Timer SERR# Enable bit in pci_subr.c.
- PCI_BRIDGE_PREFETCHBASE32_REG and PCI_BRIDGE_PREFETCHLIMIT32_REG are
  "upper" 32bit registers, rename to *UP32_REG to avoid confusion.
- Use macro.

Revision 1.137.2.6 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:00 2018 UTC (5 years, 2 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.137.2.5: +19 -3 lines
Diff to previous 1.137.2.5 (colored) to branchpoint 1.137 (colored) next main 1.138 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.130.2.8 / (download) - annotate - [select for diffs], Tue Dec 4 11:29:41 2018 UTC (5 years, 2 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.130.2.7: +67 -3 lines
Diff to previous 1.130.2.7 (colored) to branchpoint 1.130 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1118):

	sys/dev/pci/pci_subr.c: revision 1.210
	sys/dev/pci/pci_subr.c: revision 1.207
	sys/dev/pci/pcireg.h: revision 1.143
	sys/dev/pci/pci_subr.c: revision 1.208
	sys/dev/pci/pcireg.h: revision 1.144
	sys/dev/pci/pci_subr.c: revision 1.209
	sys/dev/pci/pcireg.h: revision 1.145
	sys/dev/pci/pcireg.h: revision 1.146

  Decode PCI Enhanced Allocation.

  The register offset of the mask and pending register is depend on the 64bit
address capable bit, so fix the definition of PCI MSI vector mask and pending
register. This problem was not a real bug because PCI_MSI{MASK,PENDING} were
not used from anywhere.

  The downstream port of PCIe switch is not a root port, so don't print
root port related register. For example, Intel 63xxESB controller's
downstream port device was printed by pcictl(8) with this bug:

-----------------------------
PCI configuration registers:
   Common header:
     0x00: 0x35108086 0x00100147 0x06040001 0x00010010
     Vendor Name: Intel (0x8086)
     Device Name: 63xxESB PCI Express Downstream Port #1 (0x3510)
(snip)
   Capability register at 0x44       <=============
     type: 0x10 (PCI Express)
   Capability register at 0x60       <============= 0x60 - 0x44 = 0x1c
     type: 0x05 (MSI)
   Capability register at 0x70
     type: 0x01 (Power Management)
   Capability register at 0x80
     type: 0x0d (Subsystem vendor ID)
(snip)
   PCI Message Signaled Interrupt
     Message Control register: 0x0080
       MSI Enabled: off
       Multiple Message Capable: no (1 vector)
       Multiple Message Enabled: off (1 vector)
       64 Bit Address Capable: on
       Per-Vector Masking Capable: off
       Extended Message Data Capable: off
       Extended Message Data Enable: off
     Message Address (lower) register: 0x00000000
     Message Address (upper) register: 0x00000000
     Message Data register: 0x0000
(snip)
   PCI Express Capabilities Register
(snip)
     Root Control Register: 0x7005	<=== 0x7005 is the first two byte
       SERR on Correctable Error Enable: on   of the MSI capability structure
       SERR on Non-Fatal Error Enable: off
       SERR on Fatal Error Enable: on
       PME Interrupt Enable: off
       CRS Software Visibility Enable: off
     Root Capability Register: 0x0080
       CRS Software Visibility: off
     Root Status Register: 0x00000000
       PME Requester ID: 0x0000
       PME was asserted: off
       another PME is pending: off
   Device-dependent header:
     0x40: 0x00c00000 0x00616010 0x00000001 0x00005026  |   |<- PCIe      |
     0x50: 0x0203f441 0x10010020 0x00000000 0x004803c0  |               ->|
     0x60: 0x00807005 0x00000000 0x00000000 0x00000000  |<-     MSI     ->|
     0x70: 0xc8028001 0x00000100 0x00000000 0x00000000  |<-     PM      ->|
     0x80: 0x0000000d 0x00000000 0x00000000 0x00000000  |<- subsystem ID  |
--------------------------------------

  Add new macro PCIE_HAS_ROOTREGS(pcie_devtype) and use it. No functional
change.

  Add new PCIE_HAS_LINKREGS(pcie_devtype) and use it. No functional change.

Revision 1.146 / (download) - annotate - [select for diffs], Fri Nov 30 10:18:37 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.145: +8 -1 lines
Diff to previous 1.145 (colored)

 Add new PCIE_HAS_LINKREGS(pcie_devtype) and use it. No functional change.

Revision 1.145 / (download) - annotate - [select for diffs], Fri Nov 30 09:05:35 2018 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.144: +6 -1 lines
Diff to previous 1.144 (colored)

 Add new macro PCIE_HAS_ROOTREGS(pcie_devtype) and use it. No functional
change.

Revision 1.144 / (download) - annotate - [select for diffs], Wed Nov 28 08:26:07 2018 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.143: +7 -3 lines
Diff to previous 1.143 (colored)

 The register offset of the mask and pending register is depend on the 64bit
address capable bit, so fix the definition of PCI MSI vector mask and pending
register. This problem was not a real bug because PCI_MSI{MASK,PENDING} were
not used from anywhere.

Revision 1.137.2.5 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:46 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.137.2.4: +49 -1 lines
Diff to previous 1.137.2.4 (colored) to branchpoint 1.137 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.143 / (download) - annotate - [select for diffs], Mon Nov 5 03:51:31 2018 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.142: +49 -1 lines
Diff to previous 1.142 (colored)

 Decode PCI Enhanced Allocation.

Revision 1.130.2.7 / (download) - annotate - [select for diffs], Tue Oct 30 09:32:32 2018 UTC (5 years, 3 months ago) by sborrill
Branch: netbsd-8
Changes since 1.130.2.6: +7 -4 lines
Diff to previous 1.130.2.6 (colored) to branchpoint 1.130 (colored)

Pull up the following revisions(s) (requested by msaitoh in ticket #1074):
	sys/dev/pci/pci_subr.c:	revision 1.204-1.206
	sys/dev/pci/pcireg.h:	revision 1.141-1.142

Root Complex Event Collector Bus Number Association ECN.
- If capability version is 2 (or greater), decode RCEC Associated Bus Numbers
  register.
- Don't print TPH requester's ST Table Size if the ST table location field
  is not PCI_TPH_REQ_STTBLLOC_TPHREQ because the size field is only applicable
  for PCI_TPH_REQ_STTBLLOC_TPHREQ case.
- Add comment.

Revision 1.137.2.4 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:43 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.137.2.3: +3 -3 lines
Diff to previous 1.137.2.3 (colored) to branchpoint 1.137 (colored)

Sync with head

Revision 1.142 / (download) - annotate - [select for diffs], Wed Oct 3 06:46:09 2018 UTC (5 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Changes since 1.141: +3 -3 lines
Diff to previous 1.141 (colored)

- Don't print TPH requester's ST Table Size if the ST table location field
  is not PCI_TPH_REQ_STTBLLOC_TPHREQ because the size field is only applicaple
  for PCI_TPH_REQ_STTBLLOC_TPHREQ case.
- Add comment.

Revision 1.137.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:51 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.137.2.2: +6 -2 lines
Diff to previous 1.137.2.2 (colored) to branchpoint 1.137 (colored)

Ssync with HEAD

Revision 1.141 / (download) - annotate - [select for diffs], Thu Sep 27 07:09:29 2018 UTC (5 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0930
Changes since 1.140: +5 -2 lines
Diff to previous 1.140 (colored)

Root Complex Event Collector Bus Number Association ECN.
- If capability version is 2 (or greater), decode RCEC Associated Bus Numbers
  register.

Revision 1.130.2.6 / (download) - annotate - [select for diffs], Sun Sep 23 17:40:37 2018 UTC (5 years, 5 months ago) by martin
Branch: netbsd-8
Changes since 1.130.2.5: +2 -1 lines
Diff to previous 1.130.2.5 (colored) to branchpoint 1.130 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1028):

	sys/dev/pci/pci_subr.c: revision 1.203
	sys/dev/pci/pcireg.h: revision 1.140

  Add ATS Relaxed Ordering supported bit described in Address Translation
Relaxed Ordering ECN.

Revision 1.140 / (download) - annotate - [select for diffs], Wed Sep 12 07:42:21 2018 UTC (5 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.139: +2 -1 lines
Diff to previous 1.139 (colored)

 Add ATS Relaxed Ordering supported bit described in Address Translation
Relaxed Ordering ECN.

Revision 1.95.2.4 / (download) - annotate - [select for diffs], Sat Aug 11 13:34:21 2018 UTC (5 years, 6 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.95.2.3: +13 -1 lines
Diff to previous 1.95.2.3 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Pull up the following, requested by msaitoh in ticket #1628:

share/man/man4/wm.4				1.40 via patch
sys/dev/mii/ihphyreg.h				1.2
sys/dev/mii/inbmphyreg.h			1.10
sys/dev/pci/if_wm.c				1.504, 1.506, 1.510-1.535, 1.539-1.540, 1.546, 1.548, 1.551-1.552, 1.558, 1.565-1.573, 1.575, 1.579, 1.582, 1.584 via patch
sys/dev/pci/if_wmreg.h				1.99-1.103, 1.106-1.107 via patch
sys/dev/pci/if_wmvar.h				1.34-1.39 via patch
sys/dev/pci/pcidevs				1.1327 via patch
sys/dev/pci/pcidevs.h				regen
sys/dev/pci/pcidevs_data.h			regen
sys/dev/pci/pcireg.h				patch

	Sync wm(4) up to 2018/08/08 except MSI/MSI-X and NET_MPSAFE:
	- remove extra "+"
	- Fix a bug that non-GMII devices don't send a routing message when
	  the link status is changed.
	- Set WMREG_KABGTXD not in wm_init_locked() but in wm_reset(). Same as
	  other OSes.
	- If a interrupt is a spurious interrupt, don't print debug message.
	- Don't print the Image Unique ID if an NVM is iNVM (i210 and I211).
	- Print sc_flags with snprintb().
	- Fix a bug that a RAL was written at incorrect address when the index
	  number is more than 16 on 82544 and newer.
	- The layout of RAL on PCH* are different from others. Fix it.
	- Flush every MTA write. Same as Linux.
	- Move the location of calling wm_set_filter. Same as some other OSes.
	- Add CSR_WRITE_FLUSH() after writing WMREG_CTRL in
	  wm_gmii_mediachange().
	- Add missing "else" in wm_nvm_release().
	- Make new wm_phy_post_reset() and use this function at all location
	  after resetting phy.
	- Move the location of calling wm_get_hw_control. Same as Linux.
	- Add I219 specific wokaround for legacy interrupt. From OpenBSD.
	- Move the location of calling wm_lplu_d0_disable().
	- Fix latency calculation in wm_platform_pm_pch_lpt().
	- Set OBFF water mark and enable OBFF on PCH_LPT and newer.
	- Disable D0 LPLU on 8257[12356], 82580, I350 and I21[01], too.	Before
	  this commit, above devices and non-PCIe devices accessed wrong
	  register.
	- Use device_printf() instead of aprint_error_dev() for PHY read/write
	  functions because those are used not only in device attach.
	- Fix a bug that wm_gmii_i82544_{read,write}reg() didn't take care of
	  page select. PHY access from igphy() automatically did it, but
	  accessing from wm(4) for wrokaround didn't work correctly. This
	  change affects 8254[17], 8257[12] ICH8, ICH9 and ICH10.
	- Call wm_kmrn_lock_loss_workaround_ich8lan() before any PHY access in
	  wm_linkintr_gmii().
	- Register access in wm_kmrn_lock_loss_workaround_ich8lan() now works
	  correctly. Enable this function.
	- Configure the LCD with the extended configuration region in NVM if
	  it's required.
	- If TX is not required to flush, RX is also not required to flush
	  in wm_flush_desc_rings(). Same as other OSes.
	- Remove wrong semaphore access in wm_nvm_{read,write}_{ich8,spt} to
	  prevent hangup. A semaphore is get/put in wm_nvm_{read,write}.
	- Move some initialization stuff in wm_attach() before wm_reset(). Some
	  flags and callback function are required to set correctly before
	  wm_reset() because wm_reset() and some helper functions refer them.
	- Add wm_write_smbus_addr() to set SMBus address by software.
	- Modify wm_gmii_hv_{read,write}reg_locked() to make them access
	  HV_SMB_ADDR correctly.
	- Use new nvm.{acquire,release}() for semaphore.
	- Our MII readreg/writereg API has not way to detect an error.
	  kmrn_{read,write}reg() are not used for MII API, so it's not required
	  for these functions to use the same API. So,
	  - Change return value as error code.
	  - Change register value from int to uint16_t.
	  - read: pass pointer for uint16_t as an argument.
	  - Check return value on caller side.
	- Check whether it's required to use MDIC workaround for 80003 or not
	  in wm_reset(). If the workaround isn't required, don't use the
	  workaround code in wm_gmii_i80003_{read,write}reg.
	- Add WM_F_WA_I210_CLSEM flag for a workaround. FreeBSD/Linux drivers
	  say "In rare circumstances, the SW semaphore may already be held
	  unintentionally on I21[01]". PXE boot is one of the case.
	- Qemu's e1000e emulation (82574L)'s SPI has only 64 words. I've never
	  seen on real 82574 hardware with such small SPI ROM. Check
	  sc->sc_nvm_wordsize before accessing higher address words to prevent
	  timeout.
	- Check some wm_nvm_read()'s return vale.
	- Print NVM offset and word count when EERD polling failed.
	- On I219, drop TARC0 bit 28 for DMA hang workaround (from Linux).
	- 82583 supports jumbo frame. Fixes PR#52773 reported by
	  Shinichi Doyashiki.
	- Fix typo in comment. Reported by Shinichi Doyashiki in PR#52885.
	- Add ASPM workaround for 8257[1234] and 82583 to prevent device
	  timeout or hangup. Fixes PR#52818 reported by Shinichi Doyashiki.
	- CID-1427779: Fix uninitialized variables.
	- Fix a bug that wm_pll_workaround_i210() is not called when
	  a) Chip is I211 or b) Chip is I210 and it uses iNVM (not FLASH).
	- Do wm_reset_mdicnfg_82580() on 82580 only.
	- Fix FLASH access on PCH_SPT and newer. Their FLASH access should be
	  done by 32bit. Especially for ICH_FLASH_HSFCTL register, it's located
	  at 0x0006, so it must be accessed via ICH_FLASH_HSFSTS(0x0004) and
	  use shift or mask.
	- Make wm_nvm_valid_bank_detect_ich8lan() the same as other OSes.
	- If the extended configuration size in the EXTCNFSIZE register is 0,
	  don't continue in wm_init_lcd_from_nvm().
	- Add PCH_CNP support (I219 with Intel 300 series chipset).
	- Enable I219 support.
	- I354 uses an external PHY, so don't use wm_set_eee_i350().
	- Fix a bug that the link can't detect in link interrupt function for
	  non-SERDES fiber.
	- Fix a bug that 82542 misunderstand fiber's signal detection.
	- Add debug printf()s.
	- Update comment.
	- Rename functions and variables.
	- Add diagnostic code.
	- Sort registers.
	- Lowercase hexadecimal values.
	- KNF.

Revision 1.137.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:56 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.137.2.1: +2 -2 lines
Diff to previous 1.137.2.1 (colored) to branchpoint 1.137 (colored)

Sync with HEAD

Revision 1.130.2.5 / (download) - annotate - [select for diffs], Thu Jul 26 23:11:59 2018 UTC (5 years, 7 months ago) by snj
Branch: netbsd-8
Changes since 1.130.2.4: +2 -2 lines
Diff to previous 1.130.2.4 (colored) to branchpoint 1.130 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #933):
	sys/dev/pci/pci_subr.c: revision 1.202
	sys/dev/pci/pcireg.h: revision 1.139
	sys/dev/pci/ppbreg.h: revision 1.9
VGA 16 bit decode bit is not bit 3 but bit 4.
--
- Print Power Management Control/status register in 32bit.
- Simplify.

Revision 1.130.2.4 / (download) - annotate - [select for diffs], Thu Jul 26 21:07:19 2018 UTC (5 years, 7 months ago) by snj
Branch: netbsd-8
Changes since 1.130.2.3: +2 -2 lines
Diff to previous 1.130.2.3 (colored) to branchpoint 1.130 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #930):
	sys/dev/pci/pci_subr.c: revision 1.201
	sys/dev/pci/pcireg.h: revision 1.138
  Fix typo. s/TPL/TLP/

Revision 1.139 / (download) - annotate - [select for diffs], Mon Jul 2 03:52:32 2018 UTC (5 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.138: +2 -2 lines
Diff to previous 1.138 (colored)

 VGA 16 bit decode bit is not bit 3 but bit 4.

Revision 1.137.2.1 / (download) - annotate - [select for diffs], Mon May 21 04:36:11 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored)

Sync with HEAD

Revision 1.138 / (download) - annotate - [select for diffs], Wed May 9 03:50:51 2018 UTC (5 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.137: +2 -2 lines
Diff to previous 1.137 (colored)

 Fix typo. s/TPL/TLP/

Revision 1.130.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 00:56:29 2018 UTC (6 years ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.130.2.2: +7 -2 lines
Diff to previous 1.130.2.2 (colored) to branchpoint 1.130 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #576):
	sys/dev/pci/pci_subr.c: 1.197-1.200
	sys/dev/pci/pcireg.h: 1.136-1.137
	sys/dev/pci/ppbreg.h: 1.8
 Add VGA 16bit decode bit into the PCI bridge control register. This bit is
defined in PCI-to-PCI Bridge Architecture Specification Revision 1.2. This
bit has meaning if the VGA enable bit or the VGA Palette Snoop Enable bit is
set.
 NOTE: sys/arch/x86/pci/pci_ranges.c::mmio_range_extend_by_vga_enable() and/or
some other functions should be modified.
 "s/above 300W/greater than 300W/" in pci_conf_print_pcie_power(). From
PCIe Base Spec 3.1a Errata 2017-12-13.
Cleanup:
- Don't pass a capability pointer as a argument of pci_conf_find_cap() and
  determine the first pointer in the pci_conf_find_cap() function.
- Don't pass a capability pointer as a argument of pci_conf_find_extcap()
  because it's not used.
- Remove unsed code.
- Add PCie Link Activation ECN.
- Use macro.
- KNF.

Revision 1.137 / (download) - annotate - [select for diffs], Thu Feb 1 09:09:14 2018 UTC (6 years ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.136: +6 -1 lines
Diff to previous 1.136 (colored)

- Add PCie Link Activation ECN.
- Use macro.
- KNF.

Revision 1.136 / (download) - annotate - [select for diffs], Mon Dec 18 04:48:28 2017 UTC (6 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.135: +2 -2 lines
Diff to previous 1.135 (colored)

 Add VGA 16bit decode bit into the PCI bridge control register. This bit is
defined in PCI-to-PCI Bridge Architecture Specification Revision 1.2. This
bit has meaning if the VGA enable bit or the VGA Palette Snoop Enable bit is
set.

 NOTE: sys/arch/x86/pci/pci_ranges.c::mmio_range_extend_by_vga_enable() and/or
some other functions should be modified.

Revision 1.74.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:28 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.74.2.3: +990 -163 lines
Diff to previous 1.74.2.3 (colored) next main 1.75 (colored)

update from HEAD

Revision 1.130.2.2 / (download) - annotate - [select for diffs], Tue Nov 21 14:16:38 2017 UTC (6 years, 3 months ago) by martin
Branch: netbsd-8
Changes since 1.130.2.1: +66 -3 lines
Diff to previous 1.130.2.1 (colored) to branchpoint 1.130 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #362):
	sys/dev/pci/pcireg.h: revision 1.133
	sys/dev/pci/pcireg.h: revision 1.134
	sys/dev/pci/pcireg.h: revision 1.135
	sys/dev/pci/pci_subr.c: revision 1.190
	sys/dev/pci/pci_subr.c: revision 1.191
	sys/dev/pci/pci_subr.c: revision 1.192
	sys/dev/pci/pci_subr.c: revision 1.193
	sys/dev/pci/pci_subr.c: revision 1.194
	sys/dev/pci/pcireg.h: revision 1.132
- Official shortname of LN Requester is LNR, so change PCI_EXTCAP_LN_REQ
   to PCI_EXTCAP_LNR
- Use macro.
- Add PCI_MAPREG_ROM_ADDR_MASK macro and PCI_MAPREG_ROM_ADDR() macro.
- print PCI_MAPREG_ROM_ENABLE bit.
- Decode Expansion ROM Validation ECN.
- Add Native PCIe Enclosure Management ECN's extended capability type.
   Not decoded yet.
  Decode IOMMU capability of PCI secure device capability. From "AMD I/O
Virtualization Technology(IOMMU) Specification (#48882) Revision 3.00".
IOMMU cap dump fixes:
- Print Capability Register's value.
- Indent output correctly.
- s/cahced/cached/
- Print MSI Message number with 0x%02x
  Fix a bug that the TPH ST table is decoded even if it's not in the TPH
Requester extended capability structure.

Revision 1.135 / (download) - annotate - [select for diffs], Thu Oct 19 05:52:57 2017 UTC (6 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.134: +4 -1 lines
Diff to previous 1.134 (colored)

 Fix a bug that the TPH ST table is decoded even if it's not in the TPH
Requester extended capability structure.

Revision 1.134 / (download) - annotate - [select for diffs], Tue Oct 10 03:11:01 2017 UTC (6 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.133: +37 -2 lines
Diff to previous 1.133 (colored)

 Decode IOMMU capability of PCI secure device capability. From "AMD I/O
Virtualization Technology(IOMMU) Specification (#48882) Revision 3.00".

Revision 1.133 / (download) - annotate - [select for diffs], Thu Oct 5 06:14:30 2017 UTC (6 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.132: +26 -1 lines
Diff to previous 1.132 (colored)

- Add PCI_MAPREG_ROM_ADDR_MASK macro and PCI_MAPREG_ROM_ADDR() macro.
- print PCI_MAPREG_ROM_ENABLE bit.
- Decode Expansion ROM Validation ECN.
- Add Native PCIe Enclosure Management ECN's extended capability type.
  Not decoded yet.

Revision 1.100.2.9 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:25 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100.2.8: +217 -135 lines
Diff to previous 1.100.2.8 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored)

Sync with HEAD

Revision 1.132 / (download) - annotate - [select for diffs], Thu Jul 13 08:41:19 2017 UTC (6 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Changes since 1.131: +2 -2 lines
Diff to previous 1.131 (colored)

- Official shortname of LN Requester is LNR, so change PCI_EXTCAP_LN_REQ
  to PCI_EXTCAP_LNR
- Use macro.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Tue Jul 4 14:35:21 2017 UTC (6 years, 7 months ago) by martin
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.130: +2 -2 lines
Diff to previous 1.130 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #80):
	sys/dev/pci/pci_subr.c: revision 1.184
	sys/dev/pci/pci_subr.c: revision 1.185
	sys/dev/pci/pci_subr.c: revision 1.186
	sys/dev/pci/pci_subr.c: revision 1.187
	sys/dev/pci/pci_subr.c: revision 1.188
	sys/dev/pci/pci_subr.c: revision 1.189
	sys/dev/pci/pcireg.h: revision 1.131
 Add missing return to print the Slot Power Limit Value correctly.
 Fix to print the following bit fields correctly.
  -  Supported Link Speeds Vector in LCAP2
  -  Lower SKP OS Generation Supported Speed Vector  in LCAP2
  -  Lower SKP OS Reception Supported Speed Vector in LCAP2
  -  Enable Lower SKP OS Generation Vector in LCTL3
Note that the above bitfields start from 0 and the follwing bitfields start
from 1:
  -  Maximum Link Speed in LCAP
  -  Current Link Speed in LCSR
  -  Target Link Speed in LCSR2
 For the Target Link Speed in LCSR2, 0 is allowed for a device which supports
2.5GT/s only (and this check also works for devices which compliant to
versions of the base specification prior to 3.0.
Tested with BCM5709:
-      Target Link Speed: unknown value (0)
+      Target Link Speed: 2.5GT/s
 For Attention Indicator Control bit and Power Indicator Control bit, it's
allowed to be a read only value 0 if corresponding capability register bit
is 0.
 Fix a bug that LTR's latency in L1 PM Substates capability and Latency
Tolerance Reporting capability isn't printed correctly.
Fix printf format/argument.

Revision 1.131 / (download) - annotate - [select for diffs], Thu Jun 15 06:51:18 2017 UTC (6 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.130: +2 -2 lines
Diff to previous 1.130 (colored)

 Fix a bug that LTR's latency in L1 PM Substates capability and Latency
Tolerance Reporting capability isn't printed correctly.

Revision 1.130 / (download) - annotate - [select for diffs], Mon May 29 07:09:20 2017 UTC (6 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-8-base
Branch point for: netbsd-8
Changes since 1.129: +3 -3 lines
Diff to previous 1.129 (colored)

 Print MSI Message data in 32bits when the Extended Message Data Capable bit
is set.

Revision 1.129 / (download) - annotate - [select for diffs], Wed May 24 06:51:27 2017 UTC (6 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.128: +10 -3 lines
Diff to previous 1.128 (colored)

 Decode TPH Requester Control register.

Revision 1.113.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:22 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113.2.3: +183 -131 lines
Diff to previous 1.113.2.3 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored)

Sync with HEAD

Revision 1.119.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:51 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.119: +204 -129 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

Sync with HEAD

Revision 1.128 / (download) - annotate - [select for diffs], Fri Apr 21 09:01:52 2017 UTC (6 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.127: +3 -1 lines
Diff to previous 1.127 (colored)

 Add Flattening Portal Bridge capability ID and Hierarchy ID extended
capability ID.

Revision 1.127 / (download) - annotate - [select for diffs], Thu Apr 20 08:45:25 2017 UTC (6 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.126: +48 -1 lines
Diff to previous 1.126 (colored)

 Add Downstream Port Containment (DPC) ECN and Enhanced DPC(eDPC) ECN.

Revision 1.126 / (download) - annotate - [select for diffs], Mon Apr 17 09:33:00 2017 UTC (6 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.125: +4 -1 lines
Diff to previous 1.125 (colored)

 Use macro. No functional change.

Revision 1.125 / (download) - annotate - [select for diffs], Tue Mar 28 10:47:44 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: jdolecek-ncq-base, jdolecek-ncq
Changes since 1.124: +7 -7 lines
Diff to previous 1.124 (colored)

 Sort & indent. No functional change.

Revision 1.124 / (download) - annotate - [select for diffs], Tue Mar 28 10:25:11 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.123: +122 -122 lines
Diff to previous 1.123 (colored)

 Indent. No functional change.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Mar 28 10:23:40 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.122: +4 -4 lines
Diff to previous 1.122 (colored)

 Lowercase for consistency. No functional change.

Revision 1.113.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:37 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113.2.2: +24 -1 lines
Diff to previous 1.113.2.2 (colored) to branchpoint 1.113 (colored)

Sync with HEAD

Revision 1.122 / (download) - annotate - [select for diffs], Tue Mar 14 08:20:11 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.121: +3 -1 lines
Diff to previous 1.121 (colored)

Add two new PCI classes:
 - processing accelerators
 - non-essential instrumentation

Revision 1.121 / (download) - annotate - [select for diffs], Mon Feb 27 14:13:56 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.120: +21 -1 lines
Diff to previous 1.120 (colored)

 Decode AGP capability.

Revision 1.120 / (download) - annotate - [select for diffs], Wed Feb 15 06:53:55 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.119: +2 -1 lines
Diff to previous 1.119 (colored)

- Print Data Select and Data Scale in pci_conf_print_pcipm_cap().
- The Message Data register of MSI cap is not 32bit but 16bit.
- When the PCIE_LCAP_MAX_SPEED bitfiled is 0, it means it supports 2.5GT/s only.
- Print link de-emphasis value by "-X dB".
- Print Completion Timeout Ranges Supported filed with alphabets.
- Print TPH Completer Supported fileld's meaning.
- Print PCIE_DCAP2_MAX_EETLP correctly. 0 means 4 End-End TLP Prefixes.
- If the Supported Link Speed Vector is 0, the Link Capability 2 register is not
  implemented. Don't decode LCAP2 when the vector is 0.
- The ACS's Egress Control Vector is 32bit, so print with 0x%08x.
- Print SR-IOV's device ID.
- Use __SHIFTOUT() to avoid using magic number.
- Prefix "0x" for hexadecimal value.

Revision 1.100.2.8 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:45 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.100.2.7: +9 -6 lines
Diff to previous 1.100.2.7 (colored) to branchpoint 1.100 (colored)

Sync with HEAD

Revision 1.113.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:40 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113.2.1: +9 -6 lines
Diff to previous 1.113.2.1 (colored) to branchpoint 1.113 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.119 / (download) - annotate - [select for diffs], Wed Dec 28 06:57:27 2016 UTC (7 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.118: +6 -3 lines
Diff to previous 1.118 (colored)

 The Power Controller Control bit (PCIE_SLCSR_PCC) in the Slot Control & Status
Register is 0 on power on. Print "Power <on|off>" instead of "<on|off>".

Revision 1.118 / (download) - annotate - [select for diffs], Tue Dec 27 03:51:55 2016 UTC (7 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.117: +4 -4 lines
Diff to previous 1.117 (colored)

Fix PASID Control Register.

Revision 1.100.2.7 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:16 2016 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100.2.6: +23 -3 lines
Diff to previous 1.100.2.6 (colored) to branchpoint 1.100 (colored)

Sync with HEAD

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:15 2016 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.113: +23 -3 lines
Diff to previous 1.113 (colored)

Sync with HEAD

Revision 1.117 / (download) - annotate - [select for diffs], Mon Oct 31 05:10:45 2016 UTC (7 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204
Changes since 1.116: +11 -3 lines
Diff to previous 1.116 (colored)

Decode Resizable BAR.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Oct 20 04:11:02 2016 UTC (7 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.115: +8 -2 lines
Diff to previous 1.115 (colored)

- pci_conf_print_pwrbdgt_base_power(): From 0xf3 to 0xff of the Base power are
  reserved above 300W (PCI 3.0 Errata).
- Emergency Power Reduction mechanism with PWRBRK signal ECN.
- Extended Message Data for MSI ECN.
- Fix typo in comment.

Revision 1.115 / (download) - annotate - [select for diffs], Wed Oct 19 04:23:37 2016 UTC (7 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.114: +7 -1 lines
Diff to previous 1.114 (colored)

Add VF Resizable BARs ECN.

Revision 1.100.2.6 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:55 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100.2.5: +14 -1 lines
Diff to previous 1.100.2.5 (colored) to branchpoint 1.100 (colored)

Sync with HEAD

Revision 1.114 / (download) - annotate - [select for diffs], Wed Aug 17 06:32:01 2016 UTC (7 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20161004, localcount-20160914
Changes since 1.113: +14 -1 lines
Diff to previous 1.113 (colored)

Add Dynamic Power Allocation (DPA) ECN support.

Revision 1.100.2.5 / (download) - annotate - [select for diffs], Sun May 29 08:44:30 2016 UTC (7 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100.2.4: +35 -1 lines
Diff to previous 1.100.2.4 (colored) to branchpoint 1.100 (colored)

Sync with HEAD

Revision 1.113 / (download) - annotate - [select for diffs], Wed May 11 05:12:57 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529
Branch point for: pgoyette-localcount
Changes since 1.112: +35 -1 lines
Diff to previous 1.112 (colored)

Add Precision Time Management (PTM) ECN.

Revision 1.100.2.4 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:57 2015 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100.2.3: +609 -52 lines
Diff to previous 1.100.2.3 (colored) to branchpoint 1.100 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.112 / (download) - annotate - [select for diffs], Wed Nov 18 04:24:02 2015 UTC (8 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.111: +24 -2 lines
Diff to previous 1.111 (colored)

- Add the Auto Slot Power Limit Disable bit in Slot Control register and
  the Completion Timeout Prefix/Header Log Capable bit in the AER capability
  and control register (ECN: Downstream Port Containment (DPC)).
- Add the Poisoned TLP Egress Block bit (ECN: Enhanced DPC).
- Update Link Capabilities 2 register and Link Control 3 register (ECN:
  Separate Refclk Independent SSC Architecture (SRIS))
- ECN: Readiness Notifications (RN)
- Add the Retimer Presence Detect Supported bit in the Link Capabilities 2
  register and the Retimer Presence Detected bit in the Link Status 2 register
  (ECN: Extension Devices)

Revision 1.111 / (download) - annotate - [select for diffs], Tue Nov 17 18:26:50 2015 UTC (8 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.110: +12 -5 lines
Diff to previous 1.110 (colored)

- ARI's function group is not bit 32-24 but 22-20.
- Add the Structure Length field in AF capability register.
- Add Enhanced Allocation extended capability ID (ECN: Enhanced Allocation (EA)
  for Memory and I/O Resources).
- Add LN System CLS (ECN: Lightweight Notification (LN) Protocol).
- Add ST Upper and Lower bit definitions (ECN: TLP Processiong Hints).
- Add the Global Invalidate bit in the ATS capability register and the PRG
  Response PASID Required bit in the Page Request status register (ECN: PASID
  Translation)
- Decode ASPM support bit more (ECN: ASPM Optionally)
- Use __BITS()

Revision 1.110 / (download) - annotate - [select for diffs], Tue Nov 17 17:51:42 2015 UTC (8 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.109: +13 -15 lines
Diff to previous 1.109 (colored)

No functional change:
 - Add comments.
 - Remove obsolete comment.
 - Move definitions to better location.
 - Rename bit definition.
 - KNF.
 - Indent.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Nov 16 09:10:58 2015 UTC (8 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.108: +14 -12 lines
Diff to previous 1.108 (colored)

Define PCIE_XCAP_{VER,TYPE}(x) and use them.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Nov 12 12:17:59 2015 UTC (8 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.107: +12 -4 lines
Diff to previous 1.107 (colored)

- Restore pci_subr.c rev. 1.135's change in pci_conf_print_caplist().
  As wrote in the comment, HyperTransport capability appears multiple times.
  pci_conf_cap() reruns only the first entry, so it can't be used here.
- Try to decode HyperTransport capability. Currently, the capability type
  of each HyperTransport capability is printed and only the MSI Mapping
  capability is decoded.
- Style change.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Nov 12 12:08:13 2015 UTC (8 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.106: +18 -18 lines
Diff to previous 1.106 (colored)

 PCI_HT_CAP() is right shifted value, so PCI_HT_CAP_* should not use
__SHIFTIN(). This change fixes a bug that HyperTransport system misunderstand
whether MSI/MSI-X can be used or not.

Revision 1.57.20.3 / (download) - annotate - [select for diffs], Mon Nov 9 12:33:02 2015 UTC (8 years, 3 months ago) by sborrill
Branch: netbsd-5
Changes since 1.57.20.2: +3 -1 lines
Diff to previous 1.57.20.2 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

Pull up the following revisions(s) (requested by msaitoh in ticket #1983):
	sys/dev/pci/pcidevs:		revisions 1.1079, 1.1134, 1.1148-1.1149, 1.1151
	sys/dev/pci/pcidevs.h:		regen
	sys/dev/pci/pcidevs_data.h:	regen
	sys/dev/pci/if_bge.c:		revisions 1.183-1.185, 1.187, 1.189-1.193, 1.195-1.199, 1.202-1.226, 1.228-1.237, 1.240-1.264, 1.267-1.276, 1.278-1.280, 1.283-1.287 via patch
	sys/dev/pci/if_bgereg.h:	revisions 1.57-1.74, 1.76-1.90 via patch
	sys/dev/pci/if_bgevar.h:	revisions 1.6, 1.10-1.13, 1.15-1.17 via patch
	sys/dev/pci/if_bnx.c:		revisions 1.32, 1.34-1.43, 1.48-1.49, 1.52
	sys/dev/pci/if_bnxreg.h:	revisions 1.8, 1.11-1.14
	sys/dev/pci/if_bnxvar.h:	revisions 1.1-1.3
	sys/dev/mii/brgphy.c:		revisions 1.53-1.63, 1.65-69, 1.72-1.74 via patch
	sys/dev/mii/brgphyreg.h:	revisions 1.5-1.8
	sys/dev/mii/miivar.h:		revisions 1.61
	sys/dev/pci/pcireg.h:		patch

Sync bge(4) up to if_bge.c rev. 1.287. Sync brgphy(4) up to 1.74.
Fix some bugs on bnx(4).

Common:
- Add device IDs for Broadcom BCM57710, BCM57711(E), BCM57712(E) and
  BCM57766 (pcidevs only).
- Fix BCM5709 PHY detection.
- Fix detection of BGEPHYF_FIBER_{MII|TBI}
- Add BCM5708S support in brgphy(4).
- Don't use the WIRESPEED function for fiber devices.
bge(4):
- Add some Fujitsu's device support from Michael Moll.
- Add BCM57762 support (PR#46961 from Ryo Onodera).
- Add Altima AC1003, APPLE BCM5701, Broadcom BCM5785F. BCM5785G,
  BCM5787F, BCM5719, BCM5720, BCM57766, BCM57782 and BCM57786.
- Fix DMA setting for read/write on conventional PCI bus devices.
  This bug was added in rev. 1.166.
- Fix printing "discarding oversize frame (len=-4)" message and
  crash by NULL pointer dereferencing.
- The BCM5785 is a PCIe chip but does not report PCIe capabilities.
  Check for this chip explicitely and enable PCIe. Fixes
  'firmware handshake timeout'.
- Allow disabling interrupt mitigation.
- Workaround for BCM5906 silicon bug. When auto-negotiation results
  in half-duplex operation, excess collision on the ethernet link may
  cause internal chip delays that may result in subsequent valid
  frames being dropped due to insufficient receive buffer resources.
  (FreeBSD: r214219, r214251, r214292).
- Allow write DMA to request larger DMA burst size to get better
  performance on BCM5785. (FreeBSD r213333: OpenBSD 1.294)
- Enable TX MAC state machine lockup fix for both BCM5755 or higher
  and BCM5906. Publicly available data sheet just says it may happen
  due to corrupted TxMbuf. (FreeBSD r214216)
- Follow Broadcom datasheet:
  Delay 100 microseconds after enabling transmit MAC.
  Delay 10 microseconds after enabling receive MAC. (FreeBSD
  r241220)
- Insert the completion barrier between register write and the
  consecutive delay(). It will fix some device timeout problems we have
  seen before.
- Add DELAY(40) after turning on write DMA state machine.
- Add some workarounds for 5717 A0 and 5776[56] to be stable.
- Check BGE_RXBDFLAG_IPV6 flag for 5717_PLUS case. Note that
  {tcp,udp}6csum flag is currently not added in the capability.
- Add delay after clearing BGE_MACMODE_TBI_SEND_CFGS for the link
  checking.
- Do not touch the jumbo replenish threshold register on chips that do
  not have jumbo support.
- Wait for the bootcode to complete initialization for 5717 and newer
  devices.
- 5718 and 57785 document say we should wait 100us in init.
- Fix a bug that chips which have BCM5906 ASIC touch GPIO wrongly.
- Fix the setting of Tx Random Backoff Register.
- Check the hardware config words and print them.
- Set BGE_MISC_CTL's byte/word swap options before using
  bge_readmem_ind(). Fixes PR#47716.
- For BGE_IS_575X_PLUS() devices, don't set
  BGE_RXLPSTATCONTROL_DACK_FIX bits because these bits are reserved.
- Document says 5717 and newer chips have no
  BGE_PCISTATE_INTR_NOT_ACTIVE bit, so don't use the bit on those
  chips. Same as OpenBSD.
- Fix a bug that the PHY address bits in MI_MODE register is wrongly
  cleard. Set the PHY address correctly.
- Use BGE_SETBIT() instead of CSR_WRITE_4() for the BGE_MISC_LOCAL_CTL
  register to not to modify some GPIO bits.
- Set DMA watermark depend on the PCI max payload size.
- Set BGE_JUMBO_CAPABLE correctly.
- Fix a link detect bug on non-autopoll systems.
- Change the TX ring size for 5717 series and 57764 series.
- Set maximum read byte count to 2048 for PCI-X BCM5703/5704 devices.
- For PCI-X BCM5704, set maximum outstanding split transactions to 0.
- Add 40bit DMA bug workaround(BGEF_40BIT_BUG) from FreeBSD.
  This workaround is for 5714/5715 controllers and is not actually a
  MAC controller bug but an issue with the embedded PCIe to PCI-X
  bridge in the device. This change uses bus_dmatag_subregion(),
  so this workaround won't work on some archs which doesn't support
  bus_dmatag_subregion().
- Add 2500SX support (not tested).
- Don't use the PHY Auto Poll Mode on many chips. This fixes a bug
  that MII Fiber NIC drop packet about 50%. Tested on HP Moonshot.
- Add workaround for PR#48451. Some BCM5717-5720 based systems getNMI
  on boot. This problem doesn't occur when we don't use prefetchable
  memory in the APE area. Tested with HP MicroServer Gen8.
- In the BCM5703, the DMA read watermark should be set to less than
  or equal to the maximum memory read byte count of the PCI-X command
  register.
- Fix a bug that BGE_PHY_TEST_CTRL_REG isn't set correctly on some
  PCIe devices.
- Use another firmware command in bge_asf_driver_up(). Same as Linux.
  This change fixes a bug that watchdog timeout occurs every 25-30
  minutes on HP ML110 G6 reported enami@ in PR#49657.
- Fix mbuf leak on failure.
- Remove PCI_PRODUCT_BROADCOM_BCM5724 and
  PCI_PRODUCT_BROADCOM_BCM5750M. These devices have not released to
  public.
- Add some workaround code for BGE_ASICREV_BCM5784 from Linux.
- Change some printf() to aprint_*().
- Fix typo in comments.
- Cleanup.
brgphy(4):
- Fix bit definition of BRGPHY_MRBE_MSG_PG5_NP_T2 from FreeBSD.
- Add BCM5481, BCM5709S, BCM5756, BCM5717C, BCM5720C, BCM5785,
  BCM57765(PR#46961), BCM57780
- In brgphyattach(), set sc_isbge, sc_isbnx and sc_phyflags before
  PHY_RESET() because brgphy_reset() refers those flags.
- Call brgpy specific autonego function in MII_TICK. Before this
  commit, only MII_MEDIACHG calls brgphy_mii_phy_auto() and MII_TICK
  calls MI mii_phy_auto(). That was not intended.
- Remove extra delay in brgphy_mii_phy_auto. Same as {Free,Open}BSD.
bnx(4):
- Add missing ifmedia_delete_instance() in bnx_detach().
- Fix a bug that BNX_NO_WOL_FLAG isn't correctly set on some chips.
  Reported by From Henning Petersen in PR#44151.
- Fix SERDES initialization.
- Get out of the interrupt handler early if !IFF_RUNNING.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Oct 30 20:03:45 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.105: +4 -7 lines
Diff to previous 1.105 (colored)

 - Move PCI_INTRSTR_LEN from pcireg.h to pcivar.h.
 - In PCI-X cap, print 2nd bus's PCI-X mode, error protection type, Max clock
   frequency and Max clock period.
 - In SATA cap, print register location correctly.
 - In Virtual Channel cap, print reference clock with "ns".
 - In Root Complex Link Declaration, print Link Entry number.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Oct 21 12:54:59 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.104: +29 -2 lines
Diff to previous 1.104 (colored)

 Decode SATA Capability and Multicast Extendeded Capability.

Revision 1.104 / (download) - annotate - [select for diffs], Fri Oct 2 05:22:53 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.103: +498 -2 lines
Diff to previous 1.103 (colored)

PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific

Revision 1.100.2.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:59 2015 UTC (8 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100.2.2: +2 -1 lines
Diff to previous 1.100.2.2 (colored) to branchpoint 1.100 (colored)

Sync with HEAD

Revision 1.103 / (download) - annotate - [select for diffs], Mon Jul 27 15:46:03 2015 UTC (8 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.102: +2 -1 lines
Diff to previous 1.102 (colored)

 Add NVMe.

Revision 1.100.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:12 2015 UTC (8 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100.2.1: +7 -1 lines
Diff to previous 1.100.2.1 (colored) to branchpoint 1.100 (colored)

Sync with HEAD

Revision 1.102 / (download) - annotate - [select for diffs], Mon Apr 27 07:03:58 2015 UTC (8 years, 10 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.101: +7 -1 lines
Diff to previous 1.101 (colored)

add x86 MD MSI/MSI-X support code.

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:12 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.100: +10 -4 lines
Diff to previous 1.100 (colored)

Sync with HEAD

Revision 1.101 / (download) - annotate - [select for diffs], Mon Feb 23 04:16:17 2015 UTC (9 years ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.100: +10 -4 lines
Diff to previous 1.100 (colored)

- add macros to calculate MSI MME and MMC.
- add MSI-X table offset macros.
- fix MSI-X table entry name.

Revision 1.95.2.3 / (download) - annotate - [select for diffs], Sun Dec 14 16:49:35 2014 UTC (9 years, 2 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.95.2.2: +2 -1 lines
Diff to previous 1.95.2.2 (colored) to branchpoint 1.95 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #325):
	sys/dev/pci/pcireg.h: revision 1.100
	sys/dev/pci/pci_subr.c: revision 1.133
Add PCIe CRS Software Visibility bit.

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Fri Dec 12 19:03:17 2014 UTC (9 years, 2 months ago) by martin
Branch: netbsd-7
Changes since 1.95.2.1: +48 -7 lines
Diff to previous 1.95.2.1 (colored) to branchpoint 1.95 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #312):
	sys/dev/pci/pci_subr.c: revision 1.130
	sys/dev/pci/pci_subr.c: revision 1.131
	sys/dev/pci/pci_subr.c: revision 1.132
	sys/dev/pci/pcireg.h: revision 1.97
	sys/dev/pci/pcireg.h: revision 1.98
	sys/dev/pci/pcireg.h: revision 1.99
	sys/dev/pci/pci_subr.c: revision 1.127
	sys/dev/pci/pci_subr.c: revision 1.128
	sys/dev/pci/pci_subr.c: revision 1.129
 Always print the Slot implemented bit in the PCIe Capabilities
Register using with onoff().
- Add some PCI subclass and interfaces.
- The interface of PCI_SUBCLASS_BRIDGE_RACEWAY is not decoded yet.
- Fix typo in a message.
- Add comment.
- Modify comment.
s/genric/generic/
Add comment.
Fix typo in comment.
 Fix a bug that the specification revision of the Power Management function
was incorrectly printed in the output of capability "list".
The value is also printed in the detail output and it has no bug.
- Cleanup pci_conf_print_caplist. Use table. The reason why it loops twice
  is that some capabilities appear multiple times (e.g. HyperTransport cap).
- Print the specification revision of Power Management and AGP not in
  the capability list part but in the detail part.
 Add some HyperTransport related defines. It's required for the MSI.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Fri Dec 12 18:56:16 2014 UTC (9 years, 2 months ago) by martin
Branch: netbsd-7
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #311):
	sys/dev/pci/ppb.c: revision 1.53
	sys/dev/pci/ppb.c: revision 1.54
	sys/dev/pci/pcireg.h: revision 1.96
- Modify message of PCIe capability version. This field (PCIE_XCAP_VER_MASK)
  is not specification's version number but the capability structure's version
  number. To avoid confusion, print "PCI Express capability version x".
- The max number of PCIe lane is not 16 but 32. Fix the bug using with macro.
- Use macro instead of magic number.
- Gb/s -> GT/s
Rename PCIE_XCAP_VER_* macros to avoid confusion.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Nov 24 07:53:43 2014 UTC (9 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.99: +2 -1 lines
Diff to previous 1.99 (colored)

Add PCIe CRS Software Visibility bit.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Oct 23 13:45:41 2014 UTC (9 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.98: +30 -1 lines
Diff to previous 1.98 (colored)

 Add some HyperTransport related defines. It's required for the MSI.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Oct 23 09:57:37 2014 UTC (9 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

Add comment.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Oct 6 07:15:56 2014 UTC (9 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.96: +18 -6 lines
Diff to previous 1.96 (colored)

- Add some PCI subclass and interfaces.
- The interface of PCI_SUBCLASS_BRIDGE_RACEWAY is not decoded yet.
- Fix typo in a message.
- Add comment.
- Modify comment.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Sep 24 10:57:03 2014 UTC (9 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Rename PCIE_XCAP_VER_* macros to avoid confusion.

Revision 1.74.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:48 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.74.2.2: +322 -70 lines
Diff to previous 1.74.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:56 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.85: +318 -71 lines
Diff to previous 1.85 (colored) next main 1.86 (colored)

Rebase.

Revision 1.95 / (download) - annotate - [select for diffs], Mon Jun 9 11:08:05 2014 UTC (9 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.94: +3 -1 lines
Diff to previous 1.94 (colored)

Add IOMMU and the Root Complex Event Collector.

Revision 1.94 / (download) - annotate - [select for diffs], Fri May 30 03:42:38 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.93: +75 -27 lines
Diff to previous 1.93 (colored)

- Add PCI-X capability stuff.
- remove extra ':' in pci_conf_print_pcie_cap()
- Add comments.

Revision 1.93 / (download) - annotate - [select for diffs], Tue May 27 16:26:15 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.92: +6 -1 lines
Diff to previous 1.92 (colored)

- Add some register definition for MSI and MSI-X
- print MSI-X capability

Revision 1.92 / (download) - annotate - [select for diffs], Tue May 27 16:10:33 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.91: +3 -2 lines
Diff to previous 1.91 (colored)

- Fix incorrect calculation in PCI_MSIX_CTL_TBLSIZE().
- The PCI_MSIX_CTL_TBLSIZE bit field is in N-1, so add +1.

Revision 1.91 / (download) - annotate - [select for diffs], Sat May 24 18:06:21 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.90: +19 -2 lines
Diff to previous 1.90 (colored)

Print some PCI Capabilities:
- Vendor specific (ID:0x09)
- Debugport (ID:0x0a)
- Subsystem (ID:0x0d)
- PCI Advanced Features (ID:0x13)

Revision 1.90 / (download) - annotate - [select for diffs], Sat May 24 15:20:32 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.89: +58 -2 lines
Diff to previous 1.89 (colored)

- Decode the programming interface field in the Class Code register and print
  it.
- Print the cache line size in bytes.
- Print the Link Status 2 register itself.
- Some bits were not printed if the bit is 0. Always print them using with
  onoff() macro.
- Print more bits.
- KNF.
- Use macro.
- Add comments.

Revision 1.89 / (download) - annotate - [select for diffs], Fri May 23 18:32:13 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.88: +50 -9 lines
Diff to previous 1.88 (colored)

- Add some register definitions (subclass, power management, etc.)
- Print some information (subclass, power management)
- Use macro.

Revision 1.88 / (download) - annotate - [select for diffs], Fri May 23 17:54:08 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.87: +2 -1 lines
Diff to previous 1.87 (colored)

PME# clock is not bit 2 but bit 3. Use the macro!

Revision 1.87 / (download) - annotate - [select for diffs], Fri May 23 06:18:54 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.86: +120 -45 lines
Diff to previous 1.86 (colored)

No functional change:
- sort in PCI capability ID order.
- add comments.

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:33 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.73.2.1: +232 -125 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored)

sync with head.

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

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.84.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:44 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.84: +7 -1 lines
Diff to previous 1.84 (colored) next main 1.85 (colored)

sync with head

Revision 1.86 / (download) - annotate - [select for diffs], Fri May 9 14:51:26 2014 UTC (9 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.85: +2 -1 lines
Diff to previous 1.85 (colored)

Print the CRS Software Visibility Enable bit and the Crosslink Supported bit.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Mar 29 19:28:25 2014 UTC (9 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.84: +6 -1 lines
Diff to previous 1.84 (colored)

make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.

Revision 1.57.26.2 / (download) - annotate - [select for diffs], Sat Feb 15 03:22:27 2014 UTC (10 years ago) by matt
Branch: matt-nb5-mips64
Changes since 1.57.26.1: +227 -114 lines
Diff to previous 1.57.26.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored)

sync pcireg.h with HEAD.
update if_wm.c and ppb.c accordingly.

Revision 1.73.8.1 / (download) - annotate - [select for diffs], Mon Aug 5 10:09:53 2013 UTC (10 years, 6 months ago) by martin
Branch: netbsd-6
Changes since 1.73: +134 -16 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Pullup

sys/dev/pci/pcireg.h            1.74-1.82 and 1.84 via patch
sys/dev/pci/pci_subr.c          1.92-1.102, 1.104-1.105 via patch

	Add some PCI(e) register and bit definitions in pcireg.h.
	Fix the definition of PCI_PCIE_SLCAP_PSN.
	Fix a bug that IRQ(MSI) bits in PCIe capability register is incorrectly
	decoded.
	Print more registers in "pcictl dump".
	Fix bug in comment.

Requested by msaitoh in ticket #928

Revision 1.74.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:21 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.74.2.1: +226 -125 lines
Diff to previous 1.74.2.1 (colored)

resync from head

Revision 1.57.20.2 / (download) - annotate - [select for diffs], Sat May 11 22:34:38 2013 UTC (10 years, 9 months ago) by riz
Branch: netbsd-5
Changes since 1.57.20.1: +12 -1 lines
Diff to previous 1.57.20.1 (colored) to branchpoint 1.57 (colored)

Applied patch (requested by msaitoh in ticket #1844):

sys/dev/pci/pcireg.h			1.69
sys/dev/pci/ppb.c			1.44-1.45

	Support PCI Express 2.0.
	Print version and device/port type information
	[msaitoh, ticket #1844]

Revision 1.84 / (download) - annotate - [select for diffs], Sun Apr 21 23:46:06 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.83: +168 -132 lines
Diff to previous 1.83 (colored)

- Add some PCIe 2.0 or higher capability register definitions.
- Rename some registers.
- Add comments.
- Indent.

Revision 1.83 / (download) - annotate - [select for diffs], Sun Apr 21 19:59:41 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.82: +185 -185 lines
Diff to previous 1.82 (colored)

Delete "PCI_" from PCIX and PICE capability registers.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Apr 17 06:31:15 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.81: +9 -2 lines
Diff to previous 1.81 (colored)

- Add slot related registers
- Add root port related registers
- Fix the definition of PCI_PCIE_SLCAP_PSN
- Cleanup

Revision 1.81 / (download) - annotate - [select for diffs], Wed Apr 17 04:36:27 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored)

Add PCI_CAP_SUBVENDOR (= 0x0d).

Revision 1.80 / (download) - annotate - [select for diffs], Tue Apr 16 15:50:57 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.79: +5 -2 lines
Diff to previous 1.79 (colored)

Decode some PCIe capability register bits.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Apr 16 09:13:04 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

 Fix a bug that IRQ(MSI) bits in PCIe capability register is incorrectly
decoded. The bit field is not 0x4e000000 but 0x3e000000.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Apr 15 18:48:36 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.77: +58 -6 lines
Diff to previous 1.77 (colored)

Add some PCIE capability register bit definitions from FreeBSD.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Apr 12 03:32:28 2013 UTC (10 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.76: +11 -11 lines
Diff to previous 1.76 (colored)

Add comments for some PCI Express  Capability registers.

Revision 1.76 / (download) - annotate - [select for diffs], Sun Mar 3 20:10:47 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

Add PCI Express's relax ordering bit.

Revision 1.73.10.1 / (download) - annotate - [select for diffs], Wed Nov 28 22:31:47 2012 UTC (11 years, 3 months ago) by matt
Branch: matt-nb6-plus
Changes since 1.73: +13 -1 lines
Diff to previous 1.73 (colored) next main 1.74 (colored)

Add LCSR definitions and NVM storage subclass.

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:28 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:51 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.73: +13 -1 lines
Diff to previous 1.73 (colored)

sync with head

Revision 1.75 / (download) - annotate - [select for diffs], Sat Oct 20 00:33:36 2012 UTC (11 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, matt-nb6-plus-nbase
Changes since 1.74: +2 -1 lines
Diff to previous 1.74 (colored)

Add PCI_SUBCLASS_MASS_STORAGE_NVM

Revision 1.74 / (download) - annotate - [select for diffs], Sun Sep 2 06:29:56 2012 UTC (11 years, 5 months ago) by matt
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.73: +12 -1 lines
Diff to previous 1.73 (colored)

Finish devices the bits in PCIE capability LCSR field.

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

Pull down latest from -HEAD.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Aug 17 00:59:47 2011 UTC (12 years, 6 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-base, 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-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, matt-nb6-plus
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 (12 years, 8 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 (12 years, 8 months 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 (12 years, 8 months 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 (12 years, 8 months 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 (12 years, 10 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 (12 years, 10 months 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 (12 years, 11 months 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 (13 years 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 (13 years, 1 month 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 (13 years, 1 month 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 (13 years, 1 month 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.20.2 (colored)

Add/define some MSI support

Revision 1.68 / (download) - annotate - [select for diffs], Sat Dec 11 18:17:39 2010 UTC (13 years, 2 months 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 (13 years, 3 months ago) by riz
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, matt-nb5-pq3-base
Branch point for: matt-nb5-pq3
Changes since 1.57: +49 -1 lines
Diff to previous 1.57 (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 (13 years, 6 months 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 (13 years, 9 months 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 (13 years, 10 months 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 (13 years, 11 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 (13 years, 11 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 (14 years 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 (14 years 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 (14 years 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 (14 years 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 (14 years, 1 month 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 (14 years, 5 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 (14 years, 5 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 (14 years, 6 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 (14 years, 6 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 (14 years, 9 months 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 (15 years, 1 month 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 (15 years, 1 month 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 (15 years, 1 month 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 (15 years, 1 month 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 (16 years 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 (16 years, 1 month 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 (16 years, 1 month 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 (16 years, 1 month 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 (16 years, 2 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 (16 years, 2 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-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, 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 (16 years, 2 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 (16 years, 2 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 (16 years, 2 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 (16 years, 3 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 (16 years, 3 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 (16 years, 3 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 (16 years, 3 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 (16 years, 3 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 (16 years, 3 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 (16 years, 5 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 (16 years, 5 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 (16 years, 5 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 (16 years, 7 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 (16 years, 7 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 (16 years, 9 months 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 (16 years, 9 months 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 (16 years, 9 months 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 (17 years 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 (17 years 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 (17 years, 1 month 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 (17 years, 2 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 (17 years, 2 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 (17 years, 3 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 (17 years, 3 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 (17 years, 5 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 (17 years, 7 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 (17 years, 8 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 (17 years, 8 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 (17 years, 8 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 (17 years, 8 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 (17 years, 9 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 (17 years, 9 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 (17 years, 10 months 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 (18 years 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 (18 years 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 (18 years 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 (18 years, 2 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 (19 years, 5 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 (19 years, 5 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 (19 years, 6 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 (19 years, 7 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, 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 (20 years 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 (20 years, 3 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 (20 years, 4 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 (20 years, 9 months 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 (20 years, 10 months 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 (20 years, 11 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 (21 years, 4 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 (21 years, 4 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 (21 years, 5 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 (21 years, 5 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 (21 years, 7 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 (21 years, 8 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 (21 years, 8 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 (21 years, 8 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 (21 years, 11 months 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 (21 years, 11 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 (22 years, 4 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 (22 years, 5 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 (22 years, 5 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 (22 years, 6 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, 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 (22 years, 6 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 (22 years, 7 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 (22 years, 11 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 (23 years 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 (23 years 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 (23 years 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 (23 years, 3 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 (23 years, 4 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 (23 years, 5 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 (23 years, 6 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 (23 years, 6 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 (23 years, 7 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 (23 years, 8 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 (23 years, 8 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 (23 years, 9 months 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 (23 years, 9 months 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 (23 years, 9 months 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 (23 years, 10 months 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 (24 years, 1 month 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 (24 years, 2 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 (24 years, 3 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 (24 years, 3 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 (24 years, 5 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 (25 years, 2 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 (25 years, 3 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 (25 years, 6 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 (25 years, 9 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 (25 years, 9 months 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 (25 years, 10 months 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 (26 years, 10 months 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 (26 years, 11 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 (27 years, 2 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 (27 years, 6 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 (27 years, 6 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 (27 years, 7 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 (27 years, 7 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 (27 years, 11 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 (27 years, 11 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 (28 years 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 (28 years, 7 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 (28 years, 8 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 (29 years, 4 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 (29 years, 6 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>