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


Default branch: MAIN


Revision 1.243 / (download) - annotate - [select for diffs], Thu Aug 10 20:02:56 2023 UTC (7 months, 2 weeks ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.242: +3 -3 lines
Diff to previous 1.242 (colored) to selected 1.1.2.1 (colored)

fix typos in comments.

Revision 1.242 / (download) - annotate - [select for diffs], Tue Feb 1 01:28:26 2022 UTC (2 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-10-base, 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
Changes since 1.241: +7 -7 lines
Diff to previous 1.241 (colored) to selected 1.1.2.1 (colored)

Fix typo. Found by rillig. s/vendor specific/vendor-specific/

Revision 1.241 / (download) - annotate - [select for diffs], Mon Jan 31 10:14:55 2022 UTC (2 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.240: +19 -7 lines
Diff to previous 1.240 (colored) to selected 1.1.2.1 (colored)

Decode SCSI programming interface. Whitespace fix.

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

Add three new extended capabilities:

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

Revision 1.183.2.14 / (download) - annotate - [select for diffs], Sat Jan 29 17:11:22 2022 UTC (2 years, 1 month ago) by martin
Branch: netbsd-8
Changes since 1.183.2.13: +221 -7 lines
Diff to previous 1.183.2.13 (colored) to branchpoint 1.183 (colored) next main 1.184 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.215.2.6 / (download) - annotate - [select for diffs], Sat Jan 29 17:08:33 2022 UTC (2 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.215.2.5: +221 -7 lines
Diff to previous 1.215.2.5 (colored) to branchpoint 1.215 (colored) next main 1.216 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.239 / (download) - annotate - [select for diffs], Sat Jan 8 12:59:34 2022 UTC (2 years, 2 months ago) by tnn
Branch: MAIN
Changes since 1.238: +4 -4 lines
Diff to previous 1.238 (colored) to selected 1.1.2.1 (colored)

place additional parens around multiline string constant to appease clang

Revision 1.238 / (download) - annotate - [select for diffs], Fri Jan 7 06:57:57 2022 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.237: +11 -11 lines
Diff to previous 1.237 (colored) to selected 1.1.2.1 (colored)

Two fixes:

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

Revision 1.237 / (download) - annotate - [select for diffs], Fri Jan 7 05:17:38 2022 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.236: +3 -3 lines
Diff to previous 1.236 (colored) to selected 1.1.2.1 (colored)

Add missing comma. Found by tnn@.

Revision 1.236 / (download) - annotate - [select for diffs], Sat Jan 1 03:27:53 2022 UTC (2 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.235: +191 -12 lines
Diff to previous 1.235 (colored) to selected 1.1.2.1 (colored)

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

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

Revision 1.235 / (download) - annotate - [select for diffs], Tue Dec 28 09:19:02 2021 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.234: +3 -3 lines
Diff to previous 1.234 (colored) to selected 1.1.2.1 (colored)

%hhx -> %x

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

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

Revision 1.183.2.13 / (download) - annotate - [select for diffs], Fri Dec 3 19:45:13 2021 UTC (2 years, 3 months ago) by martin
Branch: netbsd-8
Changes since 1.183.2.12: +139 -67 lines
Diff to previous 1.183.2.12 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.215.2.5 / (download) - annotate - [select for diffs], Fri Dec 3 19:40:38 2021 UTC (2 years, 3 months ago) by martin
Branch: netbsd-9
Changes since 1.215.2.4: +49 -24 lines
Diff to previous 1.215.2.4 (colored) to branchpoint 1.215 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.233 / (download) - annotate - [select for diffs], Fri Dec 3 13:27:38 2021 UTC (2 years, 3 months ago) by andvar
Branch: MAIN
Changes since 1.232: +3 -3 lines
Diff to previous 1.232 (colored) to selected 1.1.2.1 (colored)

fix various typos in comments, log messages and documentation.

Revision 1.232 / (download) - annotate - [select for diffs], Sun Oct 10 23:28:36 2021 UTC (2 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.231: +9 -9 lines
Diff to previous 1.231 (colored) to selected 1.1.2.1 (colored)

Use PCI-SIG official acronyms:

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

Revision 1.231 / (download) - annotate - [select for diffs], Sun Oct 10 07:20:01 2021 UTC (2 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.230: +31 -6 lines
Diff to previous 1.230 (colored) to selected 1.1.2.1 (colored)

Add Some PCI config information:

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

Revision 1.230 / (download) - annotate - [select for diffs], Sat Sep 11 19:56:51 2021 UTC (2 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.229: +5 -3 lines
Diff to previous 1.229 (colored) to selected 1.1.2.1 (colored)

add 32.0GT/s to the list of pcie speeds (PCIe 5.x.)

Revision 1.229 / (download) - annotate - [select for diffs], Tue Aug 17 22:00:31 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.228: +6 -6 lines
Diff to previous 1.228 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.228 / (download) - annotate - [select for diffs], Tue Aug 17 17:16:40 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.227: +3 -3 lines
Diff to previous 1.227 (colored) to selected 1.1.2.1 (colored)

s/Windw/Window/ in log message.

Revision 1.225.4.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:25 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.225: +5 -5 lines
Diff to previous 1.225 (colored) next main 1.226 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.227 / (download) - annotate - [select for diffs], Mon Jul 12 04:41:14 2021 UTC (2 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.226: +4 -4 lines
Diff to previous 1.226 (colored) to selected 1.1.2.1 (colored)

s/Precision Time Management/Precision Time Measurement/

Revision 1.226 / (download) - annotate - [select for diffs], Tue Jun 29 21:03:36 2021 UTC (2 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.225: +3 -3 lines
Diff to previous 1.225 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sat Apr 3 22:28:46 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.224: +46 -2 lines
Diff to previous 1.224 (colored) next main 1.225 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.225 / (download) - annotate - [select for diffs], Wed Jan 27 05:00:15 2021 UTC (3 years, 2 months ago) by thorpej
Branch: 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
Changes since 1.224: +46 -2 lines
Diff to previous 1.224 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sun Jul 26 10:46:14 2020 UTC (3 years, 8 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.215.2.3: +18 -4 lines
Diff to previous 1.215.2.3 (colored) to branchpoint 1.215 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sat May 30 10:43:46 2020 UTC (3 years, 9 months ago) by jdolecek
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.223: +18 -4 lines
Diff to previous 1.223 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.222.2.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:04 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.222: +180 -179 lines
Diff to previous 1.222 (colored) next main 1.223 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.201.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:27 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.201.2.1: +284 -250 lines
Diff to previous 1.201.2.1 (colored) to branchpoint 1.201 (colored) next main 1.202 (colored) to selected 1.1.2.1 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.223 / (download) - annotate - [select for diffs], Fri Apr 10 18:32:00 2020 UTC (3 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.222: +180 -179 lines
Diff to previous 1.222 (colored) to selected 1.1.2.1 (colored)

Fix all the random __SHIFTOUT casts by introducing an intermediate macho,
and then deleting and fixing the rest.

Revision 1.222 / (download) - annotate - [select for diffs], Sat Mar 21 17:09:29 2020 UTC (4 years ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200406, bouyer-xenpvh-base
Branch point for: bouyer-xenpvh
Changes since 1.221: +3 -5 lines
Diff to previous 1.221 (colored) to selected 1.1.2.1 (colored)

When parsing Enhanced Allocation entries, use the correct calulation for
finding the next entry.

Revision 1.215.2.3 / (download) - annotate - [select for diffs], Thu Mar 19 19:05:34 2020 UTC (4 years ago) by martin
Branch: netbsd-9
Changes since 1.215.2.2: +31 -5 lines
Diff to previous 1.215.2.2 (colored) to branchpoint 1.215 (colored) to selected 1.1.2.1 (colored)

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

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

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

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

  Remove unused shift and mask definitions.

  Add comment.

Revision 1.218.2.2 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:47 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.218.2.1: +31 -5 lines
Diff to previous 1.218.2.1 (colored) to branchpoint 1.218 (colored) next main 1.219 (colored) to selected 1.1.2.1 (colored)

Sync with head.

Revision 1.221 / (download) - annotate - [select for diffs], Sat Jan 25 08:13:39 2020 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3, ad-namecache-base2
Changes since 1.220: +25 -4 lines
Diff to previous 1.220 (colored) to selected 1.1.2.1 (colored)

Add PCIe 4.0 stuff a little:

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

Revision 1.220 / (download) - annotate - [select for diffs], Sat Jan 25 07:59:14 2020 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.219: +8 -3 lines
Diff to previous 1.219 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.215.2.2 / (download) - annotate - [select for diffs], Tue Jan 21 15:15:23 2020 UTC (4 years, 2 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.215.2.1: +43 -36 lines
Diff to previous 1.215.2.1 (colored) to branchpoint 1.215 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.218.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:31 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.218: +42 -35 lines
Diff to previous 1.218 (colored) to selected 1.1.2.1 (colored)

Sync with head.

Revision 1.219 / (download) - annotate - [select for diffs], Fri Jan 17 02:08:25 2020 UTC (4 years, 2 months ago) by msaitoh
Branch: MAIN
CVS Tags: ad-namecache-base1
Changes since 1.218: +42 -35 lines
Diff to previous 1.218 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Wed Dec 11 07:33:55 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: ad-namecache-base
Branch point for: ad-namecache
Changes since 1.217: +3 -3 lines
Diff to previous 1.217 (colored) to selected 1.1.2.1 (colored)

s/enalbe/enable/

Revision 1.215.2.1 / (download) - annotate - [select for diffs], Thu Sep 26 18:52:57 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.215: +36 -37 lines
Diff to previous 1.215 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Thu Sep 26 18:14:54 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.183.2.11: +44 -37 lines
Diff to previous 1.183.2.11 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.217 / (download) - annotate - [select for diffs], Fri Sep 20 10:04:45 2019 UTC (4 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.216: +7 -7 lines
Diff to previous 1.216 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.216 / (download) - annotate - [select for diffs], Wed Aug 21 02:10:20 2019 UTC (4 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.215: +31 -32 lines
Diff to previous 1.215 (colored) to selected 1.1.2.1 (colored)

 Whitespace fixes. No functional change.

Revision 1.215 / (download) - annotate - [select for diffs], Thu Jul 18 07:49:26 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.214: +4 -4 lines
Diff to previous 1.214 (colored) to selected 1.1.2.1 (colored)

 Remove whitespace for consistency.

Revision 1.183.2.11 / (download) - annotate - [select for diffs], Wed Jul 17 15:55:31 2019 UTC (4 years, 8 months ago) by martin
Branch: netbsd-8
Changes since 1.183.2.10: +3 -3 lines
Diff to previous 1.183.2.10 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Wed Jul 17 15:34:31 2019 UTC (4 years, 8 months ago) by martin
Branch: netbsd-8
Changes since 1.183.2.9: +7 -4 lines
Diff to previous 1.183.2.9 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Tue Jul 9 12:17:13 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.213: +5 -2 lines
Diff to previous 1.213 (colored) to selected 1.1.2.1 (colored)

 Print extend capability from 0x25 to 0x29 correctly.

Revision 1.213 / (download) - annotate - [select for diffs], Tue Jul 9 12:13:42 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.212: +3 -3 lines
Diff to previous 1.212 (colored) to selected 1.1.2.1 (colored)

Identify 16GT/s.

Revision 1.201.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:17 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.201: +231 -61 lines
Diff to previous 1.201 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.212 / (download) - annotate - [select for diffs], Fri Mar 1 09:26:00 2019 UTC (5 years ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.211: +34 -32 lines
Diff to previous 1.211 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.211 / (download) - annotate - [select for diffs], Thu Feb 28 16:56:35 2019 UTC (5 years ago) by khorben
Branch: MAIN
Changes since 1.210: +4 -4 lines
Diff to previous 1.210 (colored) to selected 1.1.2.1 (colored)

Typo (s/vaule/value/)

Revision 1.200.2.6 / (download) - annotate - [select for diffs], Wed Dec 26 14:01:50 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.200.2.5: +8 -13 lines
Diff to previous 1.200.2.5 (colored) to branchpoint 1.200 (colored) next main 1.201 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.183.2.9 / (download) - annotate - [select for diffs], Tue Dec 4 11:29:41 2018 UTC (5 years, 3 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.183.2.8: +170 -15 lines
Diff to previous 1.183.2.8 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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

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

  Decode PCI Enhanced Allocation.

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

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

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

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

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

Revision 1.210 / (download) - annotate - [select for diffs], Fri Nov 30 10:18:37 2018 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.209: +4 -7 lines
Diff to previous 1.209 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.209 / (download) - annotate - [select for diffs], Fri Nov 30 09:05:35 2018 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.208: +6 -7 lines
Diff to previous 1.208 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.208 / (download) - annotate - [select for diffs], Fri Nov 30 08:19:45 2018 UTC (5 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.207: +2 -3 lines
Diff to previous 1.207 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Mon Nov 26 01:52:32 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.200.2.4: +164 -4 lines
Diff to previous 1.200.2.4 (colored) to branchpoint 1.200 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.207 / (download) - annotate - [select for diffs], Mon Nov 5 03:51:31 2018 UTC (5 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.206: +164 -4 lines
Diff to previous 1.206 (colored) to selected 1.1.2.1 (colored)

 Decode PCI Enhanced Allocation.

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

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

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

Revision 1.200.2.4 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:31 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.200.2.3: +9 -7 lines
Diff to previous 1.200.2.3 (colored) to branchpoint 1.200 (colored) to selected 1.1.2.1 (colored)

Sync with head

Revision 1.206 / (download) - annotate - [select for diffs], Thu Oct 4 07:43:12 2018 UTC (5 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Changes since 1.205: +4 -4 lines
Diff to previous 1.205 (colored) to selected 1.1.2.1 (colored)

 Don't print extra newline if the PCI extended configuration space doesn't exist.

Revision 1.205 / (download) - annotate - [select for diffs], Wed Oct 3 06:46:09 2018 UTC (5 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.204: +7 -5 lines
Diff to previous 1.204 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.200.2.3 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:51 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.200.2.2: +15 -2 lines
Diff to previous 1.200.2.2 (colored) to branchpoint 1.200 (colored) to selected 1.1.2.1 (colored)

Ssync with HEAD

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

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) - annotate - [select for diffs], Sun Sep 23 17:40:37 2018 UTC (5 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.183.2.6: +3 -2 lines
Diff to previous 1.183.2.6 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.203 / (download) - annotate - [select for diffs], Wed Sep 12 07:42:22 2018 UTC (5 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.202: +3 -2 lines
Diff to previous 1.202 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.200.2.2 / (download) - annotate - [select for diffs], Sat Jul 28 04:37:46 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.200.2.1: +9 -11 lines
Diff to previous 1.200.2.1 (colored) to branchpoint 1.200 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.183.2.6 / (download) - annotate - [select for diffs], Thu Jul 26 23:11:59 2018 UTC (5 years, 8 months ago) by snj
Branch: netbsd-8
Changes since 1.183.2.5: +9 -11 lines
Diff to previous 1.183.2.5 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.183.2.5 / (download) - annotate - [select for diffs], Thu Jul 26 21:07:19 2018 UTC (5 years, 8 months ago) by snj
Branch: netbsd-8
Changes since 1.183.2.4: +3 -3 lines
Diff to previous 1.183.2.4 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.202 / (download) - annotate - [select for diffs], Tue Jul 3 04:56:59 2018 UTC (5 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Changes since 1.201: +9 -11 lines
Diff to previous 1.201 (colored) to selected 1.1.2.1 (colored)

- Print Power Management Control/status register in 32bit.
- Simplify.

Revision 1.200.2.1 / (download) - annotate - [select for diffs], Mon May 21 04:36:06 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.200: +3 -3 lines
Diff to previous 1.200 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

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

 Fix typo. s/TPL/TLP/

Revision 1.183.2.4 / (download) - annotate - [select for diffs], Mon Feb 26 00:56:29 2018 UTC (6 years, 1 month ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.183.2.3: +85 -53 lines
Diff to previous 1.183.2.3 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.199 / (download) - annotate - [select for diffs], Thu Feb 1 08:18:47 2018 UTC (6 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.198: +55 -48 lines
Diff to previous 1.198 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Thu Feb 1 02:50:51 2018 UTC (6 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.197: +3 -3 lines
Diff to previous 1.197 (colored) to selected 1.1.2.1 (colored)

 "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) - annotate - [select for diffs], Mon Dec 18 04:48:28 2017 UTC (6 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.196: +12 -4 lines
Diff to previous 1.196 (colored) to selected 1.1.2.1 (colored)

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

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

Revision 1.92.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:08 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.92.2.3: +2778 -571 lines
Diff to previous 1.92.2.3 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored) to selected 1.1.2.1 (colored)

update from HEAD

Revision 1.183.2.3 / (download) - annotate - [select for diffs], Wed Nov 22 14:38:47 2017 UTC (6 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.183.2.2: +11 -10 lines
Diff to previous 1.183.2.2 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Tue Nov 21 14:16:38 2017 UTC (6 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.183.2.1: +143 -17 lines
Diff to previous 1.183.2.1 (colored) to branchpoint 1.183 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.196 / (download) - annotate - [select for diffs], Wed Oct 25 08:21:41 2017 UTC (6 years, 5 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.195: +9 -9 lines
Diff to previous 1.195 (colored) to selected 1.1.2.1 (colored)

 Whitespace fix.

Revision 1.195 / (download) - annotate - [select for diffs], Tue Oct 24 08:32:41 2017 UTC (6 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.194: +4 -3 lines
Diff to previous 1.194 (colored) to selected 1.1.2.1 (colored)

 Print Error Source Identification register correctly.

Revision 1.194 / (download) - annotate - [select for diffs], Thu Oct 19 05:52:57 2017 UTC (6 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.193: +13 -9 lines
Diff to previous 1.193 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.193 / (download) - annotate - [select for diffs], Thu Oct 12 02:40:34 2017 UTC (6 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.192: +8 -7 lines
Diff to previous 1.192 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Tue Oct 10 03:11:01 2017 UTC (6 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.191: +87 -4 lines
Diff to previous 1.191 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.191 / (download) - annotate - [select for diffs], Thu Oct 5 06:14:30 2017 UTC (6 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.190: +43 -5 lines
Diff to previous 1.190 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.133.2.8 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:06 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.133.2.7: +693 -309 lines
Diff to previous 1.133.2.7 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

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

- 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) - annotate - [select for diffs], Tue Jul 4 14:35:21 2017 UTC (6 years, 8 months ago) by martin
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.183: +83 -51 lines
Diff to previous 1.183 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.189 / (download) - annotate - [select for diffs], Thu Jun 15 15:38:18 2017 UTC (6 years, 9 months ago) by flxd
Branch: MAIN
Changes since 1.188: +8 -8 lines
Diff to previous 1.188 (colored) to selected 1.1.2.1 (colored)

Fix printf format/argument.

Revision 1.188 / (download) - annotate - [select for diffs], Thu Jun 15 06:51:18 2017 UTC (6 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.187: +11 -14 lines
Diff to previous 1.187 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Thu Jun 15 05:42:27 2017 UTC (6 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.186: +42 -31 lines
Diff to previous 1.186 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Thu Jun 8 03:39:18 2017 UTC (6 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.185: +15 -8 lines
Diff to previous 1.185 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Wed Jun 7 05:30:49 2017 UTC (6 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.184: +21 -5 lines
Diff to previous 1.184 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Mon Jun 5 13:35:33 2017 UTC (6 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.183: +3 -2 lines
Diff to previous 1.183 (colored) to selected 1.1.2.1 (colored)

 Add missing return to print the Slot Power Limit Value correctly.

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

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

Revision 1.182 / (download) - annotate - [select for diffs], Wed May 24 06:51:27 2017 UTC (6 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.181: +36 -2 lines
Diff to previous 1.181 (colored) to selected 1.1.2.1 (colored)

 Decode TPH Requester Control register.

Revision 1.181 / (download) - annotate - [select for diffs], Mon May 22 04:21:20 2017 UTC (6 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.180: +53 -38 lines
Diff to previous 1.180 (colored) to selected 1.1.2.1 (colored)

- 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) - annotate - [select for diffs], Thu May 11 02:58:38 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.178.2.1: +6 -7 lines
Diff to previous 1.178.2.1 (colored) to branchpoint 1.178 (colored) next main 1.179 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.180 / (download) - annotate - [select for diffs], Tue May 9 11:17:07 2017 UTC (6 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2
Changes since 1.179: +6 -7 lines
Diff to previous 1.179 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Tue May 2 03:19:18 2017 UTC (6 years, 10 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.178: +3 -2 lines
Diff to previous 1.178 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.179 / (download) - annotate - [select for diffs], Thu Apr 27 04:26:12 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: prg-localcount2-base1
Changes since 1.178: +3 -2 lines
Diff to previous 1.178 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Wed Apr 26 02:53:13 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.148.2.3: +179 -29 lines
Diff to previous 1.148.2.3 (colored) to branchpoint 1.148 (colored) next main 1.149 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:48 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.156: +557 -258 lines
Diff to previous 1.156 (colored) next main 1.157 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.178 / (download) - annotate - [select for diffs], Fri Apr 21 11:49:31 2017 UTC (6 years, 11 months ago) by kre
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-20170426, bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.177: +3 -3 lines
Diff to previous 1.177 (colored) to selected 1.1.2.1 (colored)


For want of a comma, the compiler was lost.

Revision 1.177 / (download) - annotate - [select for diffs], Fri Apr 21 09:01:52 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.176: +9 -2 lines
Diff to previous 1.176 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.176 / (download) - annotate - [select for diffs], Thu Apr 20 08:45:25 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.175: +142 -4 lines
Diff to previous 1.175 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.175 / (download) - annotate - [select for diffs], Thu Apr 20 05:48:38 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.174: +4 -4 lines
Diff to previous 1.174 (colored) to selected 1.1.2.1 (colored)

 Add 0x for register output.

Revision 1.174 / (download) - annotate - [select for diffs], Tue Apr 18 10:00:26 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.173: +3 -3 lines
Diff to previous 1.173 (colored) to selected 1.1.2.1 (colored)

 Add missing ':'

Revision 1.173 / (download) - annotate - [select for diffs], Mon Apr 17 09:33:00 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.172: +8 -8 lines
Diff to previous 1.172 (colored) to selected 1.1.2.1 (colored)

 Use macro. No functional change.

Revision 1.172 / (download) - annotate - [select for diffs], Thu Apr 6 08:57:01 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: jdolecek-ncq-base, jdolecek-ncq
Changes since 1.171: +8 -8 lines
Diff to previous 1.171 (colored) to selected 1.1.2.1 (colored)

Fix typos:
- s/Readness/Readiness/
- s/Presense/Presence/
- s/supportted/supported/
- s/Rquester/Requester/
- s/Check Enab/Check Enable/

Revision 1.171 / (download) - annotate - [select for diffs], Thu Mar 30 08:44:33 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.170: +8 -5 lines
Diff to previous 1.170 (colored) to selected 1.1.2.1 (colored)

 Fix a bug that SR-IOV's system page size was doubled. ffs()'s bit are
numbered starting from 1.

Revision 1.170 / (download) - annotate - [select for diffs], Tue Mar 28 10:30:27 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.169: +9 -7 lines
Diff to previous 1.169 (colored) to selected 1.1.2.1 (colored)

 Use macro. No functional change.

Revision 1.169 / (download) - annotate - [select for diffs], Tue Mar 28 10:28:59 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.168: +3 -3 lines
Diff to previous 1.168 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Mon Mar 20 06:57:30 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.148.2.2: +381 -232 lines
Diff to previous 1.148.2.2 (colored) to branchpoint 1.148 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.168 / (download) - annotate - [select for diffs], Fri Mar 17 11:20:16 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.167: +26 -19 lines
Diff to previous 1.167 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Fri Mar 17 08:51:44 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.166: +46 -79 lines
Diff to previous 1.166 (colored) to selected 1.1.2.1 (colored)

- 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) - annotate - [select for diffs], Tue Mar 14 08:27:13 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.165: +19 -0 lines
Diff to previous 1.165 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Tue Mar 14 08:25:35 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.164: +26 -14 lines
Diff to previous 1.164 (colored) to selected 1.1.2.1 (colored)

 Pint PCI Interface name if available.

Revision 1.164 / (download) - annotate - [select for diffs], Tue Mar 14 08:20:11 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.163: +6 -2 lines
Diff to previous 1.163 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.163 / (download) - annotate - [select for diffs], Tue Mar 14 08:09:31 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
Changes since 1.162: +29 -21 lines
Diff to previous 1.162 (colored) to selected 1.1.2.1 (colored)

No functional change:
 - modify variable names
 - KNF

Revision 1.162 / (download) - annotate - [select for diffs], Mon Feb 27 16:16:23 2017 UTC (7 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.161: +12 -10 lines
Diff to previous 1.161 (colored) to selected 1.1.2.1 (colored)

fix printf formats (clang build)

Revision 1.161 / (download) - annotate - [select for diffs], Mon Feb 27 14:13:56 2017 UTC (7 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.160: +82 -3 lines
Diff to previous 1.160 (colored) to selected 1.1.2.1 (colored)

 Decode AGP capability.

Revision 1.160 / (download) - annotate - [select for diffs], Sun Feb 26 05:41:47 2017 UTC (7 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.159: +33 -38 lines
Diff to previous 1.159 (colored) to selected 1.1.2.1 (colored)

 - Fix the base power's value in the power budget capability.
 - Fix typo (s/Maximun/Maximum/)

Revision 1.159 / (download) - annotate - [select for diffs], Fri Feb 24 06:39:54 2017 UTC (7 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.158: +43 -47 lines
Diff to previous 1.158 (colored) to selected 1.1.2.1 (colored)

 Use macro. KNF. No functional change.

Revision 1.158 / (download) - annotate - [select for diffs], Fri Feb 24 05:04:46 2017 UTC (7 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.157: +4 -4 lines
Diff to previous 1.157 (colored) to selected 1.1.2.1 (colored)

Fix 0x%u...

Revision 1.157 / (download) - annotate - [select for diffs], Wed Feb 15 06:53:55 2017 UTC (7 years, 1 month ago) by msaitoh
Branch: MAIN
Changes since 1.156: +111 -51 lines
Diff to previous 1.156 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.133.2.7 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:30 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.133.2.6: +4 -3 lines
Diff to previous 1.133.2.6 (colored) to branchpoint 1.133 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.124.2.2.4.1 / (download) - annotate - [select for diffs], Wed Jan 18 08:46:27 2017 UTC (7 years, 2 months ago) by skrll
Branch: netbsd-7-nhusb
Changes since 1.124.2.2: +52 -21 lines
Diff to previous 1.124.2.2 (colored) next main 1.124.2.3 (colored) to selected 1.1.2.1 (colored)

Sync with netbsd-5

Revision 1.148.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:33 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.148.2.1: +4 -3 lines
Diff to previous 1.148.2.1 (colored) to branchpoint 1.148 (colored) to selected 1.1.2.1 (colored)

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

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

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

Revision 1.124.2.3 / (download) - annotate - [select for diffs], Fri Dec 9 04:56:25 2016 UTC (7 years, 3 months ago) by snj
Branch: 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
Changes since 1.124.2.2: +52 -21 lines
Diff to previous 1.124.2.2 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Mon Dec 5 10:55:03 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.133.2.5: +148 -22 lines
Diff to previous 1.133.2.5 (colored) to branchpoint 1.133 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.148.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:10 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.148: +212 -23 lines
Diff to previous 1.148 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.155 / (download) - annotate - [select for diffs], Wed Nov 2 00:39:56 2016 UTC (7 years, 4 months ago) by pgoyette
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161204
Changes since 1.154: +52 -18 lines
Diff to previous 1.154 (colored) to selected 1.1.2.1 (colored)

Protect against buffer overflow.

Revision 1.154 / (download) - annotate - [select for diffs], Mon Oct 31 09:13:20 2016 UTC (7 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.153: +12 -3 lines
Diff to previous 1.153 (colored) to selected 1.1.2.1 (colored)

Stopgap fix for in-kernel compilation (differences between humanize_number(3)
and humanize_number(9)), ok: msaitoh

Revision 1.153 / (download) - annotate - [select for diffs], Mon Oct 31 05:10:45 2016 UTC (7 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.152: +56 -7 lines
Diff to previous 1.152 (colored) to selected 1.1.2.1 (colored)

Decode Resizable BAR.

Revision 1.152 / (download) - annotate - [select for diffs], Thu Oct 20 04:11:02 2016 UTC (7 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.151: +34 -3 lines
Diff to previous 1.151 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.151 / (download) - annotate - [select for diffs], Wed Oct 19 04:23:37 2016 UTC (7 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.150: +5 -2 lines
Diff to previous 1.150 (colored) to selected 1.1.2.1 (colored)

Add VF Resizable BARs ECN.

Revision 1.133.2.5 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:43 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.133.2.4: +75 -8 lines
Diff to previous 1.133.2.4 (colored) to branchpoint 1.133 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.150 / (download) - annotate - [select for diffs], Mon Aug 22 08:35:42 2016 UTC (7 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20161004, localcount-20160914
Changes since 1.149: +6 -2 lines
Diff to previous 1.149 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Wed Aug 17 06:32:01 2016 UTC (7 years, 7 months ago) by msaitoh
Branch: MAIN
Changes since 1.148: +67 -4 lines
Diff to previous 1.148 (colored) to selected 1.1.2.1 (colored)

Add Dynamic Power Allocation (DPA) ECN support.

Revision 1.133.2.4 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:04 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.133.2.3: +5 -5 lines
Diff to previous 1.133.2.3 (colored) to branchpoint 1.133 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.148 / (download) - annotate - [select for diffs], Mon Jun 20 10:02:43 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.147: +5 -5 lines
Diff to previous 1.147 (colored) to selected 1.1.2.1 (colored)

 B260 "Slot Power Limit" ECN. PCIe 3.1 ECN. September 18, 2015.

Revision 1.133.2.3 / (download) - annotate - [select for diffs], Sun May 29 08:44:22 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.133.2.2: +49 -4 lines
Diff to previous 1.133.2.2 (colored) to branchpoint 1.133 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.147 / (download) - annotate - [select for diffs], Wed May 11 05:12:57 2016 UTC (7 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.146: +49 -4 lines
Diff to previous 1.146 (colored) to selected 1.1.2.1 (colored)

Add Precision Time Management (PTM) ECN.

Revision 1.133.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:50 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.133.2.1: +1581 -57 lines
Diff to previous 1.133.2.1 (colored) to branchpoint 1.133 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD (as of 26th Dec)

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

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

Revision 1.145 / (download) - annotate - [select for diffs], Tue Nov 17 18:26:50 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.144: +34 -10 lines
Diff to previous 1.144 (colored) to selected 1.1.2.1 (colored)

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

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

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

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

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

Revision 1.142 / (download) - annotate - [select for diffs], Fri Nov 13 03:56:44 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.141: +3 -3 lines
Diff to previous 1.141 (colored) to selected 1.1.2.1 (colored)

 Fix register offset to print HyperTransport registers correctly.

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

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

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

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

Revision 1.139 / (download) - annotate - [select for diffs], Wed Oct 21 15:01:01 2015 UTC (8 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.138: +14 -11 lines
Diff to previous 1.138 (colored) to selected 1.1.2.1 (colored)

Fix compile error...

Revision 1.138 / (download) - annotate - [select for diffs], Wed Oct 21 12:54:59 2015 UTC (8 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.137: +91 -7 lines
Diff to previous 1.137 (colored) to selected 1.1.2.1 (colored)

 Decode SATA Capability and Multicast Extendeded Capability.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Oct 3 15:22:14 2015 UTC (8 years, 5 months ago) by joerg
Branch: MAIN
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (colored) to selected 1.1.2.1 (colored)

Fix format string.

Revision 1.136 / (download) - annotate - [select for diffs], Fri Oct 2 07:04:17 2015 UTC (8 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored) to selected 1.1.2.1 (colored)

 Fix a bug that the TPH ST Table is wrongly decoded. Found by llvm.

Revision 1.135 / (download) - annotate - [select for diffs], Fri Oct 2 05:22:53 2015 UTC (8 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.134: +1211 -14 lines
Diff to previous 1.134 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:59 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.133: +3 -2 lines
Diff to previous 1.133 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

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

 Add NVMe.

Revision 1.124.2.2 / (download) - annotate - [select for diffs], Sun Dec 14 16:49:35 2014 UTC (9 years, 3 months ago) by martin
Branch: 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
Changes since 1.124.2.1: +3 -2 lines
Diff to previous 1.124.2.1 (colored) to branchpoint 1.124 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Fri Dec 12 19:03:17 2014 UTC (9 years, 3 months ago) by martin
Branch: netbsd-7
Changes since 1.124: +118 -124 lines
Diff to previous 1.124 (colored) to selected 1.1.2.1 (colored)

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

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

Add PCIe CRS Software Visibility bit.

Revision 1.132 / (download) - annotate - [select for diffs], Thu Oct 23 13:44:37 2014 UTC (9 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.131: +82 -108 lines
Diff to previous 1.131 (colored) to selected 1.1.2.1 (colored)

- 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) - annotate - [select for diffs], Thu Oct 23 13:40:15 2014 UTC (9 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.130: +3 -3 lines
Diff to previous 1.130 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Thu Oct 23 09:59:56 2014 UTC (9 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.129: +3 -3 lines
Diff to previous 1.129 (colored) to selected 1.1.2.1 (colored)

Fix typo in comment.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Oct 6 08:00:57 2014 UTC (9 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.128: +6 -6 lines
Diff to previous 1.128 (colored) to selected 1.1.2.1 (colored)

s/genric/generic/

Revision 1.128 / (download) - annotate - [select for diffs], Mon Oct 6 07:15:56 2014 UTC (9 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.127: +32 -11 lines
Diff to previous 1.127 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.127 / (download) - annotate - [select for diffs], Mon Sep 22 13:01:44 2014 UTC (9 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.126: +3 -4 lines
Diff to previous 1.126 (colored) to selected 1.1.2.1 (colored)

 Always print the Slot implemented bit in the PCIe Capabilities
Register using with onoff().

Revision 1.126 / (download) - annotate - [select for diffs], Sun Sep 21 14:30:22 2014 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.125: +17 -80 lines
Diff to previous 1.125 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Fri Sep 5 05:29:16 2014 UTC (9 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.124: +22 -22 lines
Diff to previous 1.124 (colored) to selected 1.1.2.1 (colored)

Don't use class or typename as a variable name.

Revision 1.92.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:43 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.92.2.2: +974 -468 lines
Diff to previous 1.92.2.2 (colored) to branchpoint 1.92 (colored) to selected 1.1.2.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:54 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.106: +975 -469 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.1.2.1 (colored)

Rebase.

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

Add IOMMU and the Root Complex Event Collector.

Revision 1.123 / (download) - annotate - [select for diffs], Fri May 30 05:04:21 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.122: +7 -9 lines
Diff to previous 1.122 (colored) to selected 1.1.2.1 (colored)

- Remove some obsoleted comments.
- KNF.

Revision 1.122 / (download) - annotate - [select for diffs], Fri May 30 03:42:38 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.121: +112 -8 lines
Diff to previous 1.121 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.121 / (download) - annotate - [select for diffs], Tue May 27 16:50:31 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.120: +8 -4 lines
Diff to previous 1.120 (colored) to selected 1.1.2.1 (colored)

Print "range:  not set" if the decode window isn't set.

Revision 1.120 / (download) - annotate - [select for diffs], Tue May 27 16:26:15 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.119: +30 -4 lines
Diff to previous 1.119 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.119 / (download) - annotate - [select for diffs], Sun May 25 14:56:46 2014 UTC (9 years, 10 months ago) by njoly
Branch: MAIN
Changes since 1.118: +4 -3 lines
Diff to previous 1.118 (colored) to selected 1.1.2.1 (colored)

Do not crash if subclassp == NULL, seen while attaching rstx(4) which
match PCI_CLASS_UNDEFINED class.

Revision 1.118 / (download) - annotate - [select for diffs], Sat May 24 18:06:21 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.117: +77 -11 lines
Diff to previous 1.117 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.117 / (download) - annotate - [select for diffs], Sat May 24 15:20:32 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.116: +353 -132 lines
Diff to previous 1.116 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.116 / (download) - annotate - [select for diffs], Sat May 24 15:09:31 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.115: +6 -9 lines
Diff to previous 1.115 (colored) to selected 1.1.2.1 (colored)

- 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) - annotate - [select for diffs], Fri May 23 19:31:23 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.114: +227 -177 lines
Diff to previous 1.114 (colored) to selected 1.1.2.1 (colored)

No functional change:
- KNF
- Sort in PCI capability ID order.
- Add comments.

Revision 1.114 / (download) - annotate - [select for diffs], Fri May 23 18:32:13 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.113: +27 -16 lines
Diff to previous 1.113 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.113 / (download) - annotate - [select for diffs], Fri May 23 17:54:08 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.88.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:40:26 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.88.2.3: +572 -75 lines
Diff to previous 1.88.2.3 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.1.2.1 (colored)

sync with head.

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

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

Revision 1.105.4.2 / (download) - annotate - [select for diffs], Sun May 18 17:45:41 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.105.4.1: +219 -193 lines
Diff to previous 1.105.4.1 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.112 / (download) - annotate - [select for diffs], Thu May 15 06:58:19 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.111: +118 -163 lines
Diff to previous 1.111 (colored) to selected 1.1.2.1 (colored)

Use onoff() macro.

Revision 1.111 / (download) - annotate - [select for diffs], Tue May 13 18:07:24 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.110: +4 -2 lines
Diff to previous 1.110 (colored) to selected 1.1.2.1 (colored)

Print 32bit I/O region flag and 64bit memory region flag.

Revision 1.110 / (download) - annotate - [select for diffs], Mon May 12 23:01:40 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.109: +63 -11 lines
Diff to previous 1.109 (colored) to selected 1.1.2.1 (colored)

Print the range of I/O, non-prefechable memory and prefechable memory.

Revision 1.109 / (download) - annotate - [select for diffs], Mon May 12 11:51:35 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.108: +44 -31 lines
Diff to previous 1.108 (colored) to selected 1.1.2.1 (colored)

Use macro.

Revision 1.108 / (download) - annotate - [select for diffs], Mon May 12 11:27:31 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) to selected 1.1.2.1 (colored)

Fix newline problem which was added in previous commit.

Revision 1.107 / (download) - annotate - [select for diffs], Fri May 9 14:51:26 2014 UTC (9 years, 10 months ago) by msaitoh
Branch: MAIN
Changes since 1.106: +6 -2 lines
Diff to previous 1.106 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.75.10.1.4.2 / (download) - annotate - [select for diffs], Tue Nov 5 18:34:21 2013 UTC (10 years, 4 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.75.10.1.4.1: +28 -2 lines
Diff to previous 1.75.10.1.4.1 (colored) to branchpoint 1.75.10.1 (colored) next main 1.76 (colored) to selected 1.1.2.1 (colored)

Pull in support for pci_aprint_devinfo_fancy

Revision 1.105.4.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:25 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Mon Aug 5 10:09:53 2013 UTC (10 years, 7 months ago) by martin
Branch: netbsd-6
Changes since 1.90: +530 -45 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.1.2.1 (colored)

Pullup

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

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

Requested by msaitoh in ticket #928

Revision 1.106 / (download) - annotate - [select for diffs], Mon Aug 5 07:53:31 2013 UTC (10 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored) to selected 1.1.2.1 (colored)

One more Gb/s -> GT/s fix.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:18 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.92.2.1: +526 -46 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored) to selected 1.1.2.1 (colored)

resync from head

Revision 1.105 / (download) - annotate - [select for diffs], Sun Apr 21 23:54:44 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.104: +277 -103 lines
Diff to previous 1.104 (colored) to selected 1.1.2.1 (colored)

- 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) - annotate - [select for diffs], Sun Apr 21 23:46:06 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.103: +5 -5 lines
Diff to previous 1.103 (colored) to selected 1.1.2.1 (colored)

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

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

Delete "PCI_" from PCIX and PICE capability registers.

Revision 1.102 / (download) - annotate - [select for diffs], Wed Apr 17 08:07:40 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.101: +3 -4 lines
Diff to previous 1.101 (colored) to selected 1.1.2.1 (colored)

 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) - annotate - [select for diffs], Wed Apr 17 06:31:15 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.100: +184 -146 lines
Diff to previous 1.100 (colored) to selected 1.1.2.1 (colored)

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

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

Add PCI_CAP_SUBVENDOR (= 0x0d).

Revision 1.99 / (download) - annotate - [select for diffs], Tue Apr 16 15:50:58 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.98: +261 -6 lines
Diff to previous 1.98 (colored) to selected 1.1.2.1 (colored)

Decode some PCIe capability register bits.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Apr 16 14:34:34 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.97: +30 -25 lines
Diff to previous 1.97 (colored) to selected 1.1.2.1 (colored)

Use macro.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Apr 16 09:13:04 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.96 / (download) - annotate - [select for diffs], Mon Apr 15 18:51:29 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.95: +8 -2 lines
Diff to previous 1.95 (colored) to selected 1.1.2.1 (colored)

Print some PCIE device type.

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:20 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.92: +5 -3 lines
Diff to previous 1.92 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.88.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:37 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.88.2.2: +5 -3 lines
Diff to previous 1.88.2.2 (colored) to branchpoint 1.88 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.95 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:35 2012 UTC (11 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored) to selected 1.1.2.1 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Oct 20 05:32:25 2012 UTC (11 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.93: +3 -2 lines
Diff to previous 1.93 (colored) to selected 1.1.2.1 (colored)

Add NVM to the pci mass storage subclass

Revision 1.93 / (download) - annotate - [select for diffs], Sun Sep 23 01:10:10 2012 UTC (11 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.92: +3 -2 lines
Diff to previous 1.92 (colored) to selected 1.1.2.1 (colored)

add an entry for subclass HD audio.

Revision 1.88.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:07:58 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.88.2.1: +9 -6 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.88.6.3 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:51 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88.6.2: +9 -6 lines
Diff to previous 1.88.6.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.1.2.1 (colored)

sync to latest -current.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Apr 24 09:53:41 2012 UTC (11 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.91: +9 -6 lines
Diff to previous 1.91 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Tue Apr 17 00:07:52 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.88: +29 -3 lines
Diff to previous 1.88 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.88.6.2 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:27 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88.6.1: +3 -3 lines
Diff to previous 1.88.6.1 (colored) to branchpoint 1.88 (colored) to selected 1.1.2.1 (colored)

sync to latest -current.

Revision 1.91 / (download) - annotate - [select for diffs], Wed Mar 21 10:14:19 2012 UTC (12 years ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base4, jmcneill-usbmp-base8
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored) to selected 1.1.2.1 (colored)

Use an unsigned value to hold the pci_class

Revision 1.88.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:46 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.88: +28 -2 lines
Diff to previous 1.88 (colored) to selected 1.1.2.1 (colored)

merge to -current.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Jan 29 11:31:38 2012 UTC (12 years, 2 months ago) by drochner
Branch: 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
Changes since 1.89: +20 -7 lines
Diff to previous 1.89 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Thu Jan 26 21:17:28 2012 UTC (12 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.88: +15 -2 lines
Diff to previous 1.88 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Mon Dec 26 03:44:49 2011 UTC (12 years, 3 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.75.10.1: +132 -84 lines
Diff to previous 1.75.10.1 (colored) to selected 1.1.2.1 (colored)

Merge -HEAD changes (except for PCIVERBOSE chagnes).

Revision 1.88 / (download) - annotate - [select for diffs], Wed Aug 17 00:59:47 2011 UTC (12 years, 7 months ago) by dyoung
Branch: 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
Changes since 1.87: +4 -4 lines
Diff to previous 1.87 (colored) to selected 1.1.2.1 (colored)

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

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

Revision 1.86.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:04 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.86: +8 -2 lines
Diff to previous 1.86 (colored) next main 1.87 (colored) to selected 1.1.2.1 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.79.2.4 / (download) - annotate - [select for diffs], Sun Jun 12 00:24:16 2011 UTC (12 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79.2.3: +6 -0 lines
Diff to previous 1.79.2.3 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.87 / (download) - annotate - [select for diffs], Mon Jun 6 18:27:12 2011 UTC (12 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Changes since 1.86: +8 -2 lines
Diff to previous 1.86 (colored) to selected 1.1.2.1 (colored)

Add two new capabilities(PCI_CAP_SATA and PCI_CAP_PCIAF).

Revision 1.79.2.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:47 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79.2.2: +70 -12 lines
Diff to previous 1.79.2.2 (colored) to branchpoint 1.79 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.75.10.1.8.1 / (download) - annotate - [select for diffs], Fri Jan 7 02:26:15 2011 UTC (13 years, 2 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.75.10.1: +68 -5 lines
Diff to previous 1.75.10.1 (colored) next main 1.76 (colored) to selected 1.1.2.1 (colored)

Add/define some MSI support

Revision 1.86 / (download) - annotate - [select for diffs], Sat Dec 11 18:22:24 2010 UTC (13 years, 3 months ago) by matt
Branch: 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
Changes since 1.85: +68 -5 lines
Diff to previous 1.85 (colored) to selected 1.1.2.1 (colored)

Add code to display MSI capabilities.

Revision 1.78.2.3 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:06 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.78.2.2: +1 -4 lines
Diff to previous 1.78.2.2 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD (-D20101022).

Revision 1.74.4.5 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:09 2010 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.74.4.4: +3 -6 lines
Diff to previous 1.74.4.4 (colored) to branchpoint 1.74 (colored) next main 1.75 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.85 / (download) - annotate - [select for diffs], Sat Aug 21 13:18:35 2010 UTC (13 years, 7 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.84: +3 -6 lines
Diff to previous 1.84 (colored) to selected 1.1.2.1 (colored)

Update the various xxx_verbose modules to conform to the module subsystem's
new locking protocol.

Revision 1.78.2.2 / (download) - annotate - [select for diffs], Tue Aug 17 06:46:28 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.78.2.1: +44 -67 lines
Diff to previous 1.78.2.1 (colored) to branchpoint 1.78 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.74.4.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:51 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.74.4.3: +46 -69 lines
Diff to previous 1.74.4.3 (colored) to branchpoint 1.74 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Jul 25 14:14:25 2010 UTC (13 years, 8 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.83: +7 -9 lines
Diff to previous 1.83 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sat Jul 3 01:19:37 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79.2.1: +36 -25 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.83 / (download) - annotate - [select for diffs], Sun Jun 6 18:58:23 2010 UTC (13 years, 9 months ago) by pgoyette
Branch: MAIN
Changes since 1.82: +36 -25 lines
Diff to previous 1.82 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sun May 30 05:17:36 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.79: +39 -71 lines
Diff to previous 1.79 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.82 / (download) - annotate - [select for diffs], Wed May 26 09:42:42 2010 UTC (13 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.81: +7 -4 lines
Diff to previous 1.81 (colored) to selected 1.1.2.1 (colored)

Do not try to unload the pciverbose module if it had never been loaded.

Revision 1.81 / (download) - annotate - [select for diffs], Tue May 25 08:35:45 2010 UTC (13 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.80: +10 -10 lines
Diff to previous 1.80 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Mon May 24 20:29:41 2010 UTC (13 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.79: +39 -74 lines
Diff to previous 1.79 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Fri Apr 30 14:43:40 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.78: +54 -75 lines
Diff to previous 1.78 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.74.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:50 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.74.4.2: +58 -79 lines
Diff to previous 1.74.4.2 (colored) to branchpoint 1.74 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.79 / (download) - annotate - [select for diffs], Thu Mar 4 22:55:20 2010 UTC (14 years ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.78: +54 -75 lines
Diff to previous 1.78 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Wed Jan 13 12:18:55 2010 UTC (14 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.77: +6 -6 lines
Diff to previous 1.77 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Mon May 4 08:12:59 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.74.4.1: +113 -26 lines
Diff to previous 1.74.4.1 (colored) to branchpoint 1.74 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.75.8.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:31:08 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.75.8.1: +69 -8 lines
Diff to previous 1.75.8.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.75.10.1 / (download) - annotate - [select for diffs], Tue Feb 24 03:50:48 2009 UTC (15 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, 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
Changes since 1.75: +69 -8 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Tue Jan 20 13:54:43 2009 UTC (15 years, 2 months ago) by jmcneill
Branch: 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
Changes since 1.76: +69 -8 lines
Diff to previous 1.76 (colored) to selected 1.1.2.1 (colored)

Decode and display PCI Power Management registers when available.

Revision 1.75.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:18:26 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.75: +46 -20 lines
Diff to previous 1.75 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.73.16.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:01 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.73.16.1: +44 -18 lines
Diff to previous 1.73.16.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.75.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:36 2008 UTC (15 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.75: +46 -20 lines
Diff to previous 1.75 (colored) next main 1.76 (colored) to selected 1.1.2.1 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Nov 17 23:33:41 2008 UTC (15 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.75: +46 -20 lines
Diff to previous 1.75 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Mon Jun 2 13:23:42 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.74.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:21 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) next main 1.75 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.74.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:44 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Apr 29 17:27:38 2008 UTC (15 years, 11 months ago) by jmcneill
Branch: 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
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.1.2.1 (colored)

Oh, so that's how you spell Legacy -- thanks spellcheck!

Revision 1.74 / (download) - annotate - [select for diffs], Thu Apr 10 19:13:37 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.1.2.1 (colored)

use aprint_*_dev and device_xname

Revision 1.71.24.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:24 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.71: +101 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.1.2.1 (colored)

sync with HEAD

Revision 1.61.2.3 / (download) - annotate - [select for diffs], Sat Oct 27 11:33:23 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.61.2.2: +101 -3 lines
Diff to previous 1.61.2.2 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.71.22.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:46:43 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.71: +101 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Thu Oct 25 22:39:15 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.71.8.2 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:13 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.71.8.1: +3 -3 lines
Diff to previous 1.71.8.1 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored) to selected 1.1.2.1 (colored)

Sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Fri Oct 19 12:00:54 2007 UTC (16 years, 5 months ago) by ad
Branch: 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
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.1.2.1 (colored)

machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h

Revision 1.71.26.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:13 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.71: +100 -2 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.71.8.1 / (download) - annotate - [select for diffs], Tue Oct 9 13:41:49 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.71: +100 -2 lines
Diff to previous 1.71 (colored) to selected 1.1.2.1 (colored)

Sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Oct 7 23:00:47 2007 UTC (16 years, 5 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.71: +100 -2 lines
Diff to previous 1.71 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sat Dec 30 20:48:46 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.61.2.1: +126 -124 lines
Diff to previous 1.61.2.1 (colored) to branchpoint 1.61 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.65.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:45 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.65.4.1: +7 -6 lines
Diff to previous 1.65.4.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:31 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.1.2.1 (colored)

Sync with head.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:09 2006 UTC (17 years, 4 months ago) by christos
Branch: 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
Changes since 1.70: +6 -6 lines
Diff to previous 1.70 (colored) to selected 1.1.2.1 (colored)

__unused removal on arguments; approved by core.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Nov 8 18:44:16 2006 UTC (17 years, 4 months ago) by drochner
Branch: MAIN
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored) to selected 1.1.2.1 (colored)

while we are here, also print the interrupt disable bit
in VERBOSE/pcictl

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:18 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.65: +6 -6 lines
Diff to previous 1.65 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.69 / (download) - annotate - [select for diffs], Tue Oct 17 18:21:29 2006 UTC (17 years, 5 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.68: +2 -6 lines
Diff to previous 1.68 (colored) to selected 1.1.2.1 (colored)

now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Oct 13 20:53:59 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored) to selected 1.1.2.1 (colored)

more __unused

Revision 1.67 / (download) - annotate - [select for diffs], Fri Oct 13 18:28:06 2006 UTC (17 years, 5 months ago) by dogcow
Branch: MAIN
Changes since 1.66: +6 -2 lines
Diff to previous 1.66 (colored) to selected 1.1.2.1 (colored)

more unused variable fallout.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:32 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.63.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:52:18 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.63: +131 -124 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.1.2.1 (colored)

sync with head

Revision 1.63.8.2 / (download) - annotate - [select for diffs], Sun Sep 3 15:24:22 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.63.8.1: +125 -124 lines
Diff to previous 1.63.8.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Sep 3 05:01:32 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.64: +125 -124 lines
Diff to previous 1.64 (colored) to selected 1.1.2.1 (colored)

add missing initializers

Revision 1.63.8.1 / (download) - annotate - [select for diffs], Mon Jun 26 12:51:22 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.63: +11 -5 lines
Diff to previous 1.63 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:05:06 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.61: +12 -6 lines
Diff to previous 1.61 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.63.14.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:01:36 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.63: +11 -5 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.1.2.1 (colored)

Sync with head.

Revision 1.63.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:36:46 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.63: +11 -5 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.1.2.1 (colored)

Sync with head.

Revision 1.64 / (download) - annotate - [select for diffs], Wed May 31 10:01:18 2006 UTC (17 years, 10 months ago) by drochner
Branch: 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
Changes since 1.63: +11 -5 lines
Diff to previous 1.63 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.63 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:50 2005 UTC (18 years, 3 months ago) by christos
Branch: 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
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored) to selected 1.1.2.1 (colored)

merge ktrace-lwp.

Revision 1.56.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:02 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.4: +22 -22 lines
Diff to previous 1.56.2.4 (colored) next main 1.57 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.61.4.1 / (download) - annotate - [select for diffs], Wed Nov 2 11:57:56 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-vop
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) next main 1.62 (colored) to selected 1.1.2.1 (colored)

sync with head.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Oct 30 23:34:04 2005 UTC (18 years, 5 months ago) by simonb
Branch: 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
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored) to selected 1.1.2.1 (colored)

Only include <sys/systm.h> if _KERNEL is defined.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 28 00:28:42 2005 UTC (18 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop, yamt-lazymbuf
Changes since 1.60: +21 -21 lines
Diff to previous 1.60 (colored) to selected 1.1.2.1 (colored)

Use ANSI function decls and static.

Revision 1.59.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:07 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) next main 1.60 (colored) to selected 1.1.2.1 (colored)

sync with -current

Revision 1.59.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:12 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) next main 1.60 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:45:22 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.3: +3 -3 lines
Diff to previous 1.56.2.3 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.60 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:33 2005 UTC (19 years, 1 month ago) by perry
Branch: 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
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) to selected 1.1.2.1 (colored)

nuke trailing whitespace

Revision 1.56.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:31:04 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.2: +2 -2 lines
Diff to previous 1.56.2.2 (colored) to selected 1.1.2.1 (colored)

Fix the sync with head I botched.

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:49:04 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.1: +2 -2 lines
Diff to previous 1.56.2.1 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:10 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56: +60 -69 lines
Diff to previous 1.56 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD

Revision 1.59 / (download) - annotate - [select for diffs], Mon Aug 2 18:43:38 2004 UTC (19 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.58: +39 -55 lines
Diff to previous 1.58 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Fri Apr 23 21:13:07 2004 UTC (19 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.57: +21 -14 lines
Diff to previous 1.57 (colored) to selected 1.1.2.1 (colored)

pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region

Revision 1.57 / (download) - annotate - [select for diffs], Wed Feb 4 06:58:24 2004 UTC (20 years, 1 month ago) by soren
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored) to selected 1.1.2.1 (colored)

Use the right bits for the AGP version.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:26 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.55: +0 -0 lines
Diff to previous 1.55 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sun Jun 29 14:41:11 2003 UTC (20 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.1.2.1 (colored)

fix typo in comment

Revision 1.42.2.6 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:20 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.42.2.5: +3 -2 lines
Diff to previous 1.42.2.5 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.54 / (download) - annotate - [select for diffs], Sun Nov 24 11:55:13 2002 UTC (21 years, 4 months ago) by scw
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.53: +5 -4 lines
Diff to previous 1.53 (colored) to selected 1.1.2.1 (colored)

Quell an uninitialised variable warning.

Revision 1.42.2.5 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:13 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.4: +109 -61 lines
Diff to previous 1.42.2.4 (colored) to branchpoint 1.42 (colored) to selected 1.1.2.1 (colored)

Catch up to -current.

Revision 1.42.4.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:41:01 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.42.4.3: +109 -61 lines
Diff to previous 1.42.4.3 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.53 / (download) - annotate - [select for diffs], Sat Sep 21 19:14:14 2002 UTC (21 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.52: +14 -5 lines
Diff to previous 1.52 (colored) to selected 1.1.2.1 (colored)

call the capability list ptr by its name

Revision 1.52 / (download) - annotate - [select for diffs], Sat Sep 21 18:56:03 2002 UTC (21 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.51: +13 -8 lines
Diff to previous 1.51 (colored) to selected 1.1.2.1 (colored)

correct caplist head for Cardbus bridges

Revision 1.51 / (download) - annotate - [select for diffs], Sat Sep 21 16:19:34 2002 UTC (21 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.50: +91 -57 lines
Diff to previous 1.50 (colored) to selected 1.1.2.1 (colored)

-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) - annotate - [select for diffs], Sun Jun 23 17:47:52 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.42.4.2: +10 -4 lines
Diff to previous 1.42.4.2 (colored) to branchpoint 1.42 (colored) to selected 1.1.2.1 (colored)

catch up with -current on kqueue branch

Revision 1.42.2.4 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:39 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.3: +4 -4 lines
Diff to previous 1.42.2.3 (colored) to branchpoint 1.42 (colored) to selected 1.1.2.1 (colored)

Catch up to -current.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Thu May 30 14:46:14 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.1.2.1 (colored)

Catch up with -current.

Revision 1.50 / (download) - annotate - [select for diffs], Sun May 19 00:01:09 2002 UTC (21 years, 10 months ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, gehenna-devsw-base
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.1.2.1 (colored)

Fortunately for us, all interrupt controllers are not 8259's

Revision 1.49 / (download) - annotate - [select for diffs], Fri May 3 16:08:36 2002 UTC (21 years, 11 months ago) by nathanw
Branch: MAIN
Branch point for: gehenna-devsw
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.1.2.1 (colored)

Make pci_conf_print() dump the device-dependent header in userspace, too.

Revision 1.42.2.3 / (download) - annotate - [select for diffs], Mon Apr 1 07:46:34 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.2: +7 -1 lines
Diff to previous 1.42.2.2 (colored) to branchpoint 1.42 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.48 / (download) - annotate - [select for diffs], Fri Mar 22 20:03:20 2002 UTC (22 years ago) by drochner
Branch: MAIN
Changes since 1.47: +8 -2 lines
Diff to previous 1.47 (colored) to selected 1.1.2.1 (colored)

iadd subclass codes from the 2.3 spec

Revision 1.42.4.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:56:55 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.42.4.1: +140 -66 lines
Diff to previous 1.42.4.1 (colored) to branchpoint 1.42 (colored) to selected 1.1.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:23 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42.2.1: +5 -1 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) to selected 1.1.2.1 (colored)

Catch up to -current.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Nov 13 07:48:47 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Changes since 1.46: +4 -1 lines
Diff to previous 1.46 (colored) to selected 1.1.2.1 (colored)

add RCSID

Revision 1.46 / (download) - annotate - [select for diffs], Tue Nov 13 03:12:44 2001 UTC (22 years, 4 months ago) by enami
Branch: MAIN
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored) to selected 1.1.2.1 (colored)

Include stdio.h when compiled in userland to pull in declaration of printf etc.

Revision 1.35.4.2 / (download) - annotate - [select for diffs], Thu Oct 25 17:54:51 2001 UTC (22 years, 5 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.35.4.1: +37 -6 lines
Diff to previous 1.35.4.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Mon Oct 1 12:45:58 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.42: +137 -67 lines
Diff to previous 1.42 (colored) next main 1.43 (colored) to selected 1.1.2.1 (colored)

Catch up with -current.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Fri Sep 21 22:35:59 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.42: +137 -67 lines
Diff to previous 1.42 (colored) to selected 1.1.2.1 (colored)

Catch up to -current.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Sep 13 21:42:57 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Changes since 1.44: +132 -24 lines
Diff to previous 1.44 (colored) to selected 1.1.2.1 (colored)

Allow this file to be used in userspace, as well.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Sep 13 18:25:45 2001 UTC (22 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.43: +16 -54 lines
Diff to previous 1.43 (colored) to selected 1.1.2.1 (colored)

ANSI'ify.

Revision 1.42.4.1 / (download) - annotate - [select for diffs], Thu Sep 13 01:15:58 2001 UTC (22 years, 6 months ago) by thorpej
Branch: kqueue
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.1.2.1 (colored)

Update the kqueue branch to HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Sep 9 01:45:29 2001 UTC (22 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.1.2.1 (colored)

Fix sample code in comment; pci_conf_print() takes three arguments.

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Sun Feb 11 19:15:59 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.2: +27 -27 lines
Diff to previous 1.32.2.2 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jan 18 13:12:13 2001 UTC (23 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Changes since 1.41: +27 -27 lines
Diff to previous 1.41 (colored) to selected 1.1.2.1 (colored)

adapt to pci_knowndevs[] being const, make local constant arrays const

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:04:13 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32.2.1: +2 -2 lines
Diff to previous 1.32.2.1 (colored) to branchpoint 1.32 (colored) to selected 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 21 00:20:30 2000 UTC (23 years, 4 months ago) by soren
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) to selected 1.1.2.1 (colored)

s/iRDA/IrDA/

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:30 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.32: +171 -43 lines
Diff to previous 1.32 (colored) to selected 1.1.2.1 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Oct 7 18:58:13 2000 UTC (23 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.39: +37 -6 lines
Diff to previous 1.39 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.39 / (download) - annotate - [select for diffs], Mon Oct 2 14:48:13 2000 UTC (23 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.38 / (download) - annotate - [select for diffs], Sat Sep 2 00:48:20 2000 UTC (23 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.37: +53 -27 lines
Diff to previous 1.37 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Thu Aug 10 22:48:15 2000 UTC (23 years, 7 months ago) by soda
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.35: +45 -18 lines
Diff to previous 1.35 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Thu Aug 3 19:58:55 2000 UTC (23 years, 7 months ago) by nathanw
Branch: MAIN
Changes since 1.36: +42 -15 lines
Diff to previous 1.36 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Wed Jun 28 16:08:49 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) to selected 1.1.2.1 (colored)

remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 22 00:36:29 2000 UTC (24 years ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored) to selected 1.1.2.1 (colored)

opt_pciverbose.h -> opt_pci.h (it's gonna be used by more things, soon)

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 25 22:30:04 2000 UTC (24 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.33: +6 -6 lines
Diff to previous 1.33 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.32.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:21 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.32: +46 -2 lines
Diff to previous 1.32 (colored) next main 1.33 (colored) to selected 1.1.2.1 (colored)

Pull up to last week's -current.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Dec 15 12:27:26 1999 UTC (24 years, 3 months ago) by kleink
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.32: +46 -2 lines
Diff to previous 1.32 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Mon Sep 27 03:20:47 1999 UTC (24 years, 6 months ago) by cgd
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.31: +57 -1 lines
Diff to previous 1.31 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.31 / (download) - annotate - [select for diffs], Mon Dec 21 20:56:06 1998 UTC (25 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.1.2.1 (colored)

use a symbolic definition for the PCI subsystem ID

Revision 1.30 / (download) - annotate - [select for diffs], Sat Aug 15 03:02:46 1998 UTC (25 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored) to selected 1.1.2.1 (colored)

Make copyright notices with my name consistent.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jul 12 19:51:58 1998 UTC (25 years, 8 months ago) by augustss
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.28: +21 -1 lines
Diff to previous 1.28 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Fri Jun 26 17:53:09 1998 UTC (25 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.27: +62 -24 lines
Diff to previous 1.27 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Thu May 28 02:26:00 1998 UTC (25 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.26: +354 -80 lines
Diff to previous 1.26 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Mon May 18 17:25:17 1998 UTC (25 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.25: +200 -103 lines
Diff to previous 1.25 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sun May 3 19:46:15 1998 UTC (25 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +7 -2 lines
Diff to previous 1.24 (colored) to selected 1.1.2.1 (colored)

In pci_conf_print(), don't print a mapping register if the size is 0.

Revision 1.24 / (download) - annotate - [select for diffs], Sun May 3 19:41:33 1998 UTC (25 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +23 -5 lines
Diff to previous 1.23 (colored) to selected 1.1.2.1 (colored)

Properly compute the region sizes in pci_conf_print().  Bug pointed out
by Chris Demetriou.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 20 14:16:26 1998 UTC (25 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored) to selected 1.1.2.1 (colored)

Avoid "unused variable" warning without PCIVERBOSE.
From mynhier@cs.utk.edu (PR kern/5328).

Revision 1.22 / (download) - annotate - [select for diffs], Tue Apr 14 21:24:50 1998 UTC (25 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +195 -1 lines
Diff to previous 1.21 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Tue Sep 16 03:50:41 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.1.2.1 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Sep 13 08:49:51 1997 UTC (26 years, 6 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored) to selected 1.1.2.1 (colored)

Declare PCIVERBOSE by defopt in files.pci.  Include opt_pciverbose.h
in pci_subr.c.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Mar 19 19:38:46 1997 UTC (27 years ago) by cgd
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.19: +78 -13 lines
Diff to previous 1.19 (colored) to selected 1.1.2.1 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 13 01:38:29 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.18: +11 -11 lines
Diff to previous 1.18 (colored) to selected 1.1.2.1 (colored)

backout kprintf changes

Revision 1.18 / (download) - annotate - [select for diffs], Thu Oct 10 19:58:26 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.17: +11 -11 lines
Diff to previous 1.17 (colored) to selected 1.1.2.1 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 2 02:28:48 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.16: +9 -9 lines
Diff to previous 1.16 (colored) to selected 1.1.2.1 (colored)

remove some colons to be slightly more friendly to things trying to
parse autoconfiguration output.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Mar 2 01:09:13 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.1.2.1 (colored)

oops; spaces -> tabs

Revision 1.15 / (download) - annotate - [select for diffs], Sat Mar 2 01:07:47 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.14: +6 -3 lines
Diff to previous 1.14 (colored) to selected 1.1.2.1 (colored)

if not PCIVERBOSE, don't say that vendor/product is "unknown," just say
what it is.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Feb 28 01:44:43 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.13: +1 -73 lines
Diff to previous 1.13 (colored) to selected 1.1.2.1 (colored)

make PCI bus match/attach and sub-device attachment machine-independent.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 22 21:08:10 1996 UTC (28 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.12: +28 -32 lines
Diff to previous 1.12 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Wed Aug 16 04:54:50 1995 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored) to selected 1.1.2.1 (colored)

check for null subclass pointer.  From Todd Mummert

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 21 03:56:09 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.1.2.1 (colored)

fix reference to incorrect struct (paste-o)

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jun 18 01:28:23 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.9: +215 -9 lines
Diff to previous 1.9 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Sat Jun 17 22:40:34 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored) to selected 1.1.2.1 (colored)

more appropriate name, as this only has PCI support subroutines.

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 23 03:43:06 1995 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.7: +36 -60 lines
Diff to previous 1.7 (colored) to selected 1.1.2.1 (colored)

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) - annotate - [select for diffs], Fri Jan 27 05:44:32 1995 UTC (29 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) to selected 1.1.2.1 (colored)

include files from the correct places.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 4 09:42:22 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +25 -21 lines
Diff to previous 1.5 (colored) to selected 1.1.2.1 (colored)

Make a wrapper match function to check the bus and device numbers, rather
than insisting that every driver do it.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 3 22:27:16 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +3 -16 lines
Diff to previous 1.4 (colored) to selected 1.1.2.1 (colored)

Rename pciprobe() to pcimatch(), and move it to pci_machdep.c.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 3 22:15:25 1994 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +7 -25 lines
Diff to previous 1.3 (colored) to selected 1.1.2.1 (colored)

Always use direct configuration.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 27 04:21:38 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.1.2.1 (colored)

new RCS ID format.

Revision 1.1.2.1 / (download) - annotate - [selected], Wed Aug 10 04:38:34 1994 UTC (29 years, 7 months ago) by mycroft
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

update from trunk

Revision 1.2 / (download) - annotate - [select for diffs], Wed Aug 10 04:37:52 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) to selected 1.1.2.1 (colored)

Update some comments.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 9 00:47:49 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Diff to selected 1.1.2.1 (colored)

Add PCI autoconfiguration support.

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




CVSweb <webmaster@jp.NetBSD.org>