The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.244: download - view: text, markup, annotated - select for diffs
Fri Apr 19 21:24:00 2024 UTC (7 months, 2 weeks ago) by andvar
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.243: preferred, colored
Changes since revision 1.243: +4 -4 lines
s/Resorce/Resource/ in comment and log message.

Revision 1.243: download - view: text, markup, annotated - select for diffs
Thu Aug 10 20:02:56 2023 UTC (15 months, 3 weeks ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.242: preferred, colored
Changes since revision 1.242: +3 -3 lines
fix typos in comments.

Revision 1.242: download - view: text, markup, annotated - select for diffs
Tue Feb 1 01:28:26 2022 UTC (2 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.241: preferred, colored
Changes since revision 1.241: +7 -7 lines
Fix typo. Found by rillig. s/vendor specific/vendor-specific/

Revision 1.241: download - view: text, markup, annotated - select for diffs
Mon Jan 31 10:14:55 2022 UTC (2 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.240: preferred, colored
Changes since revision 1.240: +19 -7 lines
Decode SCSI programming interface. Whitespace fix.

Revision 1.240: download - view: text, markup, annotated - select for diffs
Mon Jan 31 10:11:33 2022 UTC (2 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +8 -2 lines
Add three new extended capabilities:

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

Revision 1.183.2.14: download - view: text, markup, annotated - select for diffs
Sat Jan 29 17:11:22 2022 UTC (2 years, 10 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.183.2.13: preferred, colored; branchpoint 1.183: preferred, colored; next MAIN 1.184: preferred, colored
Changes since revision 1.183.2.13: +221 -7 lines
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.215.2.6: download - view: text, markup, annotated - select for diffs
Sat Jan 29 17:08:33 2022 UTC (2 years, 10 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE
Diff to: previous 1.215.2.5: preferred, colored; branchpoint 1.215: preferred, colored; next MAIN 1.216: preferred, colored
Changes since revision 1.215.2.5: +221 -7 lines
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.239: download - view: text, markup, annotated - select for diffs
Sat Jan 8 12:59:34 2022 UTC (2 years, 10 months ago) by tnn
Branches: MAIN
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +4 -4 lines
place additional parens around multiline string constant to appease clang

Revision 1.238: download - view: text, markup, annotated - select for diffs
Fri Jan 7 06:57:57 2022 UTC (2 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +11 -11 lines
Two fixes:

  - Fix previous again. The missing comma is intended to split the long line.
  - Add missing right parenthesis.

Revision 1.237: download - view: text, markup, annotated - select for diffs
Fri Jan 7 05:17:38 2022 UTC (2 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +3 -3 lines
Add missing comma. Found by tnn@.

Revision 1.236: download - view: text, markup, annotated - select for diffs
Sat Jan 1 03:27:53 2022 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +191 -12 lines
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.235: download - view: text, markup, annotated - select for diffs
Tue Dec 28 09:19:02 2021 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +3 -3 lines
%hhx -> %x

Revision 1.234: download - view: text, markup, annotated - select for diffs
Tue Dec 28 09:16:05 2021 UTC (2 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +39 -4 lines
Decode link control2's Compliance Preset/De-emphasis more. Fix typo.

Revision 1.183.2.13: download - view: text, markup, annotated - select for diffs
Fri Dec 3 19:45:13 2021 UTC (3 years ago) by martin
Branches: netbsd-8
Diff to: previous 1.183.2.12: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.12: +139 -67 lines
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.215.2.5: download - view: text, markup, annotated - select for diffs
Fri Dec 3 19:40:38 2021 UTC (3 years ago) by martin
Branches: netbsd-9
Diff to: previous 1.215.2.4: preferred, colored; branchpoint 1.215: preferred, colored
Changes since revision 1.215.2.4: +49 -24 lines
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.233: download - view: text, markup, annotated - select for diffs
Fri Dec 3 13:27:38 2021 UTC (3 years ago) by andvar
Branches: MAIN
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +3 -3 lines
fix various typos in comments, log messages and documentation.

Revision 1.232: download - view: text, markup, annotated - select for diffs
Sun Oct 10 23:28:36 2021 UTC (3 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +9 -9 lines
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.231: download - view: text, markup, annotated - select for diffs
Sun Oct 10 07:20:01 2021 UTC (3 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +31 -6 lines
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.230: download - view: text, markup, annotated - select for diffs
Sat Sep 11 19:56:51 2021 UTC (3 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +5 -3 lines
add 32.0GT/s to the list of pcie speeds (PCIe 5.x.)

Revision 1.229: download - view: text, markup, annotated - select for diffs
Tue Aug 17 22:00:31 2021 UTC (3 years, 3 months ago) by andvar
Branches: MAIN
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +6 -6 lines
fix multiplei repetitive typos in comments, messages and documentation. mainly because copy paste code big amount of files are affected.

Revision 1.228: download - view: text, markup, annotated - select for diffs
Tue Aug 17 17:16:40 2021 UTC (3 years, 3 months ago) by andvar
Branches: MAIN
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +3 -3 lines
s/Windw/Window/ in log message.

Revision 1.225.4.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:25 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225: +5 -5 lines
Sync with HEAD.

Revision 1.227: download - view: text, markup, annotated - select for diffs
Mon Jul 12 04:41:14 2021 UTC (3 years, 4 months ago) by msaitoh
Branches: 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
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +4 -4 lines
s/Precision Time Management/Precision Time Measurement/

Revision 1.226: download - view: text, markup, annotated - select for diffs
Tue Jun 29 21:03:36 2021 UTC (3 years, 5 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +3 -3 lines
Rework the xxxVERBOSE option to share the common module-hook-based
verbose mechanism with MIIVERBOSE.  This reduces some duplicated code
and allows us to once again permit auto-unload of MIIVERBOSE.

Change details:
* Update dev/devlist2h.awk to accomodate miidevs, including generation
  of MII_STR_oui_model definitions and use of oui and model rather than
  vendor and product.  This also changes the compressed data in the
  xxxdevs_data.h files to uint32_t (since mii oui's are up to 6 hex
  digits long)
* Update a couple of phy drivers to use new calls to get verbose data
* Regen all of the xxxdevs{,_data}.h files (separate commit, coming
  very soon)
* Update mii/mii_verbose.[ch] and mii/mii_physubr.c to use the various
  DEV_VERBOSE_xxx macros
* Update the pci, usb, and hdaudio code as needed, to #include the
  xxxdevs.h files (in order to get the proper printf format strings)
* Since dev/dev_verbose.c now uses non-literal printf format strings,
  (to deal with the vendor/product vs oui/model issue), we need to
  make sure it gets compiled with -Wno-error=format-nonliteral, even
  in userland's libpci and librumpdev!
* Bump kernel version for the change in module interfaces

Welcome to 9.99.86!

XXX It might be useful in the future to extend the MII_STR_oui_model
XXX definitions to PCI as well (and perhaps USB and HDAUDIO).  This
XXX would allow for a single centralized location for the products'
XXX descriptions, rather than being dispersed among individual
XXX drivers' xxx_match tables.

Revision 1.224.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:46 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.224: preferred, colored; next MAIN 1.225: preferred, colored
Changes since revision 1.224: +46 -2 lines
Sync with HEAD.

Revision 1.225: download - view: text, markup, annotated - select for diffs
Wed Jan 27 05:00:15 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +46 -2 lines
Introduce autoconfiguration helpers based around device_compatible_entry:
- pci_compatible_match(): matches against the PCI ID.
- pci_compatible_match_subsys(): matches against PCI SUBSYS ID.
- pci_compatible_lookup(): look up entry by PCI ID.
- pci_compatible_lookup_subsys(): look up entry by PCI SUBSYS ID.
- pci_compatible_lookup_id(): look up entry by an arbitrary ID using the
  PCI ID code conventions.

- Define PCI_COMPAT_EOL as a compat data array sentinel.

Revision 1.215.2.4: download - view: text, markup, annotated - select for diffs
Sun Jul 26 10:46:14 2020 UTC (4 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.215.2.3: preferred, colored; branchpoint 1.215: preferred, colored
Changes since revision 1.215.2.3: +18 -4 lines
Pull up following revision(s) (requested by jdolecek in ticket #1024):

	sys/dev/pci/pci_subr.c: revision 1.224

change pci_conf_print() to allocate memory for the regs dynamically
instead of on-stack

Revision 1.224: download - view: text, markup, annotated - select for diffs
Sat May 30 10:43:46 2020 UTC (4 years, 6 months ago) by jdolecek
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +18 -4 lines
change pci_conf_print() to allocate memory for the regs dynamically
instead of on-stack

Revision 1.222.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 20 11:29:04 2020 UTC (4 years, 7 months ago) by bouyer
Branches: bouyer-xenpvh
Diff to: previous 1.222: preferred, colored; next MAIN 1.223: preferred, colored
Changes since revision 1.222: +180 -179 lines
Sync with HEAD

Revision 1.201.2.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:27 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.201.2.1: preferred, colored; branchpoint 1.201: preferred, colored; next MAIN 1.202: preferred, colored
Changes since revision 1.201.2.1: +284 -250 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.223: download - view: text, markup, annotated - select for diffs
Fri Apr 10 18:32:00 2020 UTC (4 years, 7 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +180 -179 lines
Fix all the random __SHIFTOUT casts by introducing an intermediate macho,
and then deleting and fixing the rest.

Revision 1.222: download - view: text, markup, annotated - select for diffs
Sat Mar 21 17:09:29 2020 UTC (4 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +3 -5 lines
When parsing Enhanced Allocation entries, use the correct calulation for
finding the next entry.

Revision 1.215.2.3: download - view: text, markup, annotated - select for diffs
Thu Mar 19 19:05:34 2020 UTC (4 years, 8 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.215.2.2: preferred, colored; branchpoint 1.215: preferred, colored
Changes since revision 1.215.2.2: +31 -5 lines
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.218.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 25 22:38:47 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.218.2.1: preferred, colored; branchpoint 1.218: preferred, colored; next MAIN 1.219: preferred, colored
Changes since revision 1.218.2.1: +31 -5 lines
Sync with head.

Revision 1.221: download - view: text, markup, annotated - select for diffs
Sat Jan 25 08:13:39 2020 UTC (4 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +25 -4 lines
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.220: download - view: text, markup, annotated - select for diffs
Sat Jan 25 07:59:14 2020 UTC (4 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +8 -3 lines
- Print Bridge Config Retry Enable bit and Retimer Presence Detect Supported
  bit.
- Avoid using magic number.

Revision 1.215.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 21 15:15:23 2020 UTC (4 years, 10 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Diff to: previous 1.215.2.1: preferred, colored; branchpoint 1.215: preferred, colored
Changes since revision 1.215.2.1: +43 -36 lines
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.218.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 17 21:47:31 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +42 -35 lines
Sync with head.

Revision 1.219: download - view: text, markup, annotated - select for diffs
Fri Jan 17 02:08:25 2020 UTC (4 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: ad-namecache-base1
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +42 -35 lines
 Fix a bug that the virtual channel extended configuraton's arbitration phase
register can't be decoded correcty. Found by jmcneill.

Revision 1.218: download - view: text, markup, annotated - select for diffs
Wed Dec 11 07:33:55 2019 UTC (4 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +3 -3 lines
s/enalbe/enable/

Revision 1.215.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 26 18:52:57 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-0-RC1
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +36 -37 lines
Pull up following revision(s) (requested by msaitoh in ticket #243):

	sys/dev/pci/pci_subr.c: revision 1.216
	sys/dev/pci/pci_subr.c: revision 1.217

Whitespace fixes. No functional change.

 -

Print some DPC register values not with %04x but with %08x because those
are 32bit.

Revision 1.183.2.12: download - view: text, markup, annotated - select for diffs
Thu Sep 26 18:14:54 2019 UTC (5 years, 2 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-2-RELEASE
Diff to: previous 1.183.2.11: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.11: +44 -37 lines
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.217: download - view: text, markup, annotated - select for diffs
Fri Sep 20 10:04:45 2019 UTC (5 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +7 -7 lines
 Print some DPC register values not with %04x but with %08x because those
are 32bit.

Revision 1.216: download - view: text, markup, annotated - select for diffs
Wed Aug 21 02:10:20 2019 UTC (5 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +31 -32 lines
 Whitespace fixes. No functional change.

Revision 1.215: download - view: text, markup, annotated - select for diffs
Thu Jul 18 07:49:26 2019 UTC (5 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +4 -4 lines
 Remove whitespace for consistency.

Revision 1.183.2.11: download - view: text, markup, annotated - select for diffs
Wed Jul 17 15:55:31 2019 UTC (5 years, 4 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.183.2.10: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.10: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #1295):

	sys/dev/pci/pci_subr.c: revision 1.213
	sys/dev/pci/ppb.c: revision 1.69

Identify 16GT/s.

Revision 1.183.2.10: download - view: text, markup, annotated - select for diffs
Wed Jul 17 15:34:31 2019 UTC (5 years, 4 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.183.2.9: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.9: +7 -4 lines
Pull up following revision(s) (requested by msaitoh in ticket #1292):

	sys/dev/pci/pci_subr.c: revision 1.211
	sys/dev/pci/pci_subr.c: revision 1.214

Typo (s/vaule/value/)
Print extend capability from 0x25 to 0x29 correctly.

Revision 1.214: download - view: text, markup, annotated - select for diffs
Tue Jul 9 12:17:13 2019 UTC (5 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +5 -2 lines
 Print extend capability from 0x25 to 0x29 correctly.

Revision 1.213: download - view: text, markup, annotated - select for diffs
Tue Jul 9 12:13:42 2019 UTC (5 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +3 -3 lines
Identify 16GT/s.

Revision 1.201.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:17 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +231 -61 lines
Sync with HEAD

Revision 1.212: download - view: text, markup, annotated - select for diffs
Fri Mar 1 09:26:00 2019 UTC (5 years, 9 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +34 -32 lines
- 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.211: download - view: text, markup, annotated - select for diffs
Thu Feb 28 16:56:35 2019 UTC (5 years, 9 months ago) by khorben
Branches: MAIN
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +4 -4 lines
Typo (s/vaule/value/)

Revision 1.200.2.6: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:01:50 2018 UTC (5 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.200.2.5: preferred, colored; branchpoint 1.200: preferred, colored; next MAIN 1.201: preferred, colored
Changes since revision 1.200.2.5: +8 -13 lines
Sync with HEAD, resolve a few conflicts

Revision 1.183.2.9: download - view: text, markup, annotated - select for diffs
Tue Dec 4 11:29:41 2018 UTC (6 years ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.183.2.8: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.8: +170 -15 lines
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.210: download - view: text, markup, annotated - select for diffs
Fri Nov 30 10:18:37 2018 UTC (6 years ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +4 -7 lines
 Add new PCIE_HAS_LINKREGS(pcie_devtype) and use it. No functional change.

Revision 1.209: download - view: text, markup, annotated - select for diffs
Fri Nov 30 09:05:35 2018 UTC (6 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +6 -7 lines
 Add new macro PCIE_HAS_ROOTREGS(pcie_devtype) and use it. No functional
change.

Revision 1.208: download - view: text, markup, annotated - select for diffs
Fri Nov 30 08:19:45 2018 UTC (6 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +2 -3 lines
 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  |
--------------------------------------

Revision 1.200.2.5: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:32 2018 UTC (6 years ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.200.2.4: preferred, colored; branchpoint 1.200: preferred, colored
Changes since revision 1.200.2.4: +164 -4 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.207: download - view: text, markup, annotated - select for diffs
Mon Nov 5 03:51:31 2018 UTC (6 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-1126
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +164 -4 lines
 Decode PCI Enhanced Allocation.

Revision 1.183.2.8: download - view: text, markup, annotated - select for diffs
Tue Oct 30 09:32:32 2018 UTC (6 years, 1 month ago) by sborrill
Branches: netbsd-8
Diff to: previous 1.183.2.7: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.7: +21 -7 lines
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.200.2.4: download - view: text, markup, annotated - select for diffs
Sat Oct 20 06:58:31 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.200.2.3: preferred, colored; branchpoint 1.200: preferred, colored
Changes since revision 1.200.2.3: +9 -7 lines
Sync with head

Revision 1.206: download - view: text, markup, annotated - select for diffs
Thu Oct 4 07:43:12 2018 UTC (6 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-1020
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +4 -4 lines
 Don't print extra newline if the PCI extended configuration space doesn't exist.

Revision 1.205: download - view: text, markup, annotated - select for diffs
Wed Oct 3 06:46:09 2018 UTC (6 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +7 -5 lines
- 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.200.2.3: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:51 2018 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.200.2.2: preferred, colored; branchpoint 1.200: preferred, colored
Changes since revision 1.200.2.2: +15 -2 lines
Ssync with HEAD

Revision 1.204: download - view: text, markup, annotated - select for diffs
Thu Sep 27 07:09:29 2018 UTC (6 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-0930
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +14 -2 lines
Root Complex Event Collector Bus Number Association ECN.
- If capability version is 2 (or greater), decode RCEC Associated Bus Numbers
  register.

Revision 1.183.2.7: download - view: text, markup, annotated - select for diffs
Sun Sep 23 17:40:37 2018 UTC (6 years, 2 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.183.2.6: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.6: +3 -2 lines
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.203: download - view: text, markup, annotated - select for diffs
Wed Sep 12 07:42:22 2018 UTC (6 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +3 -2 lines
 Add ATS Relaxed Ordering supported bit described in Address Translation
Relaxed Ordering ECN.

Revision 1.200.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:46 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.200.2.1: preferred, colored; branchpoint 1.200: preferred, colored
Changes since revision 1.200.2.1: +9 -11 lines
Sync with HEAD

Revision 1.183.2.6: download - view: text, markup, annotated - select for diffs
Thu Jul 26 23:11:59 2018 UTC (6 years, 4 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.183.2.5: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.5: +9 -11 lines
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.183.2.5: download - view: text, markup, annotated - select for diffs
Thu Jul 26 21:07:19 2018 UTC (6 years, 4 months ago) by snj
Branches: netbsd-8
Diff to: previous 1.183.2.4: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.4: +3 -3 lines
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.202: download - view: text, markup, annotated - select for diffs
Tue Jul 3 04:56:59 2018 UTC (6 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +9 -11 lines
- Print Power Management Control/status register in 32bit.
- Simplify.

Revision 1.200.2.1: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:06 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +3 -3 lines
Sync with HEAD

Revision 1.201: download - view: text, markup, annotated - select for diffs
Wed May 9 03:50:51 2018 UTC (6 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +3 -3 lines
 Fix typo. s/TPL/TLP/

Revision 1.183.2.4: download - view: text, markup, annotated - select for diffs
Mon Feb 26 00:56:29 2018 UTC (6 years, 9 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.183.2.3: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.3: +85 -53 lines
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.200: download - view: text, markup, annotated - select for diffs
Thu Feb 1 09:09:14 2018 UTC (6 years, 10 months ago) by msaitoh
Branches: 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
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +22 -5 lines
- Add PCie Link Activation ECN.
- Use macro.
- KNF.

Revision 1.199: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:18:47 2018 UTC (6 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +55 -48 lines
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.

Revision 1.198: download - view: text, markup, annotated - select for diffs
Thu Feb 1 02:50:51 2018 UTC (6 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +3 -3 lines
 "s/above 300W/greater than 300W/" in pci_conf_print_pcie_power(). From
PCIe Base Spec 3.1a Errata 2017-12-13.

Revision 1.197: download - view: text, markup, annotated - select for diffs
Mon Dec 18 04:48:28 2017 UTC (6 years, 11 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +12 -4 lines
 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.92.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:08 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.92.2.3: preferred, colored; branchpoint 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92.2.3: +2778 -571 lines
update from HEAD

Revision 1.183.2.3: download - view: text, markup, annotated - select for diffs
Wed Nov 22 14:38:47 2017 UTC (7 years ago) by martin
Branches: netbsd-8
Diff to: previous 1.183.2.2: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.2: +11 -10 lines
Pull up following revision(s) (requested by msaitoh in ticket #371):
	sys/dev/pci/pci_subr.c: revision 1.195
	sys/dev/pci/pci_subr.c: revision 1.196
  Print Error Source Identification register correctly.
  Whitespace fix.

Revision 1.183.2.2: download - view: text, markup, annotated - select for diffs
Tue Nov 21 14:16:38 2017 UTC (7 years ago) by martin
Branches: netbsd-8
Diff to: previous 1.183.2.1: preferred, colored; branchpoint 1.183: preferred, colored
Changes since revision 1.183.2.1: +143 -17 lines
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.196: download - view: text, markup, annotated - select for diffs
Wed Oct 25 08:21:41 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +9 -9 lines
 Whitespace fix.

Revision 1.195: download - view: text, markup, annotated - select for diffs
Tue Oct 24 08:32:41 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +4 -3 lines
 Print Error Source Identification register correctly.

Revision 1.194: download - view: text, markup, annotated - select for diffs
Thu Oct 19 05:52:57 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +13 -9 lines
 Fix a bug that the TPH ST table is decoded even if it's not in the TPH
Requester extended capability structure.

Revision 1.193: download - view: text, markup, annotated - select for diffs
Thu Oct 12 02:40:34 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +8 -7 lines
IOMMU cap dump fixes:
- Print Capability Register's value.
- Indent output correctly.
- s/cahced/cached/
- Print MSI Message number with 0x%02x

Revision 1.192: download - view: text, markup, annotated - select for diffs
Tue Oct 10 03:11:01 2017 UTC (7 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +87 -4 lines
 Decode IOMMU capability of PCI secure device capability. From "AMD I/O
Virtualization Technology(IOMMU) Specification (#48882) Revision 3.00".

Revision 1.191: download - view: text, markup, annotated - select for diffs
Thu Oct 5 06:14:30 2017 UTC (7 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +43 -5 lines
- 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.133.2.8: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:52:06 2017 UTC (7 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.133.2.7: preferred, colored; branchpoint 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133.2.7: +693 -309 lines
Sync with HEAD

Revision 1.190: download - view: text, markup, annotated - select for diffs
Thu Jul 13 08:41:19 2017 UTC (7 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +5 -5 lines
- Official shortname of LN Requester is LNR, so change PCI_EXTCAP_LN_REQ
  to PCI_EXTCAP_LNR
- Use macro.

Revision 1.183.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 4 14:35:21 2017 UTC (7 years, 5 months ago) by martin
Branches: netbsd-8
CVS tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +83 -51 lines
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.189: download - view: text, markup, annotated - select for diffs
Thu Jun 15 15:38:18 2017 UTC (7 years, 5 months ago) by flxd
Branches: MAIN
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +8 -8 lines
Fix printf format/argument.

Revision 1.188: download - view: text, markup, annotated - select for diffs
Thu Jun 15 06:51:18 2017 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +11 -14 lines
 Fix a bug that LTR's latency in L1 PM Substates capability and Latency
Tolerance Reporting capability isn't printed correctly.

Revision 1.187: download - view: text, markup, annotated - select for diffs
Thu Jun 15 05:42:27 2017 UTC (7 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +42 -31 lines
 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.

Revision 1.186: download - view: text, markup, annotated - select for diffs
Thu Jun 8 03:39:18 2017 UTC (7 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +15 -8 lines
 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

Revision 1.185: download - view: text, markup, annotated - select for diffs
Wed Jun 7 05:30:49 2017 UTC (7 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +21 -5 lines
 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

Revision 1.184: download - view: text, markup, annotated - select for diffs
Mon Jun 5 13:35:33 2017 UTC (7 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +3 -2 lines
 Add missing return to print the Slot Power Limit Value correctly.

Revision 1.183: download - view: text, markup, annotated - select for diffs
Mon May 29 07:09:20 2017 UTC (7 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: netbsd-8-base
Branch point for: netbsd-8
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +7 -3 lines
 Print MSI Message data in 32bits when the Extended Message Data Capable bit
is set.

Revision 1.182: download - view: text, markup, annotated - select for diffs
Wed May 24 06:51:27 2017 UTC (7 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +36 -2 lines
 Decode TPH Requester Control register.

Revision 1.181: download - view: text, markup, annotated - select for diffs
Mon May 22 04:21:20 2017 UTC (7 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +53 -38 lines
- The Captured Slot Power Limit value is only for device which has upsteam
   port.
- The following three registers are the same encoding, so use the same
  function:
   - the Captured Slot Power Limit in the Device Capability register of PICe
     capability.
   - the Slot Power Limit in Slot Capability register of PCIe capability.
   - the Base Power and Data Scale in the Data Register of Power Budgeting
     capability.
- Fix the alternative encoding check of power limit as document. Add check if
  scale equals to 0.

Revision 1.178.2.2: download - view: text, markup, annotated - select for diffs
Thu May 11 02:58:38 2017 UTC (7 years, 6 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.178.2.1: preferred, colored; branchpoint 1.178: preferred, colored; next MAIN 1.179: preferred, colored
Changes since revision 1.178.2.1: +6 -7 lines
Sync with HEAD

Revision 1.180: download - view: text, markup, annotated - select for diffs
Tue May 9 11:17:07 2017 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +6 -7 lines
 A device except Root Complex integrated has a link, so print link related
registers on device except Root Complex Integrated Endpoint and Root Complex
Event Collector.

Revision 1.178.2.1: download - view: text, markup, annotated - select for diffs
Tue May 2 03:19:18 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: prg-localcount2
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +3 -2 lines
Sync with HEAD - tag prg-localcount2-base1

Revision 1.179: download - view: text, markup, annotated - select for diffs
Thu Apr 27 04:26:12 2017 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base1
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +3 -2 lines
 Check slot registers if a device is PCI/PCI-X to PCI Express Bridge. Tested
with Pericom Semiconductors(Diodes) PI7C9X111SL PCIe to PCI Reverse Bridge.

Revision 1.148.2.4: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:13 2017 UTC (7 years, 7 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.148.2.3: preferred, colored; branchpoint 1.148: preferred, colored; next MAIN 1.149: preferred, colored
Changes since revision 1.148.2.3: +179 -29 lines
Sync with HEAD

Revision 1.156.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:48 2017 UTC (7 years, 7 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.156: preferred, colored; next MAIN 1.157: preferred, colored
Changes since revision 1.156: +557 -258 lines
Sync with HEAD

Revision 1.178: download - view: text, markup, annotated - select for diffs
Fri Apr 21 11:49:31 2017 UTC (7 years, 7 months ago) by kre
Branches: MAIN
CVS tags: prg-localcount2-base, pgoyette-localcount-20170426, bouyer-socketcan-base1
Branch point for: prg-localcount2
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +3 -3 lines

For want of a comma, the compiler was lost.

Revision 1.177: download - view: text, markup, annotated - select for diffs
Fri Apr 21 09:01:52 2017 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +9 -2 lines
 Add Flattening Portal Bridge capability ID and Hierarchy ID extended
capability ID.

Revision 1.176: download - view: text, markup, annotated - select for diffs
Thu Apr 20 08:45:25 2017 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +142 -4 lines
 Add Downstream Port Containment (DPC) ECN and Enhanced DPC(eDPC) ECN.

Revision 1.175: download - view: text, markup, annotated - select for diffs
Thu Apr 20 05:48:38 2017 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +4 -4 lines
 Add 0x for register output.

Revision 1.174: download - view: text, markup, annotated - select for diffs
Tue Apr 18 10:00:26 2017 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +3 -3 lines
 Add missing ':'

Revision 1.173: download - view: text, markup, annotated - select for diffs
Mon Apr 17 09:33:00 2017 UTC (7 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +8 -8 lines
 Use macro. No functional change.

Revision 1.172: download - view: text, markup, annotated - select for diffs
Thu Apr 6 08:57:01 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
CVS tags: jdolecek-ncq-base, jdolecek-ncq
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +8 -8 lines
Fix typos:
- s/Readness/Readiness/
- s/Presense/Presence/
- s/supportted/supported/
- s/Rquester/Requester/
- s/Check Enab/Check Enable/

Revision 1.171: download - view: text, markup, annotated - select for diffs
Thu Mar 30 08:44:33 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +8 -5 lines
 Fix a bug that SR-IOV's system page size was doubled. ffs()'s bit are
numbered starting from 1.

Revision 1.170: download - view: text, markup, annotated - select for diffs
Tue Mar 28 10:30:27 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +9 -7 lines
 Use macro. No functional change.

Revision 1.169: download - view: text, markup, annotated - select for diffs
Tue Mar 28 10:28:59 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -3 lines
 Use correct macro "PCI_SATA_REV" instead of PCI_MSIX_CTL for SATA revision
register. This is not a real bug because PCI_SATA_REV and PCI_MSIX_CTL have
the same value.

Revision 1.148.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:57:30 2017 UTC (7 years, 8 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.148.2.2: preferred, colored; branchpoint 1.148: preferred, colored
Changes since revision 1.148.2.2: +381 -232 lines
Sync with HEAD

Revision 1.168: download - view: text, markup, annotated - select for diffs
Fri Mar 17 11:20:16 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-20170320
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +26 -19 lines
 Don't print BAR's window size on pcictl pciN dump again
because there is no way to know it's correct value from
userland now.

Revision 1.167: download - view: text, markup, annotated - select for diffs
Fri Mar 17 08:51:44 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +46 -79 lines
- Don't try to sizing a BAR not if a device is host bridge but a device's
  PCI_COMMAND_MEM_ENABLE is set.
- Fix 17 years old bug that all effective BARs are marked "not sized" on
  pcictl pciN dump.
- Print  BAR's window size on pcictl pciN dump.
- remove extra "(?)"

Revision 1.166: download - view: text, markup, annotated - select for diffs
Tue Mar 14 08:27:13 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +19 -0 lines
ECN: Change Root Complex Event Collector Class Code
 - Old RCEC has subclass 0x06. It's the same as IOMMU. Read the type in PCIe
   extend capability to know whether it's RCEC or IOMMU.

Revision 1.165: download - view: text, markup, annotated - select for diffs
Tue Mar 14 08:25:35 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +26 -14 lines
 Pint PCI Interface name if available.

Revision 1.164: download - view: text, markup, annotated - select for diffs
Tue Mar 14 08:20:11 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +6 -2 lines
Add two new PCI classes:
 - processing accelerators
 - non-essential instrumentation

Revision 1.163: download - view: text, markup, annotated - select for diffs
Tue Mar 14 08:09:31 2017 UTC (7 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +29 -21 lines
No functional change:
 - modify variable names
 - KNF

Revision 1.162: download - view: text, markup, annotated - select for diffs
Mon Feb 27 16:16:23 2017 UTC (7 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +12 -10 lines
fix printf formats (clang build)

Revision 1.161: download - view: text, markup, annotated - select for diffs
Mon Feb 27 14:13:56 2017 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +82 -3 lines
 Decode AGP capability.

Revision 1.160: download - view: text, markup, annotated - select for diffs
Sun Feb 26 05:41:47 2017 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +33 -38 lines
 - Fix the base power's value in the power budget capability.
 - Fix typo (s/Maximun/Maximum/)

Revision 1.159: download - view: text, markup, annotated - select for diffs
Fri Feb 24 06:39:54 2017 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +43 -47 lines
 Use macro. KNF. No functional change.

Revision 1.158: download - view: text, markup, annotated - select for diffs
Fri Feb 24 05:04:46 2017 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +4 -4 lines
Fix 0x%u...

Revision 1.157: download - view: text, markup, annotated - select for diffs
Wed Feb 15 06:53:55 2017 UTC (7 years, 9 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +111 -51 lines
- 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.133.2.7: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:30 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.133.2.6: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.6: +4 -3 lines
Sync with HEAD

Revision 1.124.2.2.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 18 08:46:27 2017 UTC (7 years, 10 months ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.124.2.2: preferred, colored; next MAIN 1.124.2.3: preferred, colored
Changes since revision 1.124.2.2: +52 -21 lines
Sync with netbsd-5

Revision 1.148.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:33 2017 UTC (7 years, 11 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.148.2.1: preferred, colored; branchpoint 1.148: preferred, colored
Changes since revision 1.148.2.1: +4 -3 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.156: download - view: text, markup, annotated - select for diffs
Wed Dec 28 06:57:27 2016 UTC (7 years, 11 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, nick-nhusb-base-20170204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +4 -3 lines
 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.124.2.3: download - view: text, markup, annotated - select for diffs
Fri Dec 9 04:56:25 2016 UTC (7 years, 11 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-2-RELEASE, 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
Diff to: previous 1.124.2.2: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.2.2: +52 -21 lines
Pull up following revision(s) (requested by pgoyette in ticket #1296):
	sys/dev/pci/pci_subr.c: revision 1.155 via patch
Protect against buffer overflow.

Revision 1.133.2.6: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:55:03 2016 UTC (8 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.133.2.5: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.5: +148 -22 lines
Sync with HEAD

Revision 1.148.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:10 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +212 -23 lines
Sync with HEAD

Revision 1.155: download - view: text, markup, annotated - select for diffs
Wed Nov 2 00:39:56 2016 UTC (8 years, 1 month ago) by pgoyette
Branches: MAIN
CVS tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +52 -18 lines
Protect against buffer overflow.

Revision 1.154: download - view: text, markup, annotated - select for diffs
Mon Oct 31 09:13:20 2016 UTC (8 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +12 -3 lines
Stopgap fix for in-kernel compilation (differences between humanize_number(3)
and humanize_number(9)), ok: msaitoh

Revision 1.153: download - view: text, markup, annotated - select for diffs
Mon Oct 31 05:10:45 2016 UTC (8 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +56 -7 lines
Decode Resizable BAR.

Revision 1.152: download - view: text, markup, annotated - select for diffs
Thu Oct 20 04:11:02 2016 UTC (8 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +34 -3 lines
- 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.151: download - view: text, markup, annotated - select for diffs
Wed Oct 19 04:23:37 2016 UTC (8 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +5 -2 lines
Add VF Resizable BARs ECN.

Revision 1.133.2.5: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:43 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.133.2.4: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.4: +75 -8 lines
Sync with HEAD

Revision 1.150: download - view: text, markup, annotated - select for diffs
Mon Aug 22 08:35:42 2016 UTC (8 years, 3 months ago) by msaitoh
Branches: MAIN
CVS tags: nick-nhusb-base-20161004, localcount-20160914
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +6 -2 lines
 Don't follow an incorrect pointer in an extended capability header. Tested
with Super Micro X10SDV-8C-TLN4F bus 255, device 12, function 0 (BIOS 1.1b).

Revision 1.149: download - view: text, markup, annotated - select for diffs
Wed Aug 17 06:32:01 2016 UTC (8 years, 3 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +67 -4 lines
Add Dynamic Power Allocation (DPA) ECN support.

Revision 1.133.2.4: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:04 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.133.2.3: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.3: +5 -5 lines
Sync with HEAD

Revision 1.148: download - view: text, markup, annotated - select for diffs
Mon Jun 20 10:02:43 2016 UTC (8 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +5 -5 lines
 B260 "Slot Power Limit" ECN. PCIe 3.1 ECN. September 18, 2015.

Revision 1.133.2.3: download - view: text, markup, annotated - select for diffs
Sun May 29 08:44:22 2016 UTC (8 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.133.2.2: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.2: +49 -4 lines
Sync with HEAD

Revision 1.147: download - view: text, markup, annotated - select for diffs
Wed May 11 05:12:57 2016 UTC (8 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: nick-nhusb-base-20160529
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +49 -4 lines
Add Precision Time Management (PTM) ECN.

Revision 1.133.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:50 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.133.2.1: preferred, colored; branchpoint 1.133: preferred, colored
Changes since revision 1.133.2.1: +1581 -57 lines
Sync with HEAD (as of 26th Dec)

Revision 1.146: download - view: text, markup, annotated - select for diffs
Wed Nov 18 04:24:02 2015 UTC (9 years ago) by msaitoh
Branches: MAIN
CVS tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +106 -31 lines
- 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.145: download - view: text, markup, annotated - select for diffs
Tue Nov 17 18:26:50 2015 UTC (9 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +34 -10 lines
- 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.144: download - view: text, markup, annotated - select for diffs
Tue Nov 17 17:51:42 2015 UTC (9 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +3 -3 lines
No functional change:
 - Add comments.
 - Remove obsolete comment.
 - Move definitions to better location.
 - Rename bit definition.
 - KNF.
 - Indent.

Revision 1.143: download - view: text, markup, annotated - select for diffs
Mon Nov 16 09:10:58 2015 UTC (9 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -3 lines
Define PCIE_XCAP_{VER,TYPE}(x) and use them.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Fri Nov 13 03:56:44 2015 UTC (9 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -3 lines
 Fix register offset to print HyperTransport registers correctly.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Thu Nov 12 12:17:59 2015 UTC (9 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +105 -8 lines
- 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.140: download - view: text, markup, annotated - select for diffs
Fri Oct 30 20:03:45 2015 UTC (9 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +71 -27 lines
 - 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.139: download - view: text, markup, annotated - select for diffs
Wed Oct 21 15:01:01 2015 UTC (9 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +14 -11 lines
Fix compile error...

Revision 1.138: download - view: text, markup, annotated - select for diffs
Wed Oct 21 12:54:59 2015 UTC (9 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +91 -7 lines
 Decode SATA Capability and Multicast Extendeded Capability.

Revision 1.137: download - view: text, markup, annotated - select for diffs
Sat Oct 3 15:22:14 2015 UTC (9 years, 2 months ago) by joerg
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -3 lines
Fix format string.

Revision 1.136: download - view: text, markup, annotated - select for diffs
Fri Oct 2 07:04:17 2015 UTC (9 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -3 lines
 Fix a bug that the TPH ST Table is wrongly decoded. Found by llvm.

Revision 1.135: download - view: text, markup, annotated - select for diffs
Fri Oct 2 05:22:53 2015 UTC (9 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +1211 -14 lines
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.133.2.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:59 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +3 -2 lines
Sync with HEAD

Revision 1.134: download - view: text, markup, annotated - select for diffs
Mon Jul 27 15:46:03 2015 UTC (9 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: nick-nhusb-base-20150921
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +3 -2 lines
 Add NVMe.

Revision 1.124.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 14 16:49:35 2014 UTC (9 years, 11 months ago) by martin
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base, 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
Branch point for: netbsd-7-nhusb
Diff to: previous 1.124.2.1: preferred, colored; branchpoint 1.124: preferred, colored
Changes since revision 1.124.2.1: +3 -2 lines
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.124.2.1: download - view: text, markup, annotated - select for diffs
Fri Dec 12 19:03:17 2014 UTC (9 years, 11 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +118 -124 lines
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.133: download - view: text, markup, annotated - select for diffs
Mon Nov 24 07:53:43 2014 UTC (10 years ago) by msaitoh
Branches: MAIN
CVS tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +3 -2 lines
Add PCIe CRS Software Visibility bit.

Revision 1.132: download - view: text, markup, annotated - select for diffs
Thu Oct 23 13:44:37 2014 UTC (10 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +82 -108 lines
- 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.

Revision 1.131: download - view: text, markup, annotated - select for diffs
Thu Oct 23 13:40:15 2014 UTC (10 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +3 -3 lines
 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.

Revision 1.130: download - view: text, markup, annotated - select for diffs
Thu Oct 23 09:59:56 2014 UTC (10 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +3 -3 lines
Fix typo in comment.

Revision 1.129: download - view: text, markup, annotated - select for diffs
Mon Oct 6 08:00:57 2014 UTC (10 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +6 -6 lines
s/genric/generic/

Revision 1.128: download - view: text, markup, annotated - select for diffs
Mon Oct 6 07:15:56 2014 UTC (10 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +32 -11 lines
- 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.127: download - view: text, markup, annotated - select for diffs
Mon Sep 22 13:01:44 2014 UTC (10 years, 2 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -4 lines
 Always print the Slot implemented bit in the PCIe Capabilities
Register using with onoff().

Revision 1.126: download - view: text, markup, annotated - select for diffs
Sun Sep 21 14:30:22 2014 UTC (10 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +17 -80 lines
Merge the 3 copies of devlist2h.awk that deal with 16 bit key and value
pairs to the compressed one that matt wrote.

Revision 1.125: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:29:16 2014 UTC (10 years, 3 months ago) by matt
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +22 -22 lines
Don't use class or typename as a variable name.

Revision 1.92.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:43 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.92.2.2: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.2: +974 -468 lines
Rebase to HEAD as of a few days ago.

Revision 1.106.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:54 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.106: preferred, colored; next MAIN 1.107: preferred, colored
Changes since revision 1.106: +975 -469 lines
Rebase.

Revision 1.124: download - view: text, markup, annotated - select for diffs
Mon Jun 9 11:08:05 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +4 -2 lines
Add IOMMU and the Root Complex Event Collector.

Revision 1.123: download - view: text, markup, annotated - select for diffs
Fri May 30 05:04:21 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +7 -9 lines
- Remove some obsoleted comments.
- KNF.

Revision 1.122: download - view: text, markup, annotated - select for diffs
Fri May 30 03:42:38 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +112 -8 lines
- Add PCI-X capability stuff.
- remove extra ':' in pci_conf_print_pcie_cap()
- Add comments.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Tue May 27 16:50:31 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +8 -4 lines
Print "range:  not set" if the decode window isn't set.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Tue May 27 16:26:15 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +30 -4 lines
- Add some register definition for MSI and MSI-X
- print MSI-X capability

Revision 1.119: download - view: text, markup, annotated - select for diffs
Sun May 25 14:56:46 2014 UTC (10 years, 6 months ago) by njoly
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +4 -3 lines
Do not crash if subclassp == NULL, seen while attaching rstx(4) which
match PCI_CLASS_UNDEFINED class.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Sat May 24 18:06:21 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +77 -11 lines
Print some PCI Capabilities:
- Vendor specific (ID:0x09)
- Debugport (ID:0x0a)
- Subsystem (ID:0x0d)
- PCI Advanced Features (ID:0x13)

Revision 1.117: download - view: text, markup, annotated - select for diffs
Sat May 24 15:20:32 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +353 -132 lines
- 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.116: download - view: text, markup, annotated - select for diffs
Sat May 24 15:09:31 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +6 -9 lines
- Fix calculation of supported max payload size in PCIe device capability
  register.
- Fix for PCIE_SLCSR_DLLSCE flag.
- invert PCIE_SLCSR_PCC

Revision 1.115: download - view: text, markup, annotated - select for diffs
Fri May 23 19:31:23 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +227 -177 lines
No functional change:
- KNF
- Sort in PCI capability ID order.
- Add comments.

Revision 1.114: download - view: text, markup, annotated - select for diffs
Fri May 23 18:32:13 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +27 -16 lines
- Add some register definitions (subclass, power management, etc.)
- Print some information (subclass, power management)
- Use macro.

Revision 1.113: download - view: text, markup, annotated - select for diffs
Fri May 23 17:54:08 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -3 lines
PME# clock is not bit 2 but bit 3. Use the macro!

Revision 1.88.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:26 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88.2.3: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.2.3: +572 -75 lines
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.105.4.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:41 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.105.4.1: preferred, colored; branchpoint 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105.4.1: +219 -193 lines
sync with head

Revision 1.112: download - view: text, markup, annotated - select for diffs
Thu May 15 06:58:19 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: rmind-smpnet-nbase, rmind-smpnet-base
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +118 -163 lines
Use onoff() macro.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Tue May 13 18:07:24 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +4 -2 lines
Print 32bit I/O region flag and 64bit memory region flag.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Mon May 12 23:01:40 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +63 -11 lines
Print the range of I/O, non-prefechable memory and prefechable memory.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Mon May 12 11:51:35 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base9
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +44 -31 lines
Use macro.

Revision 1.108: download - view: text, markup, annotated - select for diffs
Mon May 12 11:27:31 2014 UTC (10 years, 6 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -3 lines
Fix newline problem which was added in previous commit.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Fri May 9 14:51:26 2014 UTC (10 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +6 -2 lines
Print the CRS Software Visibility Enable bit and the Crosslink Supported bit.

Revision 1.75.10.1.4.2: download - view: text, markup, annotated - select for diffs
Tue Nov 5 18:34:21 2013 UTC (11 years, 1 month ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.75.10.1.4.1: preferred, colored; branchpoint 1.75.10.1: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.10.1.4.1: +28 -2 lines
Pull in support for pci_aprint_devinfo_fancy

Revision 1.105.4.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:25 2013 UTC (11 years, 3 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3 lines
sync with head

Revision 1.90.2.1: download - view: text, markup, annotated - select for diffs
Mon Aug 5 10:09:53 2013 UTC (11 years, 4 months ago) by martin
Branches: netbsd-6
Diff to: previous 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90: +530 -45 lines
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.106: download - view: text, markup, annotated - select for diffs
Mon Aug 5 07:53:31 2013 UTC (11 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -3 lines
One more Gb/s -> GT/s fix.

Revision 1.92.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:18 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.92.2.1: preferred, colored; branchpoint 1.92: preferred, colored
Changes since revision 1.92.2.1: +526 -46 lines
resync from head

Revision 1.105: download - view: text, markup, annotated - select for diffs
Sun Apr 21 23:54:44 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +277 -103 lines
- Print PCIe 2.0 or higher capability registers.
- Print Link related registers only if the device is PCI Express Endpoint,
  Legacy PCI Express Endpoint or Root Port of PCI Express Root Complex.
- Don't print Root related registers if the device is Root Complex
  Integrated Endpoint and print if the device is Root Complex Event Collector.
- Not Gb/s but GT/s.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Sun Apr 21 23:46:06 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +5 -5 lines
- Add some PCIe 2.0 or higher capability register definitions.
- Rename some registers.
- Add comments.
- Indent.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun Apr 21 19:59:41 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +105 -105 lines
Delete "PCI_" from PCIX and PICE capability registers.

Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Apr 17 08:07:40 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -4 lines
 Don't check whether PCIe Slot Control Register is all 0 or not.
For example, 82801I PCI Express Port #1 (devid 0x2940) is really
Root Port and it has the Root Control Register and the default
value is 0 (the document say so and really 0 (Tested with my
machine)).

Revision 1.101: download - view: text, markup, annotated - select for diffs
Wed Apr 17 06:31:15 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +184 -146 lines
- Add slot related registers
- Add root port related registers
- Fix the definition of PCI_PCIE_SLCAP_PSN
- Cleanup

Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Apr 17 04:36:27 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +5 -2 lines
Add PCI_CAP_SUBVENDOR (= 0x0d).

Revision 1.99: download - view: text, markup, annotated - select for diffs
Tue Apr 16 15:50:58 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +261 -6 lines
Decode some PCIe capability register bits.

Revision 1.98: download - view: text, markup, annotated - select for diffs
Tue Apr 16 14:34:34 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +30 -25 lines
Use macro.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Tue Apr 16 09:13:04 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +3 -3 lines
 Fix a bug that IRQ(MSI) bits in PCIe capability register is incorrectly
decoded. The bit field is not 0x4e000000 but 0x3e000000.

Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Apr 15 18:51:29 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +8 -2 lines
Print some PCIE device type.

Revision 1.92.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:20 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +5 -3 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.88.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:21:37 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.88.2.2: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.2: +5 -3 lines
sync with head

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Oct 27 17:18:35 2012 UTC (12 years, 1 month ago) by chs
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3 lines
split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Oct 20 05:32:25 2012 UTC (12 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -2 lines
Add NVM to the pci mass storage subclass

Revision 1.93: download - view: text, markup, annotated - select for diffs
Sun Sep 23 01:10:10 2012 UTC (12 years, 2 months ago) by chs
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -2 lines
add an entry for subclass HD audio.

Revision 1.88.2.2: download - view: text, markup, annotated - select for diffs
Wed May 23 10:07:58 2012 UTC (12 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88.2.1: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.2.1: +9 -6 lines
sync with head.

Revision 1.88.6.3: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:51 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.88.6.2: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.6.2: +9 -6 lines
sync to latest -current.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Apr 24 09:53:41 2012 UTC (12 years, 7 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +9 -6 lines
print correct link speed for PCIexpress Gen2+
(the decoding code needs to be rewritten, sorry for only adding to
the mess)

Revision 1.88.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:52 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +29 -3 lines
sync with head

Revision 1.88.6.2: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:27 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.88.6.1: preferred, colored; branchpoint 1.88: preferred, colored
Changes since revision 1.88.6.1: +3 -3 lines
sync to latest -current.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Wed Mar 21 10:14:19 2012 UTC (12 years, 8 months ago) by matt
Branches: MAIN
CVS tags: yamt-pagecache-base4, jmcneill-usbmp-base8
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3 lines
Use an unsigned value to hold the pci_class

Revision 1.88.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:34:46 2012 UTC (12 years, 9 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +28 -2 lines
merge to -current.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Jan 29 11:31:38 2012 UTC (12 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: 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-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2
Branch point for: netbsd-6
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +20 -7 lines
extend the pci_aprint_devinfo slightly to cover the cases commonly
used by drivers: a short name for the quiet/naive case and a string
to override the "pcidevs" based name by one provided by the driver,
ride on yesterday's kernel minor version bump

Revision 1.89: download - view: text, markup, annotated - select for diffs
Thu Jan 26 21:17:28 2012 UTC (12 years, 10 months ago) by drochner
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +15 -2 lines
put printing of the pci_devinfo into its own function (not inlined
by purpose) - this is a stack hog, and with this change my uTCA amd64
system boots again
a lot of similar code can be eliminated from pci device drivers this way,
but before doing so (and making the new function part of the module API)
I'd like to consider a modification to make it work with drivers which
prefer to print names from other sources (like pciide)

Revision 1.75.10.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Dec 26 03:44:49 2011 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.75.10.1: preferred, colored
Changes since revision 1.75.10.1: +132 -84 lines
Merge -HEAD changes (except for PCIVERBOSE chagnes).

Revision 1.88: download - view: text, markup, annotated - select for diffs
Wed Aug 17 00:59:47 2011 UTC (13 years, 3 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +4 -4 lines
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.86.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:04 2011 UTC (13 years, 5 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +8 -2 lines
Catchup with rmind-uvmplock merge.

Revision 1.79.2.4: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:16 2011 UTC (13 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.79.2.3: preferred, colored; branchpoint 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79.2.3: +6 -0 lines
sync with head

Revision 1.87: download - view: text, markup, annotated - select for diffs
Mon Jun 6 18:27:12 2011 UTC (13 years, 6 months ago) by msaitoh
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +8 -2 lines
Add two new capabilities(PCI_CAP_SATA and PCI_CAP_PCIAF).

Revision 1.79.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:47 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.79.2.2: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.2.2: +70 -12 lines
sync with head

Revision 1.75.10.1.8.1: download - view: text, markup, annotated - select for diffs
Fri Jan 7 02:26:15 2011 UTC (13 years, 11 months ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.75.10.1: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.10.1: +68 -5 lines
Add/define some MSI support

Revision 1.86: download - view: text, markup, annotated - select for diffs
Sat Dec 11 18:22:24 2010 UTC (13 years, 11 months ago) by matt
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +68 -5 lines
Add code to display MSI capabilities.

Revision 1.78.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:22:06 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.78.2.2: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.2.2: +1 -4 lines
Sync with HEAD (-D20101022).

Revision 1.74.4.5: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:09 2010 UTC (14 years, 2 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74.4.4: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.4.4: +3 -6 lines
sync with head

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sat Aug 21 13:18:35 2010 UTC (14 years, 3 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +3 -6 lines
Update the various xxx_verbose modules to conform to the module subsystem's
new locking protocol.

Revision 1.78.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:46:28 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.78.2.1: preferred, colored; branchpoint 1.78: preferred, colored
Changes since revision 1.78.2.1: +44 -67 lines
Sync with HEAD.

Revision 1.74.4.4: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:51 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74.4.3: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.3: +46 -69 lines
sync with head.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Sun Jul 25 14:14:25 2010 UTC (14 years, 4 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +7 -9 lines
Move setting of pci_verbose_loaded flag into the module's init routine.
This ensures that the flag is set even if the module was manually loaded
by the user rather than just auto-loaded.

Revision 1.79.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:19:37 2010 UTC (14 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.79.2.1: preferred, colored; branchpoint 1.79: preferred, colored
Changes since revision 1.79.2.1: +36 -25 lines
sync with head

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sun Jun 6 18:58:23 2010 UTC (14 years, 6 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +36 -25 lines
Update pciverbose module to use module_autoload() rather than module_load().
Load the module right before each attempt to use its features, and let the
module subsystem handle unloading.

Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:17:36 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +39 -71 lines
sync with head

Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed May 26 09:42:42 2010 UTC (14 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +7 -4 lines
Do not try to unload the pciverbose module if it had never been loaded.

Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue May 25 08:35:45 2010 UTC (14 years, 6 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +10 -10 lines
Rework the pciverbose module dispatch vectors to avoid renaming the
externally-visible entrypoint name.  Also this avoids a potential
need to bump kernel version.

Requested by dyoung@ and mrg@

Revision 1.80: download - view: text, markup, annotated - select for diffs
Mon May 24 20:29:41 2010 UTC (14 years, 6 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +39 -74 lines
Extract the vendor/product tables and related access routines into a
separate kernel module.  Update pci bus attach routine to load the
module (if available) when we're about to start scanning the bus, and
unload the module after the scan is finished.

On architectures which support loading of modules by the boot loader,
the 'pciverbose' module can be loaded and executed without needing to
rebuild the kernel.  On all architectures, using 'options PCIVERBOSE'
in the kernel configuration file will create a 'builtin' module which
is functionally equivalent to previous behavior.

XXX Although not nearly as large as the vendor and product tables,
XXX the PCI class and subclass tables might also be offloaded into
XXX the module at a future time.

XXX Cardbus (and possibly other) drivers should also be modified to
XXX load the module before scanning/attaching devices.

Revision 1.78.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:43:40 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +54 -75 lines
Sync with HEAD.

Revision 1.74.4.3: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:50 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74.4.2: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.2: +58 -79 lines
sync with head

Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Mar 4 22:55:20 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +54 -75 lines
Extract both instances of the code that prints the PCI Secondary Status
Register into a subroutine.  Use terminology similar to that which
PCI System Architecture (4th Edition) uses.  For comparison with PCI
reference books, specify flags and fields with __BIT(n) and __BITS(m, n)
instead of hexadecimal constants.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Wed Jan 13 12:18:55 2010 UTC (14 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +6 -6 lines
fix some bitmask in PCI Express capabilities decoding
being here, fix some typos and add a comma for clarity

Revision 1.74.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:59 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74.4.1: preferred, colored; branchpoint 1.74: preferred, colored
Changes since revision 1.74.4.1: +113 -26 lines
sync with head.

Revision 1.75.8.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:31:08 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.75.8.1: preferred, colored; branchpoint 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75.8.1: +69 -8 lines
Sync with HEAD.

Revision 1.75.10.1: download - view: text, markup, annotated - select for diffs
Tue Feb 24 03:50:48 2009 UTC (15 years, 9 months ago) by snj
Branches: 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, 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-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-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
Branch point for: matt-nb5-pq3, matt-nb5-mips64
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +69 -8 lines
Pull up following revision(s) (requested by jmcneill in ticket #485):
	sys/dev/pci/pci_subr.c: revision 1.77
Decode and display PCI Power Management registers when available.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Jan 20 13:54:43 2009 UTC (15 years, 10 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, 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, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +69 -8 lines
Decode and display PCI Power Management registers when available.

Revision 1.75.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:18:26 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +46 -20 lines
Sync with HEAD.

Revision 1.73.16.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:01 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.73.16.1: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.16.1: +44 -18 lines
Sync with HEAD.

Revision 1.75.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:36 2008 UTC (15 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.75: preferred, colored; next MAIN 1.76: preferred, colored
Changes since revision 1.75: +46 -20 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.76: download - view: text, markup, annotated - select for diffs
Mon Nov 17 23:33:41 2008 UTC (16 years ago) by matt
Branches: MAIN
CVS tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +46 -20 lines
Store pcidevs in a more compact manner.  Instead of many string with duplicate
words, store each word individual in a long string and then store offsets
in the string to that word.  This reduces the space needed by half.

Revision 1.73.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:42 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -4 lines
Sync with HEAD.

Revision 1.74.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:21 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74: +3 -3 lines
sync with head.

Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:24:44 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3 lines
sync with head.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Apr 29 17:27:38 2008 UTC (16 years, 7 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +3 -3 lines
Oh, so that's how you spell Legacy -- thanks spellcheck!

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Apr 10 19:13:37 2008 UTC (16 years, 8 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +3 -3 lines
use aprint_*_dev and device_xname

Revision 1.71.24.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:29:24 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +101 -3 lines
sync with HEAD

Revision 1.61.2.3: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:33:23 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.2.2: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.2.2: +101 -3 lines
sync with head.

Revision 1.71.22.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:46:43 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +101 -3 lines
Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.72.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 25 22:39:15 2007 UTC (17 years, 1 month ago) by bouyer
Branches: bouyer-xenamd64
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +3 -3 lines
Sync with HEAD.

Revision 1.71.8.2: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:09:13 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.71.8.1: preferred, colored; branchpoint 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71.8.1: +3 -3 lines
Sync with head.

Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Oct 19 12:00:54 2007 UTC (17 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, mjf-devfs, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, ad-socklock-base1
Branch point for: mjf-devfs2
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3 lines
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.71.26.1: download - view: text, markup, annotated - select for diffs
Sun Oct 14 11:48:13 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.71: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71: +100 -2 lines
sync with head.

Revision 1.71.8.1: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:41:49 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +100 -2 lines
Sync with head.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Sun Oct 7 23:00:47 2007 UTC (17 years, 2 months ago) by joerg
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +100 -2 lines
Add some basic parsing of the PCI Express capabilities register.
This is enough to help detect the source of interrupt storms at least
for my Thinkpad.

Revision 1.61.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:48:46 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61.2.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.2.1: +126 -124 lines
sync with head.

Revision 1.65.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:17:45 2006 UTC (18 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.65.4.1: preferred, colored; branchpoint 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.4.1: +7 -6 lines
sync with head.

Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:31 2006 UTC (18 years ago) by ad
Branches: newlock2
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +3 -2 lines
Sync with head.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:09 2006 UTC (18 years ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base2, yamt-x86pmap-base, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, hpcarm-cleanup, ad-audiomp-base, ad-audiomp
Branch point for: yamt-x86pmap, vmlocking, matt-armv6, jmcneill-pm
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +6 -6 lines
__unused removal on arguments; approved by core.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Nov 8 18:44:16 2006 UTC (18 years, 1 month ago) by drochner
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -2 lines
while we are here, also print the interrupt disable bit
in VERBOSE/pcictl

Revision 1.65.4.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:18 2006 UTC (18 years, 1 month ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -6 lines
sync with head

Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue Oct 17 18:21:29 2006 UTC (18 years, 1 month ago) by dogcow
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -6 lines
now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Oct 13 20:53:59 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -4 lines
more __unused

Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Oct 13 18:28:06 2006 UTC (18 years, 1 month ago) by dogcow
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +6 -2 lines
more unused variable fallout.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:32 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -4 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.63.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:52:18 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +131 -124 lines
sync with head

Revision 1.63.8.2: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:24:22 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63.8.1: preferred, colored; branchpoint 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63.8.1: +125 -124 lines
sync with head.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Sun Sep 3 05:01:32 2006 UTC (18 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +125 -124 lines
add missing initializers

Revision 1.63.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 26 12:51:22 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +11 -5 lines
sync with head.

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:05:06 2006 UTC (18 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +12 -6 lines
sync with head.

Revision 1.63.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 19 04:01:36 2006 UTC (18 years, 5 months ago) by chap
Branches: chap-midi
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +11 -5 lines
Sync with head.

Revision 1.63.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:36:46 2006 UTC (18 years, 6 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +11 -5 lines
Sync with head.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed May 31 10:01:18 2006 UTC (18 years, 6 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pdpolicy-base7, yamt-pdpolicy-base6, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +11 -5 lines
-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.63: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:22:50 2005 UTC (18 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, 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, simonb-timecounters, rpaulo-netinet-merge-pcb, chap-midi
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +2 -2 lines
merge ktrace-lwp.

Revision 1.56.2.5: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:06:02 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.56.2.4: preferred, colored; next MAIN 1.57: preferred, colored
Changes since revision 1.56.2.4: +22 -22 lines
Sync with HEAD. Here we go again...

Revision 1.61.4.1: download - view: text, markup, annotated - select for diffs
Wed Nov 2 11:57:56 2005 UTC (19 years, 1 month ago) by yamt
Branches: yamt-vop
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +3 -3 lines
sync with head.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sun Oct 30 23:34:04 2005 UTC (19 years, 1 month ago) by simonb
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines
Only include <sys/systm.h> if _KERNEL is defined.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Jun 28 00:28:42 2005 UTC (19 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop, yamt-lazymbuf
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +21 -21 lines
Use ANSI function decls and static.

Revision 1.59.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:07 2005 UTC (19 years, 7 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +3 -3 lines
sync with -current

Revision 1.59.6.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:35:12 2005 UTC (19 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.59: preferred, colored; next MAIN 1.60: preferred, colored
Changes since revision 1.59: +3 -3 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.56.2.4: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:45:22 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.56.2.3: preferred, colored
Changes since revision 1.56.2.3: +3 -3 lines
Sync with HEAD.

Hi Perry!

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:33 2005 UTC (19 years, 9 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, 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, kent-audio2-base
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3 lines
nuke trailing whitespace

Revision 1.56.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:31:04 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.56.2.2: preferred, colored
Changes since revision 1.56.2.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.56.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:49:04 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.56.2.1: preferred, colored
Changes since revision 1.56.2.1: +2 -2 lines
Sync with HEAD.

Revision 1.56.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:49:10 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +60 -69 lines
Sync with HEAD

Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Aug 2 18:43:38 2004 UTC (20 years, 4 months ago) by mycroft
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +39 -55 lines
For the PCIVERBOSE case, separate vendors and products into separate tables.
Eliminating redundant pointers in the tables saves nearly 20K (20% of the table
size).  In the process, add a pci_findproduct() and make that and
pci_findvendor() return a "const char *".

Revision 1.58: download - view: text, markup, annotated - select for diffs
Fri Apr 23 21:13:07 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +21 -14 lines
pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Feb 4 06:58:24 2004 UTC (20 years, 10 months ago) by soren
Branches: 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
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +4 -4 lines
Use the right bits for the AGP version.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:30:26 2003 UTC (21 years, 5 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +0 -0 lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Jun 29 14:41:11 2003 UTC (21 years, 5 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3 lines
fix typo in comment

Revision 1.42.2.6: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:38:20 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.42.2.5: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.2.5: +3 -2 lines
Sync with HEAD.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Nov 24 11:55:13 2002 UTC (22 years ago) by scw
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +5 -4 lines
Quell an uninitialised variable warning.

Revision 1.42.2.5: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:43:13 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.4: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.4: +109 -61 lines
Catch up to -current.

Revision 1.42.4.4: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:41:01 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.42.4.3: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.4.3: +109 -61 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Sep 21 19:14:14 2002 UTC (22 years, 2 months ago) by drochner
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +14 -5 lines
call the capability list ptr by its name

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Sep 21 18:56:03 2002 UTC (22 years, 2 months ago) by drochner
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +13 -8 lines
correct caplist head for Cardbus bridges

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Sep 21 16:19:34 2002 UTC (22 years, 2 months ago) by drochner
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +91 -57 lines
-corrected "MSI" capability
-added some new subclasses and capabilities
-move capability list printing into a separate function and call it
 for each header type (not type 0 only)

Revision 1.42.4.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:47:52 2002 UTC (22 years, 5 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.42.4.2: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.4.2: +10 -4 lines
catch up with -current on kqueue branch

Revision 1.42.2.4: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:45:39 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.3: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.3: +4 -4 lines
Catch up to -current.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Thu May 30 14:46:14 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +3 -3 lines
Catch up with -current.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun May 19 00:01:09 2002 UTC (22 years, 6 months ago) by sommerfeld
Branches: 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, gehenna-devsw-base
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
Fortunately for us, all interrupt controllers are not 8259's

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri May 3 16:08:36 2002 UTC (22 years, 7 months ago) by nathanw
Branches: MAIN
Branch point for: gehenna-devsw
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
Make pci_conf_print() dump the device-dependent header in userspace, too.

Revision 1.42.2.3: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:46:34 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.2: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.2: +7 -1 lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Mar 22 20:03:20 2002 UTC (22 years, 8 months ago) by drochner
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +8 -2 lines
iadd subclass codes from the 2.3 spec

Revision 1.42.4.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:56:55 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.42.4.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.4.1: +140 -66 lines
Sync kqueue branch with -current.

Revision 1.42.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:15:23 2001 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42.2.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.2.1: +5 -1 lines
Catch up to -current.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Tue Nov 13 07:48:47 2001 UTC (23 years ago) by lukem
Branches: MAIN
CVS tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -1 lines
add RCSID

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Nov 13 03:12:44 2001 UTC (23 years ago) by enami
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -1 lines
Include stdio.h when compiled in userland to pull in declaration of printf etc.

Revision 1.35.4.2: download - view: text, markup, annotated - select for diffs
Thu Oct 25 17:54:51 2001 UTC (23 years, 1 month ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003
Diff to: previous 1.35.4.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.4.1: +37 -6 lines
Pull up revisions 1.39-1.40 (requested by ad):
  Add Mylex DACC960, CAC-EISA, and I2O block/SCSI drivers.

Revision 1.42.6.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:45:58 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +137 -67 lines
Catch up with -current.

Revision 1.42.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:35:59 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +137 -67 lines
Catch up to -current.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Sep 13 21:42:57 2001 UTC (23 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +132 -24 lines
Allow this file to be used in userspace, as well.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Thu Sep 13 18:25:45 2001 UTC (23 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +16 -54 lines
ANSI'ify.

Revision 1.42.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 13 01:15:58 2001 UTC (23 years, 2 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
Update the kqueue branch to HEAD.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sun Sep 9 01:45:29 2001 UTC (23 years, 3 months ago) by enami
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +2 -2 lines
Fix sample code in comment; pci_conf_print() takes three arguments.

Revision 1.32.2.3: download - view: text, markup, annotated - select for diffs
Sun Feb 11 19:15:59 2001 UTC (23 years, 9 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.32.2.2: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.2: +27 -27 lines
Sync with HEAD.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Jan 18 13:12:13 2001 UTC (23 years, 10 months ago) by jdolecek
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +27 -27 lines
adapt to pci_knowndevs[] being const, make local constant arrays const

Revision 1.32.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:04:13 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored
Changes since revision 1.32.2.1: +2 -2 lines
Sync with HEAD.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Nov 21 00:20:30 2000 UTC (24 years ago) by soren
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -2 lines
s/iRDA/IrDA/

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:42:30 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +171 -43 lines
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.40: download - view: text, markup, annotated - select for diffs
Sat Oct 7 18:58:13 2000 UTC (24 years, 2 months ago) by cgd
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +37 -6 lines
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.39: download - view: text, markup, annotated - select for diffs
Mon Oct 2 14:48:13 2000 UTC (24 years, 2 months ago) by ad
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2 lines
I2O subclasses currently have nothing to do with the protocol version.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Sep 2 00:48:20 2000 UTC (24 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +53 -27 lines
don't attempt to size Host Bridge BARs.  (it's a good way to die.)
provide a clue about 16-bit vs. 32-bit I/O BARs.

Revision 1.35.4.1: download - view: text, markup, annotated - select for diffs
Thu Aug 10 22:48:15 2000 UTC (24 years, 4 months ago) by soda
Branches: 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
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +45 -18 lines
Pull up to netbsd-1-5 branch
Approved by: thorpej

When performing pci_config_dump:
Display the full value of 64-bit BARs.
Avoid displaying the upper 32 bits of 64-bit BARs as a separate 32-bit BAR.
  by Nathan J Williams <nathanw@netbsd.org>

Revisions pulled up:
 > cvs rdiff -r1.36 -r1.37 syssrc/sys/dev/pci/pci_subr.c

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu Aug 3 19:58:55 2000 UTC (24 years, 4 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +42 -15 lines
When performing pci_config_dump:
 - Display the full value of 64-bit BARs.
 - Avoid displaying the upper 32 bits of 64-bit BARs as a separate 32-bit BAR.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Jun 28 16:08:49 2000 UTC (24 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -4 lines
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Mar 22 00:36:29 2000 UTC (24 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
opt_pciverbose.h -> opt_pci.h (it's gonna be used by more things, soon)

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Jan 25 22:30:04 2000 UTC (24 years, 10 months ago) by drochner
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +6 -6 lines
use BUS_SPACE_MAP_PREFETCHABLE instead BUS_SPACE_MAP_CACHEABLE where the
PCI BAR bit is referred to

Revision 1.32.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:21 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +46 -2 lines
Pull up to last week's -current.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Wed Dec 15 12:27:26 1999 UTC (24 years, 11 months ago) by kleink
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +46 -2 lines
Report the Capability List support bit of the SR and, if set, print the
the Capability list pointer register as such as well as the capabilities
implemented in the list.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Sep 27 03:20:47 1999 UTC (25 years, 2 months ago) by cgd
Branches: MAIN
CVS tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +57 -1 lines
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.31: download - view: text, markup, annotated - select for diffs
Mon Dec 21 20:56:06 1998 UTC (25 years, 11 months ago) by drochner
Branches: 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
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +2 -2 lines
use a symbolic definition for the PCI subsystem ID

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Aug 15 03:02:46 1998 UTC (26 years, 3 months ago) by mycroft
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -3 lines
Make copyright notices with my name consistent.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jul 12 19:51:58 1998 UTC (26 years, 5 months ago) by augustss
Branches: MAIN
CVS tags: eeh-paddr_t-base, eeh-paddr_t
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +21 -1 lines
Add USB support.  Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Jun 26 17:53:09 1998 UTC (26 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +62 -24 lines
factor out some common code, and enhance functionality slightly: allow
the BAR-printing function to print a name for the register, factor out
a common register-bits function which can handle the fact that type 2
headers have a different size than is usual, and actually do something
useful with the rest of the bits in the type 2 header.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu May 28 02:26:00 1998 UTC (26 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +354 -80 lines
Clean up slightly, abstract pci_conf_print family's base address register
printing into a function, add a bit more pretty-printing of existing stuff.
Implement pretty-printers for type 1 and type 2 headers.  (Right now,
these are just quick stabs based on some on-line bridge docs that I have
handy on my laptop.  Mmmm, meetings.  I'll check the bits when I get
back within reach of my official docs.)

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon May 18 17:25:17 1998 UTC (26 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +200 -103 lines
largely reimplement pci_conf_print():
* print all configuration space registers.  Then, where possible,
  interpret them.  (That is, PRESENT ALL THE DATA, then interpret it --
  don't hide data behind interpretation.  Also, when interpreting
  fields, try to print out the specific value that's being interpreted.)
* handle different header types.
* allow caller to specify a function which can interpret the
  device-dependent header and is responsible for pretty-printing it.

It spews (use 'options MSGBUFSIZE=...' 8-), but when you want the data,
you really want _all_ of it.

Still needs some cleanup and additional code (e.g. interepretation
of PCI-PCI (type 1) and PCI-Cardbus (type 2(?)) bridge headers).

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun May 3 19:46:15 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +7 -2 lines
In pci_conf_print(), don't print a mapping register if the size is 0.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun May 3 19:41:33 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +23 -5 lines
Properly compute the region sizes in pci_conf_print().  Bug pointed out
by Chris Demetriou.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Apr 20 14:16:26 1998 UTC (26 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
Avoid "unused variable" warning without PCIVERBOSE.
From mynhier@cs.utk.edu (PR kern/5328).

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Apr 14 21:24:50 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +195 -1 lines
Add pci_conf_print(), a function to dump the PCI configuration space, useful
in driver debugging.  From Zubin D. Dittia <zubin@clouseau.arl.wustl.edu>,
PR #4249.

Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Tue Sep 16 03:50:41 1997 UTC (27 years, 2 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +3 -1 lines
Update marc-pcmcia branch from trunk.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Sep 13 08:49:51 1997 UTC (27 years, 2 months ago) by enami
Branches: MAIN
CVS tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -1 lines
Declare PCIVERBOSE by defopt in files.pci.  Include opt_pciverbose.h
in pci_subr.c.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Mar 19 19:38:46 1997 UTC (27 years, 8 months ago) by cgd
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +78 -13 lines
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.19: download - view: text, markup, annotated - select for diffs
Sun Oct 13 01:38:29 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
CVS tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +11 -11 lines
backout kprintf changes

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Oct 10 19:58:26 1996 UTC (28 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +11 -11 lines
printf -> kprintf, sprintf -> ksprintf

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Mar 2 02:28:48 1996 UTC (28 years, 9 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +9 -9 lines
remove some colons to be slightly more friendly to things trying to
parse autoconfiguration output.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Mar 2 01:09:13 1996 UTC (28 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
oops; spaces -> tabs

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Mar 2 01:07:47 1996 UTC (28 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +6 -3 lines
if not PCIVERBOSE, don't say that vendor/product is "unknown," just say
what it is.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Feb 28 01:44:43 1996 UTC (28 years, 9 months ago) by cgd
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -73 lines
make PCI bus match/attach and sub-device attachment machine-independent.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jan 22 21:08:10 1996 UTC (28 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +28 -32 lines
update PCIVERBOSE code in various ways:
	(1) remove the 'UNSUPP' keyword from the device list,
	    because it can't be reasonably used (becuase different
	    devices may be supported on different machines, for
	    good reason).
	(2) enhance pci_devinfo so that class/subclass information
	    is optional (so pci_devinfo can be used by drivers that
	    match classes of devices, and want to look up the
	    devices' names easily).
	(3) more known vendors and devices.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Aug 16 04:54:50 1995 UTC (29 years, 3 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -3 lines
check for null subclass pointer.  From Todd Mummert

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jun 21 03:56:09 1995 UTC (29 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
fix reference to incorrect struct (paste-o)

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Jun 18 01:28:23 1995 UTC (29 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +215 -9 lines
define and call "pci_devinfo()", which creates a string from the
vendor & product IDs and class information, which is printed if device
isn't found.  Optionally (via "PCIVERBOSE" option) does table lookup
to try to see if it knows what the device really is (informational only...).

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jun 17 22:40:34 1995 UTC (29 years, 5 months ago) by cgd
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -2 lines
more appropriate name, as this only has PCI support subroutines.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue May 23 03:43:06 1995 UTC (29 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +36 -60 lines
split single-subdevice lookup & attachment into a subroutine
(pci_attach_subdev()).  remove pciattach() function and the pcicd cfdriver
struct, the former because thre are a lot of attachment actions which really
are machine-dependent (perhaps even "most"), and the latter because now that
both pcimatch() and pciattach() are machine-dependent it's bad style to
declare them here and it gains nothing.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jan 27 05:44:32 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
include files from the correct places.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Nov 4 09:42:22 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +25 -21 lines
Make a wrapper match function to check the bus and device numbers, rather
than insisting that every driver do it.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Nov 3 22:27:16 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -16 lines
Rename pciprobe() to pcimatch(), and move it to pci_machdep.c.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Nov 3 22:15:25 1994 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +7 -25 lines
Always use direct configuration.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Oct 27 04:21:38 1994 UTC (30 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
new RCS ID format.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 10 04:38:34 1994 UTC (30 years, 4 months ago) by mycroft
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +4 -1 lines
update from trunk

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Aug 10 04:37:52 1994 UTC (30 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -1 lines
Update some comments.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Aug 9 00:47:49 1994 UTC (30 years, 4 months ago) by mycroft
Branches: MAIN
Add PCI autoconfiguration support.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>