The NetBSD Project

CVS log for src/sys/arch/x86/pci/ichlpcib.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.62: download - view: text, markup, annotated - select for diffs
Wed Dec 18 18:18:30 2024 UTC (4 weeks, 5 days ago) by hans
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -2 lines
Add support for the Braswell PCU LPC to ichlpcib.

Revision 1.58.4.1: download - view: text, markup, annotated - select for diffs
Tue Aug 1 14:06:36 2023 UTC (17 months, 3 weeks ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Diff to: previous 1.58: preferred, colored; next MAIN 1.59: preferred, colored
Changes since revision 1.58: +16 -2 lines
Pull up following revision(s) (requested by riastradh in ticket #282):

	sys/dev/pci/ichsmb.c: revision 1.82
	sys/arch/amd64/conf/GENERIC: revision 1.602
	sys/arch/x86/pci/tco.c: revision 1.10
	sys/arch/x86/pci/tco.h: revision 1.5
	sys/arch/x86/pci/ichlpcib.c: revision 1.59
	sys/dev/ic/i82801lpcreg.h: revision 1.17
	sys/arch/x86/pci/files.pci: revision 1.27
	sys/dev/pci/files.pci: revision 1.446

ichsmb(4), tco(4): Add support for TCO on newer Intel chipsets.

TCO (`Total Cost of Ownership', Intel's bizarre name for a watchdog
timer) used to hang off the Intel I/O platform controller hub's (ICH)
low-pin-count interface bridge (LPC IB), or ichlpcib(4).  On newer
devices, it hangs off the ICH SMBus instead.
Tested on INTEL 100SERIES_SMB (works) and INTEL 100SERIES_LP_SMB
(doesn't work, still not sure why).

XXX kernel revbump: This breaks the module ABI -- tco(4) modules
older than the change to make ta_has_rcba into ta_version will
incorrectly attach at buses they do not understand.  (However, the
tco(4) driver is statically built into GENERIC, so maybe it's safe
for pullup since the module wouldn't have worked anyway.)

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue May 9 23:11:09 2023 UTC (20 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +23 -79 lines
ichlpcib(4): Use config_detach_children.

Delete a lot of unnecessary code with broken error branches involving
config_detach which have probably seldom if ever been exercised.

No substantive functional change intended.  Low risk because
ichlpcib(4) is not a removable device, so you have to go out of your
way to exercise detach.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue May 9 23:10:11 2023 UTC (20 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +20 -20 lines
ichlpcib(4): KNF.  No functional change intended.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Apr 12 06:39:15 2023 UTC (21 months, 1 week ago) by riastradh
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +16 -2 lines
ichsmb(4), tco(4): Add support for TCO on newer Intel chipsets.

TCO (`Total Cost of Ownership', Intel's bizarre name for a watchdog
timer) used to hang off the Intel I/O platform controller hub's (ICH)
low-pin-count interface bridge (LPC IB), or ichlpcib(4).  On newer
devices, it hangs off the ICH SMBus instead.

Tested on INTEL 100SERIES_SMB (works) and INTEL 100SERIES_LP_SMB
(doesn't work, still not sure why).

XXX kernel revbump: This breaks the module ABI -- tco(4) modules
older than the change to make ta_has_rcba into ta_version will
incorrectly attach at buses they do not understand.  (However, the
tco(4) driver is statically built into GENERIC, so maybe it's safe
for pullup since the module wouldn't have worked anyway.)

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Sep 22 14:42:29 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
CVS tags: netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +13 -13 lines
ichlpcib(4), tco(4): Rename iot -> pmt, ioh -> pmh.

Makes it clearer that this is specifically about the power management
controller (PMC) registers relative to PMBASE.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Sep 22 14:42:09 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +13 -13 lines
ichlpcib(4), tco(4): Take `lpcib_' off various names.

For PMC-specific ones, change `lpcib_' to `pmc_'.  These are in a
separate PCI device in newer chipsets.

For TCO-specific ones, which may live in different places, whether at
their own base address or as an offset from PMBASE, just leave it as
`tco_' or `tcotimer'.

No functional change intended.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Sep 22 14:41:49 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
tco(4): Rename lpcib_tco_attach_args -> tco_attach_args.

No longer hangs off LPC bus, newer devices hang it off SMBus.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Sep 22 14:41:26 2022 UTC (2 years, 3 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +7 -4 lines
tco(4): Change has_rcba bit into version number.

Will be useful for newer Intel platform controller hubs.

No functional change intended.  Module ABI is unchanged, although older
modules will do something nonseneical when confronted with versions
above 1 -- that will require a revbump (but with any luck, it will make
life easier for versions above 2 easier once we do that).

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:07 2021 UTC (3 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +6 -10 lines
Merge thorpej-cfargs2.

Revision 1.53.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 03:03:30 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +6 -10 lines
Adapt to CFARGS().

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:51 2021 UTC (3 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +14 -6 lines
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.52.16.1: download - view: text, markup, annotated - select for diffs
Fri Apr 2 22:17:42 2021 UTC (3 years, 9 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +14 -6 lines
config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.51.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:47 2018 UTC (6 years, 6 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +5 -5 lines
Sync with HEAD

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Jun 3 10:13:54 2018 UTC (6 years, 7 months ago) by maxv
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, 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: thorpej-cfargs
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +5 -5 lines
Constify lpcib_devices[] so that it lands in .rodata (1584 bytes).

Revision 1.34.10.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:50 2017 UTC (7 years, 1 month ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.34.10.3: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.10.3: +71 -220 lines
update from HEAD

Revision 1.43.4.5.2.1: download - view: text, markup, annotated - select for diffs
Wed Jan 18 08:46:26 2017 UTC (8 years ago) by skrll
Branches: netbsd-7-nhusb
Diff to: previous 1.43.4.5: preferred, colored; next MAIN 1.43.4.6: preferred, colored
Changes since revision 1.43.4.5: +4 -2 lines
Sync with netbsd-5

Revision 1.43.4.6: download - view: text, markup, annotated - select for diffs
Fri Dec 9 04:48:44 2016 UTC (8 years, 1 month ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Diff to: previous 1.43.4.5: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.4.5: +4 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #1295):
	sys/arch/x86/pci/ichlpcib.c: revision 1.50
Add Core 5G (mobile) LPC support.

Revision 1.43.6.3: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:37 2016 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.43.6.2: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.6.2: +13 -2 lines
Sync with HEAD

Revision 1.43.4.5: download - view: text, markup, annotated - select for diffs
Sun Aug 28 03:38:15 2016 UTC (8 years, 4 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base
Branch point for: netbsd-7-nhusb
Diff to: previous 1.43.4.4: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.4: +13 -2 lines
Pull up following revision(s) (requested by maya in ticket #1213):
	sys/arch/x86/pci/ichlpcib.c: revision 1.51
Disable gpio(4) attachment to ichlpcib(4) by default.
The GPIO lines on an ICH are usually connected to opaque platform-
defined functionality, and may be manipulated by the ACPI DSDT or other
mechanisms behind our backs.  In one instance, it was found this
in combiation with gpio_resume() sabotaged repeated suspend/resume cycles.
GPIO functionality can be enabled by setting ichlpcib_gpio_disable to 0,
for instance with `gdb -write`.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Aug 6 21:57:04 2016 UTC (8 years, 5 months ago) by jakllsch
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-compat-base, 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, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +13 -2 lines
Disable gpio(4) attachment to ichlpcib(4) by default.

The GPIO lines on an ICH are usually connected to opaque platform-
defined functionality, and may be manipulated by the ACPI DSDT or other
mechanisms behind our backs.  In one instance, it was found this
in combiation with gpio_resume() sabotaged repeated suspend/resume cycles.

GPIO functionality can be enabled by setting ichlpcib_gpio_disable to 0,
for instance with `gdb -write`.

Revision 1.43.6.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:04 2015 UTC (9 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.43.6.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.6.1: +35 -220 lines
Sync with HEAD

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun May 17 04:59:43 2015 UTC (9 years, 8 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -2 lines
 Add Core 5G (mobile) LPC support.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun May 3 02:50:59 2015 UTC (9 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +27 -214 lines
Separate the watchdog code from the pcib code, and make the watchdog
a loadable module.

Revision 1.43.4.4: download - view: text, markup, annotated - select for diffs
Thu Apr 30 19:27:20 2015 UTC (9 years, 8 months ago) by snj
Branches: netbsd-7
CVS tags: 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
Diff to: previous 1.43.4.3: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.3: +6 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #725):
	sys/arch/x86/pci/ichlpcib.c: revisions 1.47, 1.48
	sys/dev/pci/ichsmb.c: revisions 1.39, 1.40, 1.41
	sys/dev/pci/pucdata.c: revision 1.94
Add 9 Series support.
--
Add Intel C61x and X99 devices.
--
attach Mobile 5th Gen. Core SMBus

Revision 1.43.6.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:04 2015 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +35 -10 lines
Sync with HEAD

Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Mar 20 12:01:32 2015 UTC (9 years, 10 months ago) by msaitoh
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -2 lines
Add Intel C61x and X99 devices.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Mar 18 05:54:14 2015 UTC (9 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -2 lines
Add 9 Series support.

Revision 1.43.4.3: download - view: text, markup, annotated - select for diffs
Tue Feb 17 15:06:07 2015 UTC (9 years, 11 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.43.4.2: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.2: +4 -2 lines
Pull up following revision(s) (requested by msaitoh in ticket #528):
	sys/dev/pci/ichsmb.c: revision 1.38
	sys/dev/pci/pcidevs: revision 1.1206
	sys/dev/pci/pcidevs: revision 1.1207
	sys/arch/x86/pci/ichlpcib.c: revision 1.44
Change Intel 0x0434 entry:
- Rename DH89XX_QA to DH89XXCC_IQIA
- Modify the description to DH89xxCC PCIe Endpoint and QuickAssist
  (include typo fix)
- Rename DH89xxCC's names from DH89XX_ to DH89XXCC_.
- Add some DH89xxCC's devices.
- Add DH89XXCL's devices.
- Rename PCI_PRODUCT_INTEL_DH89XX_SMB to PCI_PRODUCT_INTEL_DH89XXCC_SMB
- Add PCI_PRODUCT_INTEL_DH89XXCL_SMB
Add DH89xxC[CL] LPC devices.

Revision 1.43.4.2: download - view: text, markup, annotated - select for diffs
Mon Jan 26 16:16:11 2015 UTC (9 years, 11 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.43.4.1: preferred, colored; branchpoint 1.43: preferred, colored
Changes since revision 1.43.4.1: +19 -11 lines
Pull up following revision(s) (requested by msaitoh in ticket #455):
	sys/arch/x86/pci/ichlpcib.c: revision 1.46

The PMBASE and GPIOBASE registers are not compatible with the PCI spec
and the map sizes are fixed to 128bytes. The pci_mapreg_submap()
function has a code to check the range of the BAR. The
PCI_MAPREG_IO_SIZE() macro returns lower than 128bytes on some
machines. This makes it impossible to use pci_mapreg_submap(). Use
pci_conf_read() and bus_space_map() directly.

Revision 1.34.6.2: download - view: text, markup, annotated - select for diffs
Mon Jan 26 13:43:44 2015 UTC (9 years, 11 months ago) by martin
Branches: netbsd-6
Diff to: previous 1.34.6.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.6.1: +19 -11 lines
Pull up following revision(s) (requested by msaitoh in ticket #1239):
	sys/arch/x86/pci/ichlpcib.c: revision 1.46
The PMBASE and GPIOBASE registers are not
compatible with the PCI spec and the map sizes are fixed to 128bytes. The
pci_mapreg_submap() function has a code to check the range of the BAR. The
PCI_MAPREG_IO_SIZE() macro returns lower than 128bytes on some machines.
This makes it impossible to use pci_mapreg_submap(). Use pci_conf_read() and
bus_space_map() directly.

Revision 1.14.4.4: download - view: text, markup, annotated - select for diffs
Mon Jan 26 13:34:03 2015 UTC (9 years, 11 months ago) by martin
Branches: netbsd-5
Diff to: previous 1.14.4.3: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.4.3: +12 -6 lines
Pull up following revision(s) (requested by msaitoh in ticket #1944):
	sys/arch/x86/pci/ichlpcib.c: revision 1.46

The PMBASE and GPIOBASE registers are not compltible with the PCI spec
and the map sizes are fixed to 128bytes. The pci_mapreg_submap()
function has a code to check the range of the BAR. The
PCI_MAPREG_IO_SIZE() macro returns lower than 128bytes on some
machines. It makes impossible to use pci_mapreg_submap(). Use
pci_conf_read() and bus_space_map() directly.

Revision 1.14.4.3: download - view: text, markup, annotated - select for diffs
Fri Jan 23 16:24:55 2015 UTC (10 years ago) by martin
Branches: netbsd-5
Diff to: previous 1.14.4.2: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.4.2: +11 -7 lines
Pull up the following changes, requested by msaitoh in ticket #1942:

sys/arch/x86/pci/ichlpcib.c		1.40, 1.45 via patch
sys/dev/ic/i82801lpcreg.h		1.12
sys/dev/pci/pci_map.c			1.32 via patch

	- Fix a bug that ichlpcib(4) maps I/O area incorrectly. It might also
	  fixes ACPI related problem described in PR#48960:
	  - The LPCIB_PCI_PMBASE and LPCIB_PCI_GPIO register are alike PCI BAR
	    but not completely compatible with it. It's ok because the
	    registers' addresses are out of BAR0-BAR5(0x10-0x24) and are
	    located in the device-dependent header. The PMBASE and GPIO
	    registers define the base address and the type but not describe
	    the size. The size is fixed to 128bytes. So use
	    pci_mapreg_submap().
	  - Fix the calculation of the map size in pci_mapreg_submap().
	- Use '\n' at the end of aprint_error_dev() format strings.

Revision 1.34.6.1: download - view: text, markup, annotated - select for diffs
Fri Jan 16 08:22:25 2015 UTC (10 years ago) by snj
Branches: netbsd-6
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +23 -12 lines
Pull up following revision(s) (requested by msaitoh in ticket #1229):
	sys/arch/x86/pci/ichlpcib.c: revision 1.40, 1.45
	sys/dev/pci/pcivar.h: revision 1.101
	sys/dev/pci/pci_map.c: revision 1.32
	sys/dev/ic/i82801lpcreg.h: revision 1.12
Use '\n' at the end of all aprint_error_dev() format strings.
--
Fix a bug that ichlpcib(4) maps I/O area incorrectly and then fails to attach
gpio. It might also fixes ACPI related problem described in PR#48960:
 - The LPCIB_PCI_PMBASE and LPCIB_PCI_GPIO register are alike PCI BAR but not
   completely compatible with it. It's ok because the registers' addresses are
   out of BAR0-BAR5(0x10-0x24) and are located in the device-dependent header.
   The PMBASE and GPIO registers define the base address and the type but not
   describe the size. The size is fixed to 128bytes. So use
   pci_mapreg_submap().
 - Make pci_mapreg_submap() extern again.
 - Fix the calculation of the map size in pci_mapreg_submap().

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Jan 13 08:57:02 2015 UTC (10 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +19 -11 lines
As I wrote in the last commit, The PMBASE and GPIOBASE registers are not
compltible with the PCI spec and the map sizes are fixed to 128bytes. The
pci_mapreg_submap() function has a code to check the range of the BAR. The
PCI_MAPREG_IO_SIZE() macro returns lower than 128bytes on some machines.
It makes impossible to use pci_mapreg_submap(). Use pci_conf_read() and
bus_space_map() directly. Observed and tested with my Thinkpad X61.

Revision 1.43.4.1: download - view: text, markup, annotated - select for diffs
Thu Jan 8 11:39:38 2015 UTC (10 years ago) by martin
Branches: netbsd-7
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +20 -9 lines
Pull up following revision(s) (requested by msaitoh in ticket #394):
	sys/dev/pci/pcivar.h: revision 1.101
	sys/dev/pci/pci_map.c: revision 1.32
	sys/dev/ic/i82801lpcreg.h: revision 1.12
	sys/arch/x86/pci/ichlpcib.c: revision 1.45
Fix a bug that ichlpcib(4) maps I/O area incorrectly and then fails to attach
gpio. It might also fix ACPI related problem described in PR#48960:
  - The LPCIB_PCI_PMBASE and LPCIB_PCI_GPIO register are alike PCI BAR but not
    completely compatible with it. It's ok because the registers' addresses are
    out of BAR0-BAR5(0x10-0x24) and are located in the device-dependent header.
    The PMBASE and GPIO registers define the base address and the type but not
    describe the size. The size is fixed to 128bytes. So use
    pci_mapreg_submap().
  - Make pci_mapreg_submap() extern again.
  - Fix the calculation of the map size in pci_mapreg_submap().

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Dec 26 05:09:03 2014 UTC (10 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +20 -9 lines
Fix a bug that ichlpcib(4) maps I/O area incorrectly and then fails to attach
gpio. It might also fix ACPI related problem described in PR#48960:
 - The LPCIB_PCI_PMBASE and LPCIB_PCI_GPIO register are alike PCI BAR but not
   completely compatible with it. It's ok because the registers' addresses are
   out of BAR0-BAR5(0x10-0x24) and are located in the device-dependent header.
   The PMBASE and GPIO registers define the base address and the type but not
   describe the size. The size is fixed to 128bytes. So use
   pci_mapreg_submap().
 - Make pci_mapreg_submap() extern again.
 - Fix the calculation of the map size in pci_mapreg_submap().

Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Dec 15 13:29:42 2014 UTC (10 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -2 lines
Add DH89xxC[CL] LPC devices.

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

Revision 1.33.2.4: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:13 2014 UTC (10 years, 8 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.33.2.3: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.3: +25 -5 lines
sync with head.

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

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

Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:30 2014 UTC (10 years, 8 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +12 -5 lines
sync with head

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Jan 4 02:59:17 2014 UTC (11 years ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2 lines
Add Z68 LPC.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Jan 4 02:09:12 2014 UTC (11 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2 lines
Temporary disable C2000 PCU because the behavior of the wdog is little strange.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Jan 3 23:18:48 2014 UTC (11 years ago) by msaitoh
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +6 -2 lines
Add C2000 Platform Controller Unit(PCU).

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Sep 17 01:16:45 2013 UTC (11 years, 4 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -5 lines
Use '\n' at the end of all aprint_error_dev() format strings.

Revision 1.34.10.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:14 2013 UTC (11 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.34.10.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.10.1: +15 -2 lines
resync from head

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Jun 4 13:59:16 2013 UTC (11 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +15 -2 lines
Add Intel 8 Series / C220 Series LPC devices.

Revision 1.34.10.1: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:05 2013 UTC (11 years, 10 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +56 -35 lines
resync with head

Revision 1.33.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:00 2013 UTC (12 years ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.33.2.2: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.2: +17 -2 lines
sync with head

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:10 2013 UTC (12 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.1: +41 -35 lines
sync with (a bit old) head

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Jan 12 20:33:59 2013 UTC (12 years ago) by riastradh
Branches: MAIN
CVS tags: yamt-pagecache-base8, khorben-n900, agc-symver-base, agc-symver
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -2 lines
Match the C600's ichlpcib.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Dec 19 05:52:00 2012 UTC (12 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +16 -2 lines
Add Intel 7 series' LPC devices.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Dec 6 12:50:09 2012 UTC (12 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +20 -4 lines
Add support 3400 series, 5 series, C216, 82801GH, 82801E and 6300ESB.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Dec 6 10:32:44 2012 UTC (12 years, 1 month ago) by msaitoh
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +25 -35 lines
No functional change:
- Remove trailing white space.
- Sort entries.
- Remove duplicated entries.

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:07:05 2012 UTC (12 years, 9 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +17 -2 lines
sync with head

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Nov 17 20:04:25 2011 UTC (13 years, 2 months ago) by riz
Branches: MAIN
CVS tags: yamt-pagecache-base6, 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: tls-maxphys, netbsd-6
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +17 -2 lines
Also match ICH8, ICH9 and ICH10 devices.  Tested on ICH10.

Revision 1.14.8.5: download - view: text, markup, annotated - select for diffs
Sat Aug 27 15:37:30 2011 UTC (13 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.14.8.4: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.8.4: +22 -90 lines
Sync with HEAD. Most notably: uvm/pmap work done by rmind@, and MP Xen
work of cherry@.

No regression observed on suspend/restore.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Aug 14 12:42:19 2011 UTC (13 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: yamt-pagecache
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +17 -2 lines
Add some LPC entries for Intel 6 series and C20x.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jul 1 18:22:08 2011 UTC (13 years, 6 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
#include <sys/bus.h> instead of <machine/bus.h>.

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:48 2011 UTC (13 years, 7 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.29: preferred, colored; next MAIN 1.30: preferred, colored
Changes since revision 1.29: +6 -89 lines
Catchup with rmind-uvmplock merge.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Jun 15 06:43:20 2011 UTC (13 years, 7 months ago) by jruoho
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -87 lines
Factor out hpet(4) from ichlpcib(4).

Revision 1.24.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:11 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.24.2.2: preferred, colored; branchpoint 1.24: preferred, colored; next MAIN 1.25: preferred, colored
Changes since revision 1.24.2.2: +2 -2 lines
sync with head

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Jun 6 14:33:31 2011 UTC (13 years, 7 months ago) by msaitoh
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -4 lines
Rename to use PCI_PRODUCT_INTEL_82801DBM_LPC

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:07:06 2011 UTC (13 years, 7 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +3 -3 lines
Sync with HEAD.

Revision 1.14.8.4: download - view: text, markup, annotated - select for diffs
Mon May 2 22:49:57 2011 UTC (13 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.14.8.3: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.8.3: +3 -3 lines
Sync with head.

Revision 1.24.2.2: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:32 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.24.2.1: preferred, colored; branchpoint 1.24: preferred, colored
Changes since revision 1.24.2.1: +1 -1 lines
sync with head

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Apr 4 20:37:55 2011 UTC (13 years, 9 months ago) by dyoung
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'

Revision 1.24.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:52:28 2011 UTC (13 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +78 -3 lines
sync with head

Revision 1.14.8.3: download - view: text, markup, annotated - select for diffs
Sun Oct 24 22:48:17 2010 UTC (14 years, 3 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.14.8.2: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.8.2: +82 -16 lines
Sync with HEAD

Revision 1.23.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:21:41 2010 UTC (14 years, 3 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.23.2.2: preferred, colored; branchpoint 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23.2.2: +2 -1 lines
Sync with HEAD (-D20101022).

Revision 1.10.4.6: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:31:57 2010 UTC (14 years, 3 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.5: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.4.5: +4 -3 lines
sync with head

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Sep 6 20:03:56 2010 UTC (14 years, 4 months ago) by christos
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
make it compile.

Revision 1.23.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:45:32 2010 UTC (14 years, 5 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.23.2.1: preferred, colored; branchpoint 1.23: preferred, colored
Changes since revision 1.23.2.1: +74 -0 lines
Sync with HEAD.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Aug 17 01:45:51 2010 UTC (14 years, 5 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -2 lines
Match ichlpcib(4) on ICH0 (82801AB_LPC).

Revision 1.10.4.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:52:56 2010 UTC (14 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.4: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.4: +76 -2 lines
sync with head.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Jul 23 02:23:58 2010 UTC (14 years, 6 months ago) by jakllsch
Branches: MAIN
CVS tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -8 lines
Finish cleaning up pchb from recent change.
Use fewer magic numbers in ichlpcib.
Slightly improve style conformance.
Update paths in cpp re-inclusion guards.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jul 23 00:43:21 2010 UTC (14 years, 6 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +74 -2 lines
Almost entirely rework Intel Firmware Hub random number generator support.

This introduces fwhrng(4) which attaches via ichlpcib(4), replacing
the rnd(4) support in pchb(4).

Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:58 2010 UTC (14 years, 8 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +6 -6 lines
Sync with HEAD.

Revision 1.14.4.1.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:33:46 2010 UTC (14 years, 9 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.14.4.1: preferred, colored; next MAIN 1.14.4.2: preferred, colored
Changes since revision 1.14.4.1: +11 -10 lines
sync to netbsd-5

Revision 1.10.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:08 2010 UTC (14 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.3: +233 -16 lines
sync with head

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:55 2010 UTC (14 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, uebayasi-xip-base1
Branch point for: rmind-uvmplock
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +6 -6 lines
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.23: download - view: text, markup, annotated - select for diffs
Fri Jan 8 19:43:26 2010 UTC (15 years ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +6 -6 lines
Expand PMF_FN_* macros.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Jan 8 00:09:45 2010 UTC (15 years ago) by dyoung
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +2 -11 lines
Move all copies of ifattr_match() to sys/kern/subr_autoconf.c.

Revision 1.14.8.2: download - view: text, markup, annotated - select for diffs
Sun Nov 1 13:58:17 2009 UTC (15 years, 2 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.14.8.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.8.1: +434 -19 lines
Sync with HEAD.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Sep 27 18:27:01 2009 UTC (15 years, 3 months ago) by jakllsch
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -2 lines
Make this build without gpio(4).

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Sep 27 17:55:31 2009 UTC (15 years, 3 months ago) by jakllsch
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +228 -4 lines
gpio(4) support for Intel ICH southbridges.

Tested on Intel SS4200-E (ICH7), and Acorp 6A815EPD (ICH2) motherboards,
on amd64 and i386 ports respectively.

It should be noted that the majority of boards with ICH chips do not
expose the GPIO pins for off-board use.  For instance, aside from the
three exposed-on-a-header pins on the 6A815EPD, another pin is also
used to control write protect on the FWH.  The SS4200 exposes the GPIO
on a header that connects to the 10 LEDs on the front panel, as well
as a tact switch on the back panel.

Revision 1.10.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:46:50 2009 UTC (15 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.2: +208 -19 lines
sync with head.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Aug 18 17:47:46 2009 UTC (15 years, 5 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +199 -11 lines
Let us detach ichlpcib(4) and its children.

XXX More testing is needed.  I've tested this on a Dell Dimension 3000,
XXX but that system does not attach every possible device that I try to
XXX detach with this code:

ichlpcib0 at pci0 dev 31 function 0
ichlpcib0: vendor 0x8086 product 0x24d0 (rev. 0x02)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
ichlpcib0: TCO (watchdog) timer configured.
isa0 at ichlpcib0

Revision 1.14.4.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 16 00:17:46 2009 UTC (15 years, 5 months ago) by snj
Branches: netbsd-5-0
CVS tags: netbsd-5-0-2-RELEASE
Diff to: previous 1.14.4.1: preferred, colored; next MAIN 1.14.4.2: preferred, colored
Changes since revision 1.14.4.1: +11 -10 lines
Pull up following revision(s) (requested by bouyer in ticket #912):
	sys/arch/x86/pci/ichlpcib.c: revision 1.18
Fix watchdog code:
- the timer bound constants are in tick, so convert period to tick before
  checking it against the bounds
- for ICH5 or older, fix code that would have always written a 0 period
  to the register.

Revision 1.14.4.2: download - view: text, markup, annotated - select for diffs
Sun Aug 16 00:16:28 2009 UTC (15 years, 5 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.14.4.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.4.1: +11 -10 lines
Pull up following revision(s) (requested by bouyer in ticket #912):
	sys/arch/x86/pci/ichlpcib.c: revision 1.18
Fix watchdog code:
- the timer bound constants are in tick, so convert period to tick before
  checking it against the bounds
- for ICH5 or older, fix code that would have always written a 0 period
  to the register.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Aug 11 17:15:32 2009 UTC (15 years, 5 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +11 -10 lines
Fix watchdog code:
- the timer bound constants are in tick, so convert period to tick before
  checking it against the bounds
- for ICH5 or older, fix code that would have always written a 0 period
  to the register.

Revision 1.14.8.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:18:44 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +28 -3 lines
Sync with HEAD.

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

Revision 1.10.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:10 2009 UTC (15 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10.4.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.1: +61 -28 lines
sync with head.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Apr 29 14:55:36 2009 UTC (15 years, 8 months ago) by njoly
Branches: MAIN
CVS tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, jymxensuspend-base
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -2 lines
Attach 82801IEM LPC Interface Bridge too.

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:34:56 2009 UTC (15 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.14.2.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.2.1: +22 -3 lines
Sync with HEAD.

Revision 1.14.4.1: download - view: text, markup, annotated - select for diffs
Tue Apr 7 23:28:30 2009 UTC (15 years, 9 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-1-RELEASE, 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
Branch point for: netbsd-5-0, matt-nb5-mips64
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +22 -3 lines
Pull up following revision(s) (requested by joerg in ticket #669):
	sys/arch/x86/pci/ichlpcib.c: revision 1.16
Restore SpeedStep settings on shutdown. Some BIOSes don't like it, if
SpeedStep is enabled and powerdown fails otherwise. Fixes PR kern/40487.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Apr 4 23:13:18 2009 UTC (15 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +22 -3 lines
Restore SpeedStep settings on shutdown. Some BIOSes don't like it, if
SpeedStep is enabled and powerdown fails otherwise. Fixes PR kern/40487.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:29:37 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -2 lines
Sync with HEAD.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Mar 3 06:05:28 2009 UTC (15 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: nick-hppapmap-base2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -2 lines
don't enable speedstep on systems with intel 82855GM host bridges.

Revision 1.7.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:38 2009 UTC (16 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.7.6.3: preferred, colored; branchpoint 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7.6.3: +2 -0 lines
Sync with HEAD.

Revision 1.11.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:07 2008 UTC (16 years, 3 months ago) by haad
Branches: haad-dm
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +35 -27 lines
Sync with HEAD.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Oct 13 15:10:51 2008 UTC (16 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5, jym-xensuspend
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -2 lines
Intel Tempest can use ichlpcib as well.

Revision 1.7.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:11 2008 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.7.6.2: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.2: +31 -25 lines
Sync with HEAD.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:33:37 2008 UTC (16 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +33 -27 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Aug 14 01:20:30 2008 UTC (16 years, 5 months ago) by yamt
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +14 -6 lines
revert some parts of the following commit.
(given that it reverted other developers' changes saying
"misc/cosmetic changes", i assume that it was unintentional.)
this makes a watchdog on my box (8086:24d0) work again.
    ----------------------------
    revision 1.1
    date: 2007/08/26 16:49:47;  author: xtraeme;  state: Exp;
    branches:  1.1.2;
    Some changes for the ichlpcib driver:

    - Moved to x86/pci, so that EM64T systems running NetBSD/amd64 can use it.
    - Added support for the TCO on ICH6 or newer chipsets, adapted from
      FreeBSD.
    - Added timecounter support for the power management timer, adapted from
      OpenBSD.
    - Plus some misc/cosmetic changes.

    Thanks to yukonbob on irc@freenode for testing the TCO part on ICH4-M.
    Tested by me with ICH7 too.

Revision 1.11.4.1: download - view: text, markup, annotated - select for diffs
Mon Jul 28 14:37:26 2008 UTC (16 years, 5 months ago) by simonb
Branches: simonb-wapbl
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +21 -23 lines
Sync with head.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun Jul 20 17:18:21 2008 UTC (16 years, 6 months ago) by martin
Branches: MAIN
CVS tags: simonb-wapbl-nbase, simonb-wapbl-base
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +21 -23 lines
Make struct pcib_softc explicit in our softc.

Revision 1.7.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:22:50 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.7.6.1: preferred, colored; branchpoint 1.7: preferred, colored
Changes since revision 1.7.6.1: +1 -9 lines
Sync with HEAD.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:33:04 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +2 -9 lines
sync with head.

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:23:28 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -9 lines
sync with head.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:40 2008 UTC (16 years, 8 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl, haad-dm
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Apr 16 16:06:51 2008 UTC (16 years, 9 months ago) by cegger
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -4 lines
- use aprint_*_dev and device_xname
- use POSIX integer types

Revision 1.7.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:42:30 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +59 -57 lines
Sync with HEAD.

Revision 1.4.4.6: download - view: text, markup, annotated - select for diffs
Mon Mar 24 09:38:40 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.5: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.4.5: +55 -53 lines
sync with head.

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:15:09 2008 UTC (16 years, 10 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +6 -6 lines
sync with head.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:28 2008 UTC (16 years, 10 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.1.2.2: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.2: +62 -72 lines
sync with HEAD

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Mar 21 13:25:27 2008 UTC (16 years, 10 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, ad-socklock-base1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +55 -53 lines
Split device_t/softc for ichlpcib(4) and all hpet consumers, plus
other related cosmetic changes.

Revision 1.4.4.5: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:14:34 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.4: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.4: +6 -6 lines
sync with head.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Feb 29 06:27:15 2008 UTC (16 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: keiichi-mipv6-nbase, keiichi-mipv6-base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -6 lines
Use PMF_FN_ARGS, PMF_FN_PROTO.

Revision 1.4.14.3: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:05:17 2008 UTC (16 years, 11 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.4.14.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.14.2: +5 -17 lines
Sync with HEAD.

Revision 1.4.4.4: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:40:10 2008 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.3: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.3: +310 -141 lines
sync with head

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 19 12:14:48 2008 UTC (17 years ago) by bouyer
Branches: bouyer-xeni386
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +5 -17 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Jan 15 00:24:47 2008 UTC (17 years ago) by drochner
Branches: MAIN
CVS tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -17 lines
fix some unaligned PCI config space accesses in suspend/resume functions

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:49:50 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.1.2.1: preferred, colored
Changes since revision 1.1.2.1: +330 -149 lines
sync with HEAD

Revision 1.4.14.2: download - view: text, markup, annotated - select for diffs
Thu Dec 27 00:43:25 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.4.14.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.14.1: +328 -147 lines
Sync with HEAD.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:42:56 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +328 -147 lines
Sync with head.

Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:20:54 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +328 -147 lines
sync with head.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Dec 9 20:27:49 2007 UTC (17 years, 1 month ago) by jmcneill
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, vmlocking2-base3, matt-armv6-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-merge1
Branch point for: bouyer-xeni386
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +328 -147 lines
Merge jmcneill-pm branch.

Revision 1.4.14.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:18:10 2007 UTC (17 years, 1 month ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +8 -8 lines
Sync with HEAD.

Revision 1.4.6.17: download - view: text, markup, annotated - select for diffs
Sat Dec 8 16:20:58 2007 UTC (17 years, 1 month ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.4.6.16: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.6.16: +3 -3 lines
Rename pnp(9) -> pmf(9), as requested by many.

Revision 1.4.4.3: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:26:57 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.2: +8 -8 lines
sync with head

Revision 1.4.10.3: download - view: text, markup, annotated - select for diffs
Mon Dec 3 18:40:10 2007 UTC (17 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.4.10.2: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.10.2: +8 -8 lines
Sync with HEAD.

Revision 1.4.6.16: download - view: text, markup, annotated - select for diffs
Tue Nov 27 19:35:55 2007 UTC (17 years, 1 month ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.15: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.15: +8 -8 lines
Sync with HEAD. amd64 Xen support needs testing.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Nov 23 11:21:14 2007 UTC (17 years, 2 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-kmem-base, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base
Branch point for: yamt-kmem, vmlocking2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +8 -8 lines
tcotimer_setmode: convert seconds to ticks after the value has been
checked with the limits. We can use now the max timeout value on ICH6
or newer (i.e 613 seconds and not the half of it as previously).

Revision 1.4.6.15: download - view: text, markup, annotated - select for diffs
Mon Nov 12 18:56:56 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.14: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.14: +2 -3 lines
GC unused softc field.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:23:42 2007 UTC (17 years, 2 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +12 -7 lines
sync with HEAD

Revision 1.4.6.14: download - view: text, markup, annotated - select for diffs
Tue Nov 6 14:27:10 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.13: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.13: +12 -13 lines
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.4.10.2: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:38:43 2007 UTC (17 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.4.10.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.10.1: +606 -0 lines
Sync with head.

Revision 1.4.6.13: download - view: text, markup, annotated - select for diffs
Mon Oct 1 05:37:23 2007 UTC (17 years, 3 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.12: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.12: +59 -121 lines
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.4.6.12: download - view: text, markup, annotated - select for diffs
Wed Sep 5 21:23:30 2007 UTC (17 years, 4 months ago) by cube
Branches: jmcneill-pm
Diff to: previous 1.4.6.11: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.11: +3 -3 lines
Finish previous commit.

Revision 1.4.6.11: download - view: text, markup, annotated - select for diffs
Wed Sep 5 21:17:56 2007 UTC (17 years, 4 months ago) by cube
Branches: jmcneill-pm
Diff to: previous 1.4.6.10: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.10: +4 -4 lines
Avoid any future confusion by renaming the (unused) first argument of
lpci_hpet_match from "self" to "parent".  Sprinkle a few device_t while
there.

Revision 1.4.6.10: download - view: text, markup, annotated - select for diffs
Wed Sep 5 21:04:54 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.9: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.9: +15 -2 lines
Try to map the HPET window in the match function to deal with the
possible ACPI attachmened HPET earlier and cleaner.

Revision 1.4.6.9: download - view: text, markup, annotated - select for diffs
Wed Sep 5 20:16:12 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.8: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.8: +6 -4 lines
Move variables into the branches where they are used. Make status
32bit wide to match the actual register operations.

Revision 1.4.6.8: download - view: text, markup, annotated - select for diffs
Wed Sep 5 20:13:24 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.7: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.7: +3 -3 lines
Correctly attach HPET on ichlpcib. Patch and hints how to do this
from cube@

Revision 1.4.6.7: download - view: text, markup, annotated - select for diffs
Wed Sep 5 02:19:00 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.4.6.6: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.6: +4 -4 lines
XXX because of pcibattach, we need to keep our softcs in sync with pcib(4)

Revision 1.4.6.6: download - view: text, markup, annotated - select for diffs
Wed Sep 5 00:32:53 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.5: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.5: +11 -11 lines
Push the mapping of the HPET register window into the attach function.
This should prevent DIAGNOSTIC from complaining when hpet is attached
via ACPI.

Revision 1.4.6.5: download - view: text, markup, annotated - select for diffs
Tue Sep 4 20:05:11 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.4: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.4: +242 -77 lines
Don't use a global variable to decide whether this is a ICH6+,
use a variable in the softc to determine whether the RCBA is supported.
Add generic HPET support for ICH5 and ICH6+.

This is not (yet) enabled by default, until someone adds the code to
not use the direct attachment if hpet was configured via ACPI.

Revision 1.4.6.4: download - view: text, markup, annotated - select for diffs
Tue Sep 4 16:08:56 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.3: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.3: +99 -36 lines
Merge back power management changes from arch/i386/pci/ichlpcib.c.

Revision 1.4.6.3: download - view: text, markup, annotated - select for diffs
Tue Sep 4 15:54:04 2007 UTC (17 years, 4 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.4.6.2: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.2: +24 -22 lines
Explicitly remember pci_attach_args and drop the corresponding argument
processing.

Revision 1.4.6.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:47:46 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.4.6.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.6.1: +606 -0 lines
Sync with HEAD.

Revision 1.4.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:31:22 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.4.4.1: preferred, colored; branchpoint 1.4: preferred, colored
Changes since revision 1.4.4.1: +606 -0 lines
sync with head.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 10:19:51 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.4.2.1: preferred, colored; branchpoint 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4.2.1: +606 -0 lines
Sync with HEAD.

Revision 1.4.10.1
Mon Sep 3 03:35:00 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking
FILE REMOVED
Changes since revision 1.4: +0 -606 lines
file ichlpcib.c was added on branch vmlocking on 2007-10-09 13:38:43 +0000

Revision 1.4.6.1
Mon Sep 3 03:35:00 2007 UTC (17 years, 4 months ago) by jmcneill
Branches: jmcneill-pm
FILE REMOVED
Changes since revision 1.4: +0 -606 lines
file ichlpcib.c was added on branch jmcneill-pm on 2007-09-03 16:47:46 +0000

Revision 1.4.4.1
Mon Sep 3 03:35:00 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
FILE REMOVED
Changes since revision 1.4: +0 -606 lines
file ichlpcib.c was added on branch yamt-lazymbuf on 2007-09-03 14:31:22 +0000

Revision 1.4.2.1
Mon Sep 3 03:35:00 2007 UTC (17 years, 4 months ago) by skrll
Branches: nick-csl-alignment
FILE REMOVED
Changes since revision 1.4: +0 -606 lines
file ichlpcib.c was added on branch nick-csl-alignment on 2007-09-03 10:19:51 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 03:35:00 2007 UTC (17 years, 4 months ago) by xtraeme
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-lazymbuf, vmlocking, nick-csl-alignment, mjf-devfs, jmcneill-pm
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +8 -7 lines
Improve some comments.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Sep 1 21:52:06 2007 UTC (17 years, 4 months ago) by ober
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
Attach to ICH8M LPC.
Tested watchdog and it works.
ok xtraeme@

Revision 1.2: download - view: text, markup, annotated - select for diffs
Wed Aug 29 12:54:05 2007 UTC (17 years, 4 months ago) by xtraeme
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -2 lines
Attach to the ICH9 LPC Interface Bridges. The datasheet doesn't mention
any difference in the TCO part (compared to ICH[678]).

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Aug 26 16:49:47 2007 UTC (17 years, 5 months ago) by xtraeme
Branches: MAIN
Branch point for: matt-armv6
Some changes for the ichlpcib driver:

- Moved to x86/pci, so that EM64T systems running NetBSD/amd64 can use it.
- Added support for the TCO on ICH6 or newer chipsets, adapted from
  FreeBSD.
- Added timecounter support for the power management timer, adapted from
  OpenBSD.
- Plus some misc/cosmetic changes.

Thanks to yukonbob on irc@freenode for testing the TCO part on ICH4-M.
Tested by me with ICH7 too.

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>