The NetBSD Project

CVS log for src/sys/dev/i2c/dbcool.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.65: download - view: text, markup, annotated - select for diffs
Sat May 18 00:02:04 2024 UTC (6 months, 3 weeks ago) by thorpej
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +2 -3 lines
Remove unnecessary include of <sys/malloc.h>.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed Mar 30 00:06:50 2022 UTC (2 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +3 -3 lines
These modules need to depend on iic, not just on i2cexec.  (They will
still recursively get i2cexec since the iic depends on it.)

Partial fix for kern/56772

Revision 1.62.6.1: download - view: text, markup, annotated - select for diffs
Fri Sep 10 15:45:28 2021 UTC (3 years, 2 months ago) by thorpej
Branches: thorpej-i2c-spi-conf2
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +7 -4 lines
Remove unnecessary references to i2c_attach_args::ia_prop and mark the ones
that remain as XXX.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Aug 9 20:49:09 2021 UTC (3 years, 4 months ago) by andvar
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
fix various typos in compatibility, mainly in comments.

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

Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon Jun 21 03:12:54 2021 UTC (3 years, 5 months ago) by christos
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Branch point for: thorpej-i2c-spi-conf2
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -3 lines
fix proplib deprecation

Revision 1.60.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:28 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -4 lines
Sync w/ HEAD.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Jun 15 04:39:49 2021 UTC (3 years, 5 months ago) by mlelstv
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +5 -4 lines
avoid double-free

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

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Jan 30 01:22:06 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -2 lines
If we're going to keep a reference on the "props" dictionary from
the i2c_attach_args, we should retain it.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed Jan 27 02:29:48 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
Use DEVICE_COMPAT_EOL.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Jan 25 13:30:20 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +3 -4 lines
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Jan 17 21:42:35 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +8 -7 lines
Use designated initializers and a consistent termination style in
compat_data[].

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Jul 12 06:42:32 2020 UTC (4 years, 4 months ago) by macallan
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
in sysctl_dbcool_behavior() - actually use the array index when translating
text from sysctl -w *.behavior=<whatever>
now this actually works on my sb2500's two adm1030s

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sun Jul 12 06:38:56 2020 UTC (4 years, 4 months ago) by macallan
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +17 -5 lines
get sensor names from device properties if possible

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:09 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +24 -24 lines
Sync with HEAD

Revision 1.54: download - view: text, markup, annotated - select for diffs
Wed Feb 6 08:37:12 2019 UTC (5 years, 10 months ago) by martin
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, 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
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -3 lines
Change a aprint_verbose into aprint_debug - the message does not add
real value to the dmesg(8) output.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Feb 3 11:58:02 2019 UTC (5 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +23 -23 lines
- dbcool_pmf_suspend() set the wrong bit out of the suspended data as
  it is stored as a bool and thus when bit 2 was wanted, bit 1 was
  restored.  found by GCC7's "don't use ~ on bool" checker.
- consolidate the dbcool_pmf_suspend()/dbcool_pmf_resume() guts in to
  a shared function dbcool_do_pmf() as they are identical except for
  1 vs 2 lines.

Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:44 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.1: +9 -14 lines
Sync with HEAD

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Jun 26 06:03:57 2018 UTC (6 years, 5 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, jdolecek-ncqfixes-base, jdolecek-ncqfixes
Branch point for: phil-wifi
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +9 -14 lines
In my quest to make device_compatible_entry (and associated goo)
super-general, it turns out I also made it a little to cumbersome
to use (if my tired fingers are any indication).  So, this is a
course-correction -- one string per entry (like of_compat_data,
which it will soon replace), and remove the over-verbose macros.

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:50 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +20 -16 lines
Sync with HEAD

Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Jun 22 15:48:57 2018 UTC (6 years, 5 months ago) by martin
Branches: MAIN
CVS tags: pgoyette-compat-0625
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +5 -3 lines
Add a kernel panic when we matched but can not handle a string - better
die explicitly instead of crashing a few lines later with strange NULL
derefs.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Jun 18 17:07:07 2018 UTC (6 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +9 -3 lines
- Rename iic_compat_match() to iic_compatible_match() and change it
  to use the new device_compatible_match() routine.  A pointer to
  the matching device_compatible_entry is returned if a match is
  found.
- Adjust iic_use_direct_match() accordingly.
- i2c drivers now provide device_compatible_entry tables when performing
  direct-config matching.
- In the dsrtc driver, take advantage of this new capability to greatly
  simplify model selection.

(I'm coming for you next, of_compat_data...)

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Jun 16 21:22:13 2018 UTC (6 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +11 -15 lines
More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
  all of the logic for direct-config matching.  If it returns true,
  the driver returns the match result (which may be 0).  If it returns
  false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
  lower-indexed "compatible" device property are more-specific matches,
  and return a better match quality accordingly.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue Feb 6 10:02:09 2018 UTC (6 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: 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
Branch point for: pgoyette-compat
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -3 lines
dbcool_read_volt() has a missing {} issue.

Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:02 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.1: +52 -38 lines
update from HEAD

Revision 1.47: download - view: text, markup, annotated - select for diffs
Fri Sep 22 03:04:17 2017 UTC (7 years, 2 months ago) by macallan
Branches: MAIN
CVS tags: tls-maxphys-base-20171202
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +5 -2 lines
add more names for direct config

Revision 1.41.4.4: download - view: text, markup, annotated - select for diffs
Wed Oct 5 20:55:41 2016 UTC (8 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.41.4.3: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.4.3: +6 -6 lines
Sync with HEAD

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Jul 11 14:44:49 2016 UTC (8 years, 4 months ago) by msaitoh
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
Fix compile error.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Mon Jul 11 11:31:50 2016 UTC (8 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +34 -34 lines
KNF. No functional change.

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

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Dec 16 08:05:38 2015 UTC (8 years, 11 months ago) by jdc
Branches: MAIN
CVS tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +19 -8 lines
Add direct configuration support via compatible names.

Revision 1.41.4.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:07 2015 UTC (9 years, 6 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.41.4.1: preferred, colored; branchpoint 1.41: preferred, colored
Changes since revision 1.41.4.1: +30 -30 lines
Sync with HEAD

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Apr 23 23:23:00 2015 UTC (9 years, 7 months ago) by pgoyette
Branches: MAIN
CVS tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3 lines
Update module dependencies for all the existing modules that depend on sysmon components.

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

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 21 17:11:35 2015 UTC (9 years, 8 months ago) by snj
Branches: 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
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +3 -3 lines
Pull up following revision(s) (requested by jmcneill in ticket #634):
	distrib/sets/lists/modules/md.amd64: revision 1.51
	distrib/sets/lists/modules/md.evbppc.powerpc: revision 1.5
	distrib/sets/lists/modules/md.i386: revision 1.55
	distrib/sets/lists/modules/mi: revision 1.71
	sys/dev/i2c/au8522.c: revision 1.7
	sys/dev/i2c/cx24227.c: revision 1.7
	sys/dev/i2c/dbcool.c: revision 1.42
	sys/dev/i2c/hytp14.c: revision 1.3
	sys/dev/i2c/i2c_exec.c: revision 1.10
	sys/dev/i2c/lg3303.c: revision 1.9
	sys/dev/i2c/mt2131.c: revision 1.5
	sys/dev/i2c/nxt2k.c: revision 1.4
	sys/dev/i2c/sdtemp.c: revision 1.24
	sys/dev/i2c/spdmem_i2c.c: revision 1.10
	sys/dev/i2c/tvpll.c: revision 1.6
	sys/dev/i2c/xc3028.c: revision 1.7
	sys/dev/i2c/xc5k.c: revision 1.6
	sys/dev/i2c/zl10353.c: revision 1.4
	sys/modules/Makefile: revision 1.143
	sys/modules/i2cexec/Makefile: revision 1.1
i2c devices don't actually have a dependency on "iic" (the bus driver)
but on "i2cexec". Create an i2cexec module (i2c_exec.c) to mirror the
dependencies in files.i2c and switch device drivers to depend on "i2cexec"
module instead.
A kernel with a USB stack and no I2C controller / bus attachment would spit
out a bunch of "WARNING: module error: can't find builtin dependency `iic'"
messages at boot. This change solves that problem.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Mar 7 14:16:51 2015 UTC (9 years, 9 months ago) by jmcneill
Branches: MAIN
CVS tags: nick-nhusb-base-20150406
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3 lines
i2c devices don't actually have a dependency on "iic" (the bus driver)
but on "i2cexec". Create an i2cexec module (i2c_exec.c) to mirror the
dependencies in files.i2c and switch device drivers to depend on "i2cexec"
module instead.

A kernel with a USB stack and no I2C controller / bus attachment would spit
out a bunch of "WARNING: module error: can't find builtin dependency `iic'"
messages at boot. This change solves that problem.

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

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Aug 10 16:44:35 2014 UTC (10 years, 4 months ago) by tls
Branches: MAIN
CVS tags: tls-maxphys-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -2 lines
Merge tls-earlyentropy branch into HEAD.

Revision 1.35.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:21 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.35.2.2: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.2.2: +8 -22 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.38.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:37 2014 UTC (10 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +8 -22 lines
sync with head

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 7 03:37:32 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +5 -2 lines
Be a little more clear and consistent about harvesting entropy from devices:

1) deprecate RND_FLAG_NO_ESTIMATE

2) define RND_FLAG_COLLECT_TIME, RND_FLAG_COLLECT_VALUE

3) define RND_FLAG_ESTIMATE_TIME, RND_FLAG_ESTIMATE_VALUE

4) define RND_FLAG_DEFAULT: RND_FLAG_COLLECT_TIME|
   RND_FLAG_COLLECT_VALUE|RND_FLAG_ESTIMATE_TIME

5) Make entropy harvesting from environmental sensors a little more generic
   and remove it from individual sensor drivers.

6) Remove individual open-coded delta-estimators for values from a few
   places in the tree (uvm, environmental drivers).

7) 0 -> RND_FLAG_DEFAULT, actually gather entropy from various drivers
   that had stubbed out code, other minor cleanups.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:09 2014 UTC (10 years, 9 months ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -15 lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Sep 12 19:46:31 2013 UTC (11 years, 2 months ago) by martin
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -9 lines
Remove unused variables

Revision 1.35.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:58 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.35.2.1: preferred, colored; branchpoint 1.35: preferred, colored
Changes since revision 1.35.2.1: +15 -6 lines
sync with head

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Jun 2 21:36:44 2012 UTC (12 years, 6 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -6 lines
Add some pre-processor magic to verify that the type of the data item
  passed to sysctl_createv() actually matches the declared type for
  the item itself.
In the places where the caller specifies a function and a structure
  address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
  sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
  AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
  fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.

Revision 1.35.6.2: download - view: text, markup, annotated - select for diffs
Sat Jun 2 11:09:16 2012 UTC (12 years, 6 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.35.6.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.6.1: +11 -2 lines
sync to latest -current.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Thu May 31 16:09:33 2012 UTC (12 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: jmcneill-usbmp-base10
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +11 -2 lines
Update handling of sysctl stuff when built as modules

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

Revision 1.35.6.1: download - view: text, markup, annotated - select for diffs
Sun Apr 29 23:04:49 2012 UTC (12 years, 7 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +7 -7 lines
sync to latest -current.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sat Apr 28 17:27:08 2012 UTC (12 years, 7 months ago) by wiz
Branches: MAIN
CVS tags: yamt-pagecache-base5, jmcneill-usbmp-base9
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +7 -7 lines
Fix logical errors (&& instead of & in a few places).

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Oct 2 19:03:56 2011 UTC (13 years, 2 months ago) by jmcneill
Branches: MAIN
CVS tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
now that iic is a module, add "iic" dependency to iic drivers

Revision 1.34: download - view: text, markup, annotated - select for diffs
Thu Aug 18 02:08:06 2011 UTC (13 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
fix gcc-4.5 warnings

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Aug 2 14:06:15 2011 UTC (13 years, 4 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +21 -12 lines
When detaching the device, tear down its sysctl tree.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Mon Aug 1 22:42:57 2011 UTC (13 years, 4 months ago) by macallan
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +7 -11 lines
appease gcc 4.5

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun Jul 31 16:05:01 2011 UTC (13 years, 4 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +34 -2 lines
modularize

Revision 1.29.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:59 2011 UTC (13 years, 5 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 -2 lines
Catchup with rmind-uvmplock merge.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Jun 20 20:16:19 2011 UTC (13 years, 5 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +6 -2 lines
Initialize sensor state before registering.

XXX Still need to fix i2c/ibmhawk.c

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

Revision 1.18.2.3: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:46 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.18.2.2: preferred, colored; branchpoint 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.2: +99 -5 lines
sync with head

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Mar 12 13:33:18 2011 UTC (13 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Fix another instance of the same typo in the same comment!  dosn't -->
doesn't

Thanks again, Jukka!

Revision 1.28: download - view: text, markup, annotated - select for diffs
Fri Mar 11 19:12:46 2011 UTC (13 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Fix typo in previous - dosn't --> doesn't

Thanks, Jukka!

Revision 1.27: download - view: text, markup, annotated - select for diffs
Fri Mar 11 18:38:52 2011 UTC (13 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +101 -7 lines
Add support for SMSC EMC6D103S

From jasper@pointless.net in PR kern/44685

Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:53:10 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.18.2.1: preferred, colored; branchpoint 1.18: preferred, colored
Changes since revision 1.18.2.1: +4 -6 lines
sync with head

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Nov 13 13:51:59 2010 UTC (14 years ago) by uebayasi
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +2 -4 lines
Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.

Revision 1.14.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:21:55 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
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: +2 -2 lines
Sync with HEAD (-D20101022).

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

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Aug 17 23:36:51 2010 UTC (14 years, 3 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4 lines
Use SYSCTL_DESCR()

Revision 1.11.2.5: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:53:22 2010 UTC (14 years, 4 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11.2.4: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.4: +180 -65 lines
sync with head.

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

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

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Apr 10 19:02:39 2010 UTC (14 years, 8 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +42 -17 lines
Save initial, boot-time limit values, and restore them upon request
from sysmon_envsys(9).

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Apr 1 05:26:48 2010 UTC (14 years, 8 months ago) by macallan
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -3 lines
don't divide by zero. ever.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Thu Apr 1 04:29:35 2010 UTC (14 years, 8 months ago) by macallan
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +61 -4 lines
add some more ADM1031 support:
- additional temperature and fan speed sensors work now
- limits on should work on all temperature sensors
Controlling fan behaviour doesn't work yet, the ADM1031 uses the same
register for both fans which doesn't quite fit with the way the dbcool
driver works.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Mar 31 18:07:13 2010 UTC (14 years, 8 months ago) by macallan
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +6 -2 lines
Add preliminary support for the ADM1031 found in the Sun Blade 2500 and similar
machines. For now we treat it like an ADM1030 - the only difference is the
device ID and a few previously reserved registers.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Mar 20 19:04:51 2010 UTC (14 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -3 lines
Use correct format directive in aprint_debug_dev()

Thanks to Kurt Schreiner for reporting this on current-users@

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Mar 20 02:42:19 2010 UTC (14 years, 8 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +76 -49 lines
Fix the dbcool_{get,set}_limits() routines to properly deal with min/max
values on temp limits.  The actual ranges for temp limits varies if the
chip is running in "extended temperature" mode, so we need to handle this
difference, too.

Verified on my home machine which runs in extended-temp mode and by
njoly@ on a machine which does runs in the older 2s-complement mode.

Revision 1.11.2.4: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:27 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11.2.3: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.3: +555 -478 lines
sync with head

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Mar 1 03:14:49 2010 UTC (14 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +382 -305 lines
Now that sysmon_envsys(8) has learned how to retrieve and update sensor
limit values from the device driver, remove the high_limit and low_limit
entries from the hw.dbcool<#>.<sensor> sysctl(8) tree.  These limits are
now directly accessible via envstat(8).  Simplify the remaining code
somewhat.

No objections raised on either tech-kern@ or current-users@

XXX The fan controllers's parameters (including those that are tied to
XXX temperature sensors) are still in sysctl, since there isn't any clean
XXX way to implement the fan controllers in sysmon_envsys yet.  It is on
XXX my To-Do list...

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Feb 26 18:16:18 2010 UTC (14 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -2 lines
Disable DBCOOL_DEBUG by default, and make it compile that way.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Feb 24 23:37:45 2010 UTC (14 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +65 -66 lines
Fix handling of 6bit VID register (6th bit takes place of 12VIn sensor).

Move VID out of sysctl tree - make it a separate sensor of type INTEGER.

Clean-up some of the chip-descriptors.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Feb 24 22:37:57 2010 UTC (14 years, 9 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4 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.14: download - view: text, markup, annotated - select for diffs
Fri Jan 8 20:04:31 2010 UTC (14 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
Expand PMF_FN_* macros.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Nov 2 21:37:44 2009 UTC (15 years, 1 month ago) by christos
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +149 -150 lines
don't pull a 1.5K softc on the stack to do a chip ident. Idea from mrg.

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:31:47 2009 UTC (15 years, 4 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.10.2.1: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.1: +3 -5 lines
Sync with HEAD.

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Sat Jun 20 07:20:21 2009 UTC (15 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.2: +3 -5 lines
sync with head

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jun 1 20:08:44 2009 UTC (15 years, 6 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base, jym-xensuspend-nbase
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -5 lines
Since we no longer have individual events for each sensor value limit,
we don't need individual flag bits.  Clean up extra bit definitions.
Bump kernel version - welcome to 5.99.13

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:19:20 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -4 lines
Sync with HEAD.

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

Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:12:38 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.1: +1875 -0 lines
sync with head.

Revision 1.5.4.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:30:44 2009 UTC (15 years, 9 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.5.4.1: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.4.1: +18 -14 lines
Sync with HEAD.

Revision 1.11.2.1
Mon Feb 9 20:27:21 2009 UTC (15 years, 10 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.11: +0 -1875 lines
file dbcool.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:38 +0000

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Feb 9 20:27:21 2009 UTC (15 years, 10 months ago) by pgoyette
Branches: MAIN
CVS tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jym-xensuspend-base
Branch point for: yamt-nfs-mp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +6 -4 lines
Previous check for ADM1027 caused a kernel panic, since the read routine
can be called _before_ we've identified the chip.  Ensure that sc_chip
is initialized to NULL before chip is identified, and if it is NULL or
ADM1027, use the less-efficient send_byte/receive_byte.

While here, don't attempt to release the i2c bus if we failed to acquire
it.  This would cause a panic on a LOCKDEBUG kernel.

Thanks to Nicholas Joly for pointing out both of these bugs.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Feb 8 17:48:02 2009 UTC (15 years, 10 months ago) by pgoyette
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +10 -3 lines
The ADM1027 chip doesn't support i2c read_byte protocol, so in this
case we use send_byte followed by receive_byte.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Feb 8 14:34:40 2009 UTC (15 years, 10 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -13 lines
Use pre-scripted i2c protocols rather than re-inventing our own.  No
functional change intended.

While here, change some indentation to use tabs vs spaces.

Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:17:53 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -5 lines
Sync with HEAD.

Revision 1.1.2.3: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:28:54 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.1.2.2: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.2: +665 -505 lines
Sync with HEAD.

Revision 1.5.6.3: download - view: text, markup, annotated - select for diffs
Fri Jan 16 22:44:43 2009 UTC (15 years, 10 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.5.6.2: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.6.2: +3 -3 lines
Pull up following revision(s) (requested by pgoyette in ticket #269):
	sys/dev/i2c/dbcool.c: revision 1.8
Include ADT7460 in chip table (it's identical to the ADT7463, except for
physical packaging).

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 14 13:54:29 2009 UTC (15 years, 10 months ago) by pgoyette
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
Include ADT7460 in chip table (it's identical to the ADT7463, except for
physical packaging).

Revision 1.5.6.2: download - view: text, markup, annotated - select for diffs
Tue Dec 23 03:40:02 2008 UTC (15 years, 11 months ago) by snj
Branches: netbsd-5
Diff to: previous 1.5.6.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.6.1: +5 -3 lines
Pull up following revision(s) (requested by pgoyette in ticket #195):
	sys/dev/i2c/dbcool.c: revision 1.7
	sys/dev/i2c/dbcool_reg.h: revision 1.3
Add i2c bus address checking for these chips.  All supported chips live
at predefined addresses 0x2c, 0x2d, or 0x2e.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Dec 18 20:41:35 2008 UTC (15 years, 11 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -3 lines
Add i2c bus address checking for these chips.  All supported chips live
at predefined addresses 0x2c, 0x2d, or 0x2e.

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:13 2008 UTC (15 years, 11 months ago) by haad
Branches: haad-dm
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.2: +2 -3 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Thu Nov 20 03:08:02 2008 UTC (16 years ago) by snj
Branches: netbsd-5
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -3 lines
Pull up following revision(s) (requested by jnemeth in ticket #82):
	sys/dev/i2c/dbcool.c: revision 1.6
PR/39947 - Juan RP -- dbcool_detach implicitly called
sysmon_envsys_destroy() twice

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue Nov 18 10:49:45 2008 UTC (16 years ago) by jnemeth
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -3 lines
PR/39947 - Juan RP -- dbcool_detach implicitly called
  sysmon_envsys_destroy() twice

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:16:24 2008 UTC (16 years, 1 month ago) by haad
Branches: haad-dm
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +1870 -0 lines
Sync with HEAD.

Revision 1.5.2.1
Sun Oct 12 12:49:04 2008 UTC (16 years, 2 months ago) by haad
Branches: haad-dm
FILE REMOVED
Changes since revision 1.5: +0 -1870 lines
file dbcool.c was added on branch haad-dm on 2008-10-19 22:16:24 +0000

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Oct 12 12:49:04 2008 UTC (16 years, 2 months ago) by pgoyette
Branches: MAIN
CVS tags: netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +79 -75 lines
Move the {read,write}reg() routine addresses into the dbcool_softc so
that we can use different routines for macppc's ki2c attachment.  Fixes
problems reported by Robert Fritzsche on current-users@ list.

Revision 1.4.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 10 22:30:58 2008 UTC (16 years, 2 months ago) by skrll
Branches: wrstuden-revivesa
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: +1866 -0 lines
Sync with HEAD.

Revision 1.4.2.1
Fri Oct 10 13:08:29 2008 UTC (16 years, 2 months ago) by skrll
Branches: wrstuden-revivesa
FILE REMOVED
Changes since revision 1.4: +0 -1866 lines
file dbcool.c was added on branch wrstuden-revivesa on 2008-10-10 22:30:58 +0000

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Oct 10 13:08:29 2008 UTC (16 years, 2 months ago) by pgoyette
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4
Branch point for: wrstuden-revivesa
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
sysctl doesn't like names that start with digits, nor does it like names
with embedded '.' so change the names to be better-conforming.  Reported
by njoly

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Oct 7 22:50:33 2008 UTC (16 years, 2 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +8 -8 lines
Increase accuracy in nominal voltage table.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Oct 6 01:35:35 2008 UTC (16 years, 2 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +604 -449 lines
Various clean-ups:
  1. Trange sysctl's belong to the temp sensors, not to the fan controllers
  2. Trange really describes a slope on many chips, so modify the description
  3. Most of the sysctl's are read/write even if the chip's config is
     locked;  reflect that in the CTLFLAGs
  4. Apply correct 'nominal' values for voltage sensors/limits, specify
     them in microVolts, and calculate once rather than each time needed
  5. Be more consistent in register names - for example, use VCC instead of
     SUPPLY_VOLTAGE, to match VCC_LOWLIM & VCC_HIGHLIM
  6. Type of dbcool_islocked() should be bool, not int
  7. Reduce some unnecessary code indentation
  8. Define Vtt and Imon, and add ADT7490 support (excluding PECI sensors)
  9. Split the huge (250+ lines) dbcool_setup() function into a few smaller
     routines for better readability
 10. Update sensor tables for ADT7476 and ADT7468 - these chips have five
     voltage sensors, not two
 11. Adjust flags for ADT7463 and ADM1027 - these chips can monitor CPU
     VID data bits
 12. Update man page

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 5 20:11:29 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.1.2.1: preferred, colored
Changes since revision 1.1.2.1: +1711 -0 lines
Sync with HEAD.

Revision 1.1.2.1
Thu Oct 2 00:47:51 2008 UTC (16 years, 2 months ago) by mjf
Branches: mjf-devfs2
FILE REMOVED
Changes since revision 1.1: +0 -1711 lines
file dbcool.c was added on branch mjf-devfs2 on 2008-10-05 20:11:29 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Oct 2 00:47:51 2008 UTC (16 years, 2 months ago) by pgoyette
Branches: MAIN
Branch point for: mjf-devfs2
Add new driver for dbCool(tm) family of Thermal Monitor and Fan Controller.
Supported chips: ADM1027, ADM1030, ADT7463, ADT7466, ADT7467, ADT7468,
ADT7473, ADT7475, and ADT7476.  Notably missing is the ADT7490, and fan
controller support on the ADT7466 is still on the to-do list.

Tested by myself and njoly@
Reviewed by garbled@
Commit approved by christos@, bouyer@, cube@, and matt@

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>