The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.74.4.1 / (download) - annotate - [select for diffs], Tue Feb 6 12:34:47 2024 UTC (2 months ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

Pull up following revision(s) (requested by rin in ticket #588):

	sys/dev/pci/ppb.c: revision 1.75

ppb(4): Print out PCIe Gen5 link speed correctly

Revision 1.75 / (download) - annotate - [select for diffs], Sun Nov 26 06:38:28 2023 UTC (4 months, 2 weeks ago) by rin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.74: +4 -4 lines
Diff to previous 1.74 (colored)

ppb(4): Print out PCIe Gen5 link speed correctly

Revision 1.63.2.3 / (download) - annotate - [select for diffs], Fri Dec 3 19:45:13 2021 UTC (2 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.63.2.2: +4 -4 lines
Diff to previous 1.63.2.2 (colored) to branchpoint 1.63 (colored) next main 1.64 (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.69.2.1 / (download) - annotate - [select for diffs], Fri Dec 3 19:40:38 2021 UTC (2 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored) next main 1.70 (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.74 / (download) - annotate - [select for diffs], Sun Oct 10 23:28:36 2021 UTC (2 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (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.73 / (download) - annotate - [select for diffs], Sat Aug 7 16:19:14 2021 UTC (2 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Changes since 1.72: +3 -4 lines
Diff to previous 1.72 (colored)

Merge thorpej-cfargs2.

Revision 1.72.4.1 / (download) - annotate - [select for diffs], Wed Aug 4 21:27:00 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.72: +3 -4 lines
Diff to previous 1.72 (colored) next main 1.73 (colored)

Adapt to CFARGS().

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

sync with head

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:31 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.71: +9 -3 lines
Diff to previous 1.71 (colored) next main 1.72 (colored)

Sync with HEAD.

Revision 1.72 / (download) - annotate - [select for diffs], Tue May 11 06:03:54 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Branch point for: thorpej-cfargs2
Changes since 1.71: +9 -3 lines
Diff to previous 1.71 (colored)

Forward the bridge's devhandle to the downstream bus.

Revision 1.71 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:57 2021 UTC (2 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Tue Mar 23 07:14:53 2021 UTC (3 years ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.

Revision 1.70 / (download) - annotate - [select for diffs], Sun Jul 12 23:52:37 2020 UTC (3 years, 9 months ago) by rin
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.69: +2 -6 lines
Diff to previous 1.69 (colored)

Remove duplicate include of opt_ppb.h.
No binary changes.

Revision 1.63.10.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:45 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.63.10.1: +4 -4 lines
Diff to previous 1.63.10.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Wed Jul 17 15:55:31 2019 UTC (4 years, 8 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.63.2.1: +4 -4 lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (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.69 / (download) - annotate - [select for diffs], Tue Jul 9 12:13:42 2019 UTC (4 years, 9 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: netbsd-9
Changes since 1.68: +4 -4 lines
Diff to previous 1.68 (colored)

Identify 16GT/s.

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

Sync with HEAD

Revision 1.68 / (download) - annotate - [select for diffs], Fri Mar 1 09:26:00 2019 UTC (5 years, 1 month ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20190609, isaki-audio2-base, isaki-audio2
Changes since 1.67: +20 -27 lines
Diff to previous 1.67 (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.63.2.1 / (download) - annotate - [select for diffs], Fri Feb 1 11:25:13 2019 UTC (5 years, 2 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.63: +70 -2 lines
Diff to previous 1.63 (colored)

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

	sys/dev/pci/ppb.c: revision 1.66
	sys/dev/pci/ppb.c: revision 1.67

  Explicitly enable bus masterling in case BIOS, UEFI or firmware don't enable
it. Might fix PR kern/53811.

 -

  If the secondary bus is configured and the bus mastering is not enabled,
enable it. Suggested by thorpej@.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jan 29 09:25:52 2019 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.66: +69 -6 lines
Diff to previous 1.66 (colored)

 If the secondary bus is configured and the bus mastering is not enabled,
enable it. Suggested by thorpej@.

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jan 28 04:09:51 2019 UTC (5 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.65: +7 -2 lines
Diff to previous 1.65 (colored)

 Explicitly enable bus masterling in case BIOS, UEFI or firmware don't enable
it. Might fix PR kern/53811.

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:42 2019 UTC (5 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.64: +6 -2 lines
Diff to previous 1.64 (colored)

Merge the [pgoyette-compat] branch

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

Sync with HEAD, resolve a few conflicts

Revision 1.64 / (download) - annotate - [select for diffs], Fri Dec 7 09:36:26 2018 UTC (5 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.63: +7 -3 lines
Diff to previous 1.63 (colored)

- defflag PPB_USEINTR
- Print "interrupting at "

Revision 1.49.6.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:28 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.49.6.2: +268 -53 lines
Diff to previous 1.49.6.2 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

update from HEAD

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:52:25 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.54.2.1: +244 -30 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Sync with HEAD

Revision 1.60.2.2 / (download) - annotate - [select for diffs], Thu May 11 02:58:39 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.60.2.1: +95 -96 lines
Diff to previous 1.60.2.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

Sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Wed May 10 03:24:31 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

 Fix typos.

Revision 1.62 / (download) - annotate - [select for diffs], Tue May 9 06:29:20 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.61: +94 -95 lines
Diff to previous 1.61 (colored)

- Fix a bug that a device which has no PCIe capability incorrectly
  accessess the PCI config area in ppbdetach().
- Don't add event counters if slot interrupt isn't used.

Revision 1.60.2.1 / (download) - annotate - [select for diffs], Tue May 2 03:19:20 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.60: +38 -19 lines
Diff to previous 1.60 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.61 / (download) - annotate - [select for diffs], Thu Apr 27 04:44:02 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: prg-localcount2-base1
Changes since 1.60: +38 -19 lines
Diff to previous 1.60 (colored)

Make ppb(4) interrupt support stable:
- Disable all interrupts in the beginning of attach. Without this, interrupt
  storm occurs while cold == 1 on some environment.
- Disable command complete interrput for a while to prevent hangup on some
  enviroment. I'm sorry, I don't know what this bit is :-|
- Check all status bits and return 0 if an interrupt is not for me. It's
  required for INTx. Tested on XEN3_DOM0 because it doesn't support MSI yet.
- Return 1 when a interrupt is processed.

Revision 1.60 / (download) - annotate - [select for diffs], Wed Apr 26 08:00:03 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: prg-localcount2-base
Branch point for: prg-localcount2
Changes since 1.59: +26 -2 lines
Diff to previous 1.59 (colored)

 Disable ppb(4)'s interrupt for a while. It causes hangup on some environment.
Define PPB_USEINTR if you'd like to use interrupt.

Revision 1.59 / (download) - annotate - [select for diffs], Wed Apr 26 03:54:37 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
Changes since 1.58: +18 -3 lines
Diff to previous 1.58 (colored)

 Disable and disestablish interrupt in ppbdetach().

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:22 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.55: +185 -28 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Sync with HEAD

Revision 1.58 / (download) - annotate - [select for diffs], Mon Apr 24 23:01:45 2017 UTC (6 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: pgoyette-localcount-20170426
Changes since 1.57: +5 -4 lines
Diff to previous 1.57 (colored)

in ppbdetach(), try to detach the children before tearing down our own state,
to avoid trouble if detaching the children fails.

Revision 1.55.4.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:51 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.55: +184 -28 lines
Diff to previous 1.55 (colored) next main 1.56 (colored)

Sync with HEAD

Revision 1.57 / (download) - annotate - [select for diffs], Tue Apr 18 05:21:34 2017 UTC (6 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: bouyer-socketcan-base1
Changes since 1.56: +183 -20 lines
Diff to previous 1.56 (colored)

 Enable PCIe's interrupt as much as possilbe in ppb(4) to detect and count
status change event. HotPlug function itself have not implemented yet.

 - Interrupt and each event are counted by evcnt(9). Example:

   ppb0 Interrupt                                                0    0 intr
   ppb0 Attention Button Pressed                                 0    0 misc
   ppb0 Power Fault Detected                                     0    0 misc
   ppb0 MRL Sensor Changed                                       0    0 misc
   ppb0 Presence Detect Changed                                  0    0 misc
   ppb0 Command Completed                                        0    0 misc
   ppb0 Data Link Layer State Changed                            0    0 misc

 - Print message if ppb_printevent is not zero. The default vaule is 0.
   The output messages:

   Attention Button Pressed
   Power Fault Detected
   MRL Sensor Changed
   Presence Detect Changed
   Command Completed
   Data Link Layer State Changed

 - Remove workaround code to disable interrupt (ppb.c rev. 1.35).

 Tested with Dell Latitude 2120 without if_bge.c rev. 1.304's workaround.
dmesg when bge's device timeout occured:

   ppb3: Presence Detect Changed
   ppb3: Data Link Layer State Changed
   ppb3: Presence Detect Changed

vmstat -e |grep ppb

   ppb3 Interrupt                                             2    0 intr
   ppb3 Presence Detect Changed                               2    0 misc
   ppb3 Data Link Layer State Changed                         1    0 misc

Revision 1.56 / (download) - annotate - [select for diffs], Wed Apr 5 03:51:36 2017 UTC (7 years ago) by msaitoh
Branch: MAIN
CVS Tags: jdolecek-ncq-base, jdolecek-ncq
Changes since 1.55: +3 -10 lines
Diff to previous 1.55 (colored)

 Move struct ppb_softc into ppbvar.h.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:57 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.54: +10 -11 lines
Diff to previous 1.54 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.55 / (download) - annotate - [select for diffs], Mon Nov 16 09:10:58 2015 UTC (8 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, bouyer-socketcan
Changes since 1.54: +10 -11 lines
Diff to previous 1.54 (colored)

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

Revision 1.52.10.1 / (download) - annotate - [select for diffs], Fri Dec 12 18:56:16 2014 UTC (9 years, 4 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.52: +21 -19 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

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

Revision 1.54 / (download) - annotate - [select for diffs], Wed Sep 24 10:57:03 2014 UTC (9 years, 6 months ago) by msaitoh
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

Rename PCIE_XCAP_VER_* macros to avoid confusion.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Sep 24 09:49:49 2014 UTC (9 years, 6 months ago) by msaitoh
Branch: MAIN
Changes since 1.52: +19 -17 lines
Diff to previous 1.52 (colored)

- Modify message of PCIe capability version. This field (PCIE_XCAP_VER_MASK)
  is not specification's version number but the capability structure's version
  number. To avoid confusion, print "PCI Express capability version x".
- The max number of PCIe lane is not 16 but 32. Fix the bug using with macro.
- Use macro instead of magic number.
- Gb/s -> GT/s

Revision 1.47.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:33 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.47.2.2: +28 -27 lines
Diff to previous 1.47.2.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (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.39.18.4 / (download) - annotate - [select for diffs], Sat Feb 15 03:22:27 2014 UTC (10 years, 1 month ago) by matt
Branch: matt-nb5-mips64
Changes since 1.39.18.3: +26 -26 lines
Diff to previous 1.39.18.3 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

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

Revision 1.49.6.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:21 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.49.6.1: +28 -27 lines
Diff to previous 1.49.6.1 (colored) to branchpoint 1.49 (colored)

resync from head

Revision 1.39.10.1 / (download) - annotate - [select for diffs], Sat May 11 22:34:38 2013 UTC (10 years, 11 months ago) by riz
Branch: netbsd-5
Changes since 1.39: +56 -12 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

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

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

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

Revision 1.52 / (download) - annotate - [select for diffs], Sun Apr 21 19:59:41 2013 UTC (10 years, 11 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, khorben-n900
Branch point for: netbsd-7
Changes since 1.51: +26 -26 lines
Diff to previous 1.51 (colored)

Delete "PCI_" from PCIX and PICE capability registers.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Mar 6 11:50:32 2013 UTC (11 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: agc-symver-base, agc-symver
Changes since 1.50: +4 -3 lines
Diff to previous 1.50 (colored)

ppb: fix link speed print

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

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

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:21:52 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.47.2.1: +49 -3 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Sat Oct 20 05:57:34 2012 UTC (11 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.49: +49 -3 lines
Diff to previous 1.49 (colored)

Print out negotiated link width and speed for PCIe (merged from
matt-nb5-mips64).

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:57 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.47: +3 -7 lines
Diff to previous 1.47 (colored)

sync with head

Revision 1.47.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:34:51 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.47: +3 -7 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

merge to -current.

Revision 1.49 / (download) - annotate - [select for diffs], Sun Jan 29 11:31:38 2012 UTC (12 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, 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, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (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.48 / (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.47: +3 -7 lines
Diff to previous 1.47 (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.39.18.3 / (download) - annotate - [select for diffs], Sat Dec 24 01:28:02 2011 UTC (12 years, 3 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.39.18.2: +81 -11 lines
Diff to previous 1.39.18.2 (colored) to branchpoint 1.39 (colored)

Pull latest from -HEAD.
Add printing bus lanes and speed.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 21 21:35:28 2011 UTC (12 years, 5 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.46: +3 -2 lines
Diff to previous 1.46 (colored)

Tell a pci(4) instance its subordinate PCI buses using a new member
in the pcibus_attach_args, pba_sub. pciN attaches to pba_bus itself.
If pba_bus < pba_sub, then [pba_bus + 1, pba_sub] are subordinate to
pba_bus.

On i386, make mainbus0 attach pci0 with pba_sub = 255 because all buses
1 and up must be subordinate to pci0.

XXX Deal with other architectures.

Revision 1.46 / (download) - annotate - [select for diffs], Wed Aug 17 00:59:47 2011 UTC (12 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.45: +7 -6 lines
Diff to previous 1.45 (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.42.2.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:56 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.42: +67 -12 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jan 10 14:19:36 2011 UTC (13 years, 3 months ago) by cegger
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored)

add missing break

Revision 1.44 / (download) - annotate - [select for diffs], Mon Jan 10 12:23:21 2011 UTC (13 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.43: +55 -12 lines
Diff to previous 1.43 (colored)

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

changes:

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

to:

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

Revision 1.39.22.1 / (download) - annotate - [select for diffs], Fri Jan 7 02:27:15 2011 UTC (13 years, 3 months ago) by matt
Branch: matt-nb5-pq3
Changes since 1.39: +13 -2 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

On powerpc systems, match powerpc processors which are really PCIe PPBs.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Dec 11 18:25:02 2010 UTC (13 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.42: +13 -2 lines
Diff to previous 1.42 (colored)

On powerpc, recognize PCI Express RC root bridges.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:43 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

Sync with HEAD.

Revision 1.37.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:59 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.37.4.2: +6 -6 lines
Diff to previous 1.37.4.2 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

sync with head

Revision 1.42 / (download) - annotate - [select for diffs], Wed Feb 24 22:38:01 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored)

A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.

Revision 1.39.18.2 / (download) - annotate - [select for diffs], Thu Jan 28 17:42:37 2010 UTC (14 years, 2 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.39.18.1: +5 -5 lines
Diff to previous 1.39.18.1 (colored) to branchpoint 1.39 (colored)

Change ppb_fix_pcix to ppb_fix_pcie since pcix is usually PCI-X while
pcie is PCI-Express.

Revision 1.39.18.1 / (download) - annotate - [select for diffs], Thu Jan 21 07:43:59 2010 UTC (14 years, 2 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.39: +9 -2 lines
Diff to previous 1.39 (colored)

Support the SB1250 LDT HB.

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jan 8 19:56:52 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.40: +6 -6 lines
Diff to previous 1.40 (colored)

Expand PMF_FN_* macros.

Revision 1.39.14.1 / (download) - annotate - [select for diffs], Wed May 13 17:20:29 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.39: +5 -4 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.37.4.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:01 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.37.4.1: +5 -4 lines
Diff to previous 1.37.4.1 (colored) to branchpoint 1.37 (colored)

sync with head.

Revision 1.39.8.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:35:59 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.39: +5 -4 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

Sync with HEAD.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Apr 2 00:09:33 2009 UTC (15 years ago) by dyoung
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-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.39: +5 -4 lines
Diff to previous 1.39 (colored)

During shutdown, detach devices in an orderly fashion.

Call the detach routine for every device in the device tree, starting
with the leaves and moving toward the root, expecting that each
(pseudo-)device driver will use the opportunity to gracefully commit
outstandings transactions to the underlying (pseudo-)device and to
relinquish control of the hardware to the system BIOS.

Detaching devices is not suitable for every shutdown: in an emergency,
or if the system state is inconsistent, we should resort to a fast,
simple shutdown that uses only the pmf(9) shutdown hooks and the
(deprecated) shutdownhooks.  For now, if the flag RB_NOSYNC is set in
boothowto, opt for the fast, simple shutdown.

Add a device flag, DVF_DETACH_SHUTDOWN, that indicates by its presence
that it is safe to detach a device during shutdown.  Introduce macros
CFATTACH_DECL3() and CFATTACH_DECL3_NEW() for creating autoconf
attachments with default device flags.  Add DVF_DETACH_SHUTDOWN
to configuration attachments for atabus(4), atw(4) at cardbus(4),
cardbus(4), cardslot(4), com(4) at isa(4), elanpar(4), elanpex(4),
elansc(4), gpio(4), npx(4) at isa(4), nsphyter(4), pci(4), pcib(4),
pcmcia(4), ppb(4), sip(4), wd(4), and wdc(4) at isa(4).

Add a device-detachment "reason" flag, DETACH_SHUTDOWN, that tells the
autoconf code and a device driver that the reason for detachment is
system shutdown.

Add a sysctl, kern.detachall, that tells the system to try to detach
every device at shutdown, regardless of any device's DVF_DETACH_SHUTDOWN
flag.  The default for kern.detachall is 0.  SET IT TO 1, PLEASE, TO
HELP TEST AND DEBUG DEVICE DETACHMENT AT SHUTDOWN.

This is a work in progress.  In future work, I aim to treat
pseudo-devices more thoroughly, and to gracefully tear down a stack of
(pseudo-)disk drivers and filesystems, including cgd(4), vnd(4), and
raid(4) instances at shutdown.

Also commit some changes that are not easily untangled from the rest:

(1) begin to simplify device_t locking: rename struct pmf_private to
device_lock, and incorporate device_lock into struct device.

(2) #include <sys/device.h> in sys/pmf.h in order to get some
definitions that it needs.  Stop unnecessarily #including <sys/device.h>
in sys/arch/x86/include/pic.h to keep the amd64, xen, and i386 releases
building.

Revision 1.36.10.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:43 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.36.10.1: +7 -6 lines
Diff to previous 1.36.10.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Sync with HEAD.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:22 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.37: +9 -8 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

sync with head.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:24:45 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.37: +9 -8 lines
Diff to previous 1.37 (colored)

sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Sat May 3 05:44:06 2008 UTC (15 years, 11 months ago) by cegger
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, nick-hppapmap-base2, netbsd-5-base, 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-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, matt-nb5-pq3, matt-nb5-mips64, jym-xensuspend
Changes since 1.38: +8 -7 lines
Diff to previous 1.38 (colored)

device_t / softc split. Tested on amd64.
"looks good" spz

Revision 1.38 / (download) - annotate - [select for diffs], Sat May 3 05:02:41 2008 UTC (15 years, 11 months ago) by cegger
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

unuspported -> unsupported

Revision 1.36.10.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:42:53 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.36: +29 -14 lines
Diff to previous 1.36 (colored)

Sync with HEAD.

Revision 1.36.6.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:15:49 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.36: +29 -14 lines
Diff to previous 1.36 (colored) next main 1.37 (colored)

sync with head.

Revision 1.34.24.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:50 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.34.24.2: +29 -14 lines
Diff to previous 1.34.24.2 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

sync with HEAD

Revision 1.31.2.4 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:36 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.31.2.3: +29 -14 lines
Diff to previous 1.31.2.3 (colored) to branchpoint 1.31 (colored) next main 1.32 (colored)

sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Feb 22 22:15:31 2008 UTC (16 years, 1 month ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.36: +29 -14 lines
Diff to previous 1.36 (colored)

Add methods for detaching self and for detaching children.

Use device_t and accessors.  Use aprint_*_dev().

Revision 1.31.2.3 / (download) - annotate - [select for diffs], Mon Jan 21 09:44:14 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.31.2.2: +49 -7 lines
Diff to previous 1.31.2.2 (colored) to branchpoint 1.31 (colored)

sync with head

Revision 1.34.24.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:01 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.34.24.1: +49 -7 lines
Diff to previous 1.34.24.1 (colored) to branchpoint 1.34 (colored)

sync with HEAD

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:47:07 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.35: +49 -7 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with head.

Revision 1.35.8.1 / (download) - annotate - [select for diffs], Tue Dec 11 15:32:25 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-kmem
Changes since 1.35: +49 -7 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Dec 9 20:28:13 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.35: +49 -7 lines
Diff to previous 1.35 (colored)

Merge jmcneill-pm branch.

Revision 1.34.22.10 / (download) - annotate - [select for diffs], Sat Dec 8 16:21:32 2007 UTC (16 years, 4 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.34.22.9: +3 -3 lines
Diff to previous 1.34.22.9 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored)

Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.34.24.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:29:29 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.34: +26 -2 lines
Diff to previous 1.34 (colored)

sync with HEAD

Revision 1.34.22.9 / (download) - annotate - [select for diffs], Tue Nov 6 14:27:28 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.34.22.8: +20 -20 lines
Diff to previous 1.34.22.8 (colored) to branchpoint 1.34 (colored)

Refactor PNP API:
- Make suspend/resume directly a device functionality. It consists of
  three layers (class logic, device logic, bus logic), all of them being
  optional. This replaces D0/D3 transitions.
- device_is_active returns true if the device was not disabled and was
  not suspended (even partially), device_is_enabled returns true if the
  device was enabled.
- Change pnp_global_transition into pnp_system_suspend and
  pnp_system_resume. Before running any suspend/resume handlers, check
  that all currently attached devices support power management and bail
  out otherwise. The latter is not done for the shutdown/panic case.
- Make the former bus-specific generic network handlers a class handler.
- Make PNP message like volume up/down/toogle PNP events. Each device
  can register what events they are interested in and whether the handler
  should be global or not.
- Introduce device_active API for devices to mark themselve in use from
  either the system or the device. Use this to implement the idle handling
  for audio and input devices. This is intended to replace most ad-hoc
  watchdogs as well.
- Fix somes situations in which audio resume would lose mixer settings.
- Make USB host controllers better deal with suspend in the light of
  shared interrupts.
- Flush filesystem cache on suspend.
- Flush disk caches on suspend. Put ATA disks into standby on suspend as
  well.
- Adopt drivers to use the new PNP API.
- Fix a critical bug in the generic cardbus layer that made D0->D3
  break.
- Fix ral(4) to set if_stop.
- Convert cbb(4) to the new PNP API.
- Apply the PCI Express SCI fix on resume again.

Revision 1.31.2.2 / (download) - annotate - [select for diffs], Sat Oct 27 11:33:28 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.31.2.1: +26 -2 lines
Diff to previous 1.31.2.1 (colored) to branchpoint 1.31 (colored)

sync with head.

Revision 1.34.22.8 / (download) - annotate - [select for diffs], Fri Oct 26 15:46:53 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.34.22.7: +4 -2 lines
Diff to previous 1.34.22.7 (colored) to branchpoint 1.34 (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.34.8.1 / (download) - annotate - [select for diffs], Tue Oct 23 20:09:16 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.34: +26 -2 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync with head.

Revision 1.34.26.1 / (download) - annotate - [select for diffs], Thu Oct 18 08:33:08 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.34: +26 -2 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

sync with head.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Oct 16 18:27:00 2007 UTC (16 years, 6 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, mjf-devfs, jmcneill-pm-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-kmem, vmlocking2
Changes since 1.34: +26 -2 lines
Diff to previous 1.34 (colored)

Merge 1.34.22.7 from jmcneill-pm:
Next attempt at trying to fix the irregular interrupt storms on my
Thinkpad: when we find a PCI Express device, check the list of
notification events and if any are sets, clear them. We can't handle
them ATM anyway.

Revision 1.34.22.7 / (download) - annotate - [select for diffs], Mon Oct 8 07:05:46 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.34.22.6: +26 -2 lines
Diff to previous 1.34.22.6 (colored) to branchpoint 1.34 (colored)

Next attempt at trying to fix the irregular interrupt storms on my
Thinkpad: when we find a PCI Express device, check the list of
notification events and if any are sets, clear them. We can't handle
them ATM anyway.

Revision 1.34.22.6 / (download) - annotate - [select for diffs], Thu Oct 4 18:12:06 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.34.22.5: +2 -62 lines
Diff to previous 1.34.22.5 (colored) to branchpoint 1.34 (colored)

Remove SCI hack as the ACPI EC issues are fixed and those were the
likely source of this problem.

Revision 1.34.22.5 / (download) - annotate - [select for diffs], Mon Oct 1 05:37:55 2007 UTC (16 years, 6 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.34.22.4: +28 -49 lines
Diff to previous 1.34.22.4 (colored) to branchpoint 1.34 (colored)

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

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

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

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

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

Revision 1.34.22.4 / (download) - annotate - [select for diffs], Tue Sep 4 15:11:21 2007 UTC (16 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.34.22.3: +33 -6 lines
Diff to previous 1.34.22.3 (colored) to branchpoint 1.34 (colored)

Disable PCI-E SCI on all ICH6+ chipsets.

Revision 1.34.22.3 / (download) - annotate - [select for diffs], Tue Aug 21 06:55:31 2007 UTC (16 years, 7 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.34.22.2: +36 -2 lines
Diff to previous 1.34.22.2 (colored) to branchpoint 1.34 (colored)

Disable SCI on the ICH6 PCI Express Ports -- if the BIOS enabled it
and such an event happened, the resulting interrupt storm would at
best keep the CPU over 40% busy and otherwise hang the box.

This is a bandaid until proper PCI Express support exists.

Revision 1.34.22.2 / (download) - annotate - [select for diffs], Wed Aug 8 11:53:25 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.34.22.1: +15 -2 lines
Diff to previous 1.34.22.1 (colored) to branchpoint 1.34 (colored)

Improve ppb power management support.

Revision 1.34.22.1 / (download) - annotate - [select for diffs], Fri Aug 3 22:17:21 2007 UTC (16 years, 8 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.34: +49 -2 lines
Diff to previous 1.34 (colored)

Pull in power management changes from private branch.

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Sat Dec 30 20:48:48 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.31: +4 -3 lines
Diff to previous 1.31 (colored)

sync with head.

Revision 1.32.22.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:17:47 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.32.22.1: +4 -4 lines
Diff to previous 1.32.22.1 (colored) to branchpoint 1.32 (colored) next main 1.33 (colored)

sync with head.

Revision 1.32.20.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:33 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Sync with head.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:10 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base3, 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, vmlocking-base, 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.33: +4 -4 lines
Diff to previous 1.33 (colored)

__unused removal on arguments; approved by core.

Revision 1.32.22.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:19 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.32: +5 -4 lines
Diff to previous 1.32 (colored)

sync with head

Revision 1.33 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:33 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.32: +5 -4 lines
Diff to previous 1.32 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Sun Dec 11 12:22:50 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

merge ktrace-lwp.

Revision 1.26.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:06:03 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.26.2.5: +9 -17 lines
Diff to previous 1.26.2.5 (colored) next main 1.27 (colored)

Sync with HEAD. Here we go again...

Revision 1.31 / (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-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.30: +9 -17 lines
Diff to previous 1.30 (colored)

Use ANSI function decls and static.

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:12 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

sync with -current

Revision 1.29.6.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:48 2005 UTC (19 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.29: +4 -4 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

sync with head.

Revision 1.26.2.5 / (download) - annotate - [select for diffs], Fri Feb 4 11:46:40 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.26.2.4: +4 -4 lines
Diff to previous 1.26.2.4 (colored)

Sync with HEAD.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Feb 4 02:10:45 2005 UTC (19 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, 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.29: +4 -4 lines
Diff to previous 1.29 (colored)

de-__P

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

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Fri Sep 3 12:45:29 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.26.2.1: +3 -20 lines
Diff to previous 1.26.2.1 (colored)

Sync with HEAD

Revision 1.29 / (download) - annotate - [select for diffs], Mon Aug 30 15:05:20 2004 UTC (19 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.28: +3 -20 lines
Diff to previous 1.28 (colored)

Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:49:12 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.26: +7 -5 lines
Diff to previous 1.26 (colored)

Sync with HEAD

Revision 1.28 / (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.27: +3 -3 lines
Diff to previous 1.27 (colored)

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

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 9 19:51:39 2003 UTC (20 years, 4 months ago) by briggs
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.26: +6 -4 lines
Diff to previous 1.26 (colored)

Use aprint_*()

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jun 15 23:09:09 2003 UTC (20 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Handle 64bit DMA addresses on PCI for platforms that can (currently only
enabled on amd64). Add a dmat64 field to various PCI attach structures,
and pass it down where needed. Implement a simple new function called
pci_dma64_available(pa) to test if 64bit DMA addresses may be used.
This returns 1 iff _PCI_HAVE_DMA64 is defined in <machine/pci_machdep.h>,
and there is more than 4G of memory.

Revision 1.19.6.4 / (download) - annotate - [select for diffs], Fri Jan 3 17:08:03 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.19.6.3: +4 -4 lines
Diff to previous 1.19.6.3 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jan 1 00:10:23 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

Use aprint_normal() in cfprint routines.

Revision 1.19.6.3 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:19 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.2: +4 -5 lines
Diff to previous 1.19.6.2 (colored) to branchpoint 1.19 (colored)

Catch up to -current.

Revision 1.19.8.3 / (download) - annotate - [select for diffs], Thu Oct 10 18:41:13 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.19.8.2: +4 -5 lines
Diff to previous 1.19.8.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (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.24 / (download) - annotate - [select for diffs], Wed Oct 2 16:51:54 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Add trailing ; to CFATTACH_DECL.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Sep 30 20:38:01 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +4 -5 lines
Diff to previous 1.22 (colored)

Use CFATTACH_DECL().

Revision 1.22 / (download) - annotate - [select for diffs], Fri Sep 27 20:40:41 2002 UTC (21 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Declare all cfattach structures const.

Revision 1.19.8.2 / (download) - annotate - [select for diffs], Sun Jun 23 17:48:03 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.19.8.1: +14 -3 lines
Diff to previous 1.19.8.1 (colored) to branchpoint 1.19 (colored)

catch up with -current on kqueue branch

Revision 1.19.6.2 / (download) - annotate - [select for diffs], Thu Jun 20 03:45:53 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.19.6.1: +14 -3 lines
Diff to previous 1.19.6.1 (colored) to branchpoint 1.19 (colored)

Catch up to -current.

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Thu May 16 01:01:31 2002 UTC (21 years, 11 months ago) by thorpej
Branch: gehenna-devsw
Changes since 1.21.2.1: +150 -0 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

* Add "pcitag_t *pba_bridgetag" to pci_attach_args.  This is set to
  NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.

Revision 1.21.2.1, Thu May 16 01:01:30 2002 UTC (21 years, 11 months ago) by thorpej
Branch: gehenna-devsw
Changes since 1.21: +0 -150 lines
FILE REMOVED

file ppb.c was added on branch gehenna-devsw on 2002-05-16 01:01:31 +0000

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 16 01:01:30 2002 UTC (21 years, 11 months ago) by thorpej
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
Branch point for: gehenna-devsw
Changes since 1.20: +14 -3 lines
Diff to previous 1.20 (colored)

* Add "pcitag_t *pba_bridgetag" to pci_attach_args.  This is set to
  NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.

Revision 1.19.8.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:57:03 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

Sync kqueue branch with -current.

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

Catch up to -current.

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

add RCSID

Revision 1.18.14.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:36 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.18: +5 -2 lines
Diff to previous 1.18 (colored) next main 1.19 (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.18.20.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:24 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.18: +5 -2 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Pull up to last week's -current.

Revision 1.18.16.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:11 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.18: +5 -2 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with -current

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 4 19:04:04 1999 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, chs-ubc2-newbase
Branch point for: nathanw_sa, kqueue
Changes since 1.18: +5 -2 lines
Diff to previous 1.18 (colored)

Don't pass rd/mult capability though a PCI-PCI bridge.  The bridge would
have to break it up into mutliple rd/line's anyhow, so why bother letting
the device issue it in the first place.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jun 8 06:55:57 1998 UTC (25 years, 10 months ago) by thorpej
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, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, eeh-paddr_t-base, eeh-paddr_t, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.17: +1 -9 lines
Diff to previous 1.17 (colored)

Nuke __BROKEN_INDIRECT_CONFIG.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Mar 4 06:31:46 1998 UTC (26 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.16: +3 -13 lines
Diff to previous 1.16 (colored)

clean up slightly, correct a few comments

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Mon Jan 12 09:40:13 1998 UTC (26 years, 3 months ago) by thorpej
Branch: bouyer-scsipi
Changes since 1.16.2.1: +151 -0 lines
Diff to previous 1.16.2.1 (colored) next main 1.17 (colored)

Update for config changes.

Revision 1.16.2.1, Mon Jan 12 09:40:12 1998 UTC (26 years, 3 months ago) by thorpej
Branch: bouyer-scsipi
Changes since 1.16: +0 -151 lines
FILE REMOVED

file ppb.c was added on branch bouyer-scsipi on 1998-01-12 09:40:13 +0000

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jan 12 09:40:12 1998 UTC (26 years, 3 months ago) by thorpej
Branch: MAIN
Branch point for: bouyer-scsipi
Changes since 1.15: +1 -5 lines
Diff to previous 1.15 (colored)

Update for config changes.

Revision 1.15.4.2 / (download) - annotate - [select for diffs], Mon Sep 1 20:29:55 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.15.4.1: +155 -0 lines
Diff to previous 1.15.4.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Sat Aug 30 06:53:59 1997 UTC (26 years, 7 months ago) by mycroft
Branch: thorpej-bus-dma
Changes since 1.15.2.1: +155 -0 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Pass down bus_dma_tag_t's as appropriate (per Jason's bus_dma code).

Revision 1.15.4.1, Sat Aug 30 06:53:58 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.15: +0 -155 lines
FILE REMOVED

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

Revision 1.15.2.1, Sat Aug 30 06:53:58 1997 UTC (26 years, 7 months ago) by mycroft
Branch: thorpej-bus-dma
Changes since 1.15: +0 -155 lines
FILE REMOVED

file ppb.c was added on branch thorpej-bus-dma on 1997-08-30 06:53:59 +0000

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 30 06:53:58 1997 UTC (26 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-bus-dma-base, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base
Branch point for: thorpej-bus-dma, marc-pcmcia
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Pass down bus_dma_tag_t's as appropriate (per Jason's bus_dma code).

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 30 06:51:07 1997 UTC (26 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Pass the I/O and memory enable flags through the bridge.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Dec 5 01:25:31 1996 UTC (27 years, 4 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.12: +11 -2 lines
Diff to previous 1.12 (colored)

update these so they compile whether or not __BROKEN_INDIRECT_CONFIG
is defined.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Oct 21 22:57:00 1996 UTC (27 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

New bus.h implementation/interface:
	- No more distinction between i/o-mapped and memory-mapped
	  devices.  It's all "bus space" now, and space tags
	  differentiate the space with finer grain than the
	  bus chipset tag.
	- Add memory barrier methods.
	- Implement space alloc/free methods.
	- Implement region read/write methods (like memcpy to/from
	  bus space).
This interface provides a better abstraction for dealing with
machine-independent chipset drivers.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Oct 13 01:38:30 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

backout kprintf changes

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

printf -> kprintf, sprintf -> ksprintf

Revision 1.9 / (download) - annotate - [select for diffs], Tue Aug 27 21:59:53 1996 UTC (27 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

change cfprint_t type definition to take a const char *, rather than
a char *, because that's what was really intended, and because
if the print function modifies the string, various things could become
unhappy (so the string should _not_ be modified).

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 3 17:33:51 1996 UTC (27 years, 11 months ago) by christos
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.7: +1 -2 lines
Diff to previous 1.7 (colored)

remove unused variables

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 27 04:08:34 1996 UTC (28 years ago) by cgd
Branch: MAIN
Changes since 1.6: +16 -11 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 17 01:47:52 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

spacing nit

Revision 1.5 / (download) - annotate - [select for diffs], Sun Mar 17 00:55:39 1996 UTC (28 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.4: +7 -3 lines
Diff to previous 1.4 (colored)

New device attachment scheme:

	- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Mar 14 04:03:03 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.3: +5 -23 lines
Diff to previous 1.3 (colored)

These devices don't actually need softc's that are supersets of 'struct
device.'  No point in adding that complexity + space if they're not needed,
so axe them.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Mar 14 02:35:34 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

(1) provide #defines for cf_loc[] entries for devices that attach to
    pcibus and pci.
(2) remove the #ifdef i386 from pci.c, and provide a machine-dependent
    hook (pci_md_attach_hook()) to do any machine-dependent attachment
    gunk, e.g. on the i386 printing out the configuration mode (if bus 0)
(3) don't pass max device number for a given bus in, use
    PCI_MAX_DEVICE_NUMBER, which can be defined on a per-machine basis.
    (defaults to 32.  on i386, it's 32 if pci conf mode == 1, 16 if 2.)

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 4 17:02:46 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

fix aux argument to config_found() for secondary bus.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Feb 28 01:46:32 1996 UTC (28 years, 1 month ago) by cgd
Branch: MAIN

Preliminary support for PCI-PCI bridges.  Recognize a PCI-PCI bridge
and attach the secondary pci bus as a 'pci' device.  Note that this support
is incomplete and will not yet work for ports other than that i386.  (The
i386 can rely on the PCI interrupt 'line' information to determine
interrupt mapping, which is not necessarily possible on other systems.)

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>