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


Default branch: MAIN


Revision 1.64 / (download) - annotate - [select for diffs], Wed Mar 30 00:06:50 2022 UTC (2 years ago) by pgoyette
Branch: 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, HEAD
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored)

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) - annotate - [select for diffs], Fri Sep 10 15:45:28 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-i2c-spi-conf2
Changes since 1.62: +7 -4 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Remove unnecessary references to i2c_attach_args::ia_prop and mark the ones
that remain as XXX.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Aug 9 20:49:09 2021 UTC (2 years, 8 months ago) by andvar
Branch: MAIN
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

fix various typos in compatibility, mainly in comments.

Revision 1.60.4.2 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:23 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.60.4.1: +3 -3 lines
Diff to previous 1.60.4.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored)

Sync with HEAD.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jun 21 03:12:54 2021 UTC (2 years, 9 months ago) by christos
Branch: 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
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

fix proplib deprecation

Revision 1.60.4.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:28 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.60: +5 -4 lines
Diff to previous 1.60 (colored)

Sync w/ HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Jun 15 04:39:49 2021 UTC (2 years, 10 months ago) by mlelstv
Branch: MAIN
Changes since 1.60: +5 -4 lines
Diff to previous 1.60 (colored)

avoid double-free

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:44 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.56: +8 -7 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

Sync with HEAD.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jan 30 01:22:06 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.59: +3 -2 lines
Diff to previous 1.59 (colored)

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) - annotate - [select for diffs], Wed Jan 27 02:29:48 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

Use DEVICE_COMPAT_EOL.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jan 25 13:30:20 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.57: +3 -4 lines
Diff to previous 1.57 (colored)

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jan 17 21:42:35 2021 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +8 -7 lines
Diff to previous 1.56 (colored)

Use designated initializers and a consistent termination style in
compat_data[].

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jul 12 06:42:32 2020 UTC (3 years, 9 months ago) by macallan
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

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) - annotate - [select for diffs], Sun Jul 12 06:38:56 2020 UTC (3 years, 9 months ago) by macallan
Branch: MAIN
Changes since 1.54: +17 -5 lines
Diff to previous 1.54 (colored)

get sensor names from device properties if possible

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:09 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.52: +24 -24 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Sync with HEAD

Revision 1.54 / (download) - annotate - [select for diffs], Wed Feb 6 08:37:12 2019 UTC (5 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, 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
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Change a aprint_verbose into aprint_debug - the message does not add
real value to the dmesg(8) output.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Feb 3 11:58:02 2019 UTC (5 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.52: +23 -23 lines
Diff to previous 1.52 (colored)

- 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) - annotate - [select for diffs], Sat Jul 28 04:37:44 2018 UTC (5 years, 8 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.48.2.1: +9 -14 lines
Diff to previous 1.48.2.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Tue Jun 26 06:03:57 2018 UTC (5 years, 9 months ago) by thorpej
Branch: 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
Changes since 1.51: +9 -14 lines
Diff to previous 1.51 (colored)

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) - annotate - [select for diffs], Mon Jun 25 07:25:50 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.48: +20 -16 lines
Diff to previous 1.48 (colored)

Sync with HEAD

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jun 22 15:48:57 2018 UTC (5 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-0625
Changes since 1.50: +5 -3 lines
Diff to previous 1.50 (colored)

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) - annotate - [select for diffs], Mon Jun 18 17:07:07 2018 UTC (5 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +9 -3 lines
Diff to previous 1.49 (colored)

- 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) - annotate - [select for diffs], Sat Jun 16 21:22:13 2018 UTC (5 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.48: +11 -15 lines
Diff to previous 1.48 (colored)

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) - annotate - [select for diffs], Tue Feb 6 10:02:09 2018 UTC (6 years, 2 months ago) by mrg
Branch: 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
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored)

dbcool_read_volt() has a missing {} issue.

Revision 1.38.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:02 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.38.2.1: +52 -38 lines
Diff to previous 1.38.2.1 (colored) to branchpoint 1.38 (colored) next main 1.39 (colored)

update from HEAD

Revision 1.47 / (download) - annotate - [select for diffs], Fri Sep 22 03:04:17 2017 UTC (6 years, 6 months ago) by macallan
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.46: +5 -2 lines
Diff to previous 1.46 (colored)

add more names for direct config

Revision 1.41.4.4 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:41 2016 UTC (7 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.41.4.3: +6 -6 lines
Diff to previous 1.41.4.3 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jul 11 14:44:49 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: 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-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
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Fix compile error.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jul 11 11:31:50 2016 UTC (7 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.44: +34 -34 lines
Diff to previous 1.44 (colored)

KNF. No functional change.

Revision 1.41.4.3 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:49 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.41.4.2: +19 -8 lines
Diff to previous 1.41.4.2 (colored) to branchpoint 1.41 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.44 / (download) - annotate - [select for diffs], Wed Dec 16 08:05:38 2015 UTC (8 years, 4 months ago) by jdc
Branch: MAIN
CVS Tags: nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.43: +19 -8 lines
Diff to previous 1.43 (colored)

Add direct configuration support via compatible names.

Revision 1.41.4.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:07 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.41.4.1: +30 -30 lines
Diff to previous 1.41.4.1 (colored) to branchpoint 1.41 (colored)

Sync with HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Thu Apr 23 23:23:00 2015 UTC (8 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Update module dependencies for all the existing modules that depend on sysmon components.

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:09 2015 UTC (9 years ago) by skrll
Branch: nick-nhusb
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

Sync with HEAD

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Sat Mar 21 17:11:35 2015 UTC (9 years ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

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) - annotate - [select for diffs], Sat Mar 7 14:16:51 2015 UTC (9 years, 1 month ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

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) - annotate - [select for diffs], Wed Aug 20 00:03:37 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.38: +11 -22 lines
Diff to previous 1.38 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Aug 10 16:44:35 2014 UTC (9 years, 8 months ago) by tls
Branch: MAIN
CVS Tags: tls-maxphys-base, nick-nhusb-base, netbsd-7-base
Branch point for: nick-nhusb, netbsd-7
Changes since 1.40: +5 -2 lines
Diff to previous 1.40 (colored)

Merge tls-earlyentropy branch into HEAD.

Revision 1.35.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:21 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.35.2.2: +8 -22 lines
Diff to previous 1.35.2.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

sync with head.

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

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

Revision 1.38.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:37 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.38: +8 -22 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

sync with head

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Mon Apr 7 03:37:32 2014 UTC (10 years ago) by tls
Branch: tls-earlyentropy
Changes since 1.40: +5 -2 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

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) - annotate - [select for diffs], Tue Feb 25 18:30:09 2014 UTC (10 years, 1 month ago) by pooka
Branch: 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
Changes since 1.39: +2 -15 lines
Diff to previous 1.39 (colored)

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) - annotate - [select for diffs], Thu Sep 12 19:46:31 2013 UTC (10 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.38: +8 -9 lines
Diff to previous 1.38 (colored)

Remove unused variables

Revision 1.35.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:58 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.35.2.1: +15 -6 lines
Diff to previous 1.35.2.1 (colored) to branchpoint 1.35 (colored)

sync with head

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jun 2 21:36:44 2012 UTC (11 years, 10 months ago) by dsl
Branch: 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
Changes since 1.37: +6 -6 lines
Diff to previous 1.37 (colored)

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) - annotate - [select for diffs], Sat Jun 2 11:09:16 2012 UTC (11 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.35.6.1: +11 -2 lines
Diff to previous 1.35.6.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

sync to latest -current.

Revision 1.37 / (download) - annotate - [select for diffs], Thu May 31 16:09:33 2012 UTC (11 years, 10 months ago) by pgoyette
Branch: MAIN
CVS Tags: jmcneill-usbmp-base10
Changes since 1.36: +11 -2 lines
Diff to previous 1.36 (colored)

Update handling of sysctl stuff when built as modules

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Wed May 23 10:07:55 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.35: +7 -7 lines
Diff to previous 1.35 (colored)

sync with head.

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:49 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.35: +7 -7 lines
Diff to previous 1.35 (colored)

sync to latest -current.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Apr 28 17:27:08 2012 UTC (11 years, 11 months ago) by wiz
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base9
Changes since 1.35: +7 -7 lines
Diff to previous 1.35 (colored)

Fix logical errors (&& instead of & in a few places).

Revision 1.35 / (download) - annotate - [select for diffs], Sun Oct 2 19:03:56 2011 UTC (12 years, 6 months ago) by jmcneill
Branch: 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
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

now that iic is a module, add "iic" dependency to iic drivers

Revision 1.34 / (download) - annotate - [select for diffs], Thu Aug 18 02:08:06 2011 UTC (12 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

fix gcc-4.5 warnings

Revision 1.33 / (download) - annotate - [select for diffs], Tue Aug 2 14:06:15 2011 UTC (12 years, 8 months ago) by pgoyette
Branch: MAIN
Changes since 1.32: +21 -12 lines
Diff to previous 1.32 (colored)

When detaching the device, tear down its sysctl tree.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Aug 1 22:42:57 2011 UTC (12 years, 8 months ago) by macallan
Branch: MAIN
Changes since 1.31: +7 -11 lines
Diff to previous 1.31 (colored)

appease gcc 4.5

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jul 31 16:05:01 2011 UTC (12 years, 8 months ago) by jmcneill
Branch: MAIN
Changes since 1.30: +34 -2 lines
Diff to previous 1.30 (colored)

modularize

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:59 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.29: +6 -2 lines
Diff to previous 1.29 (colored) next main 1.30 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jun 20 20:16:19 2011 UTC (12 years, 10 months ago) by pgoyette
Branch: MAIN
Changes since 1.29: +6 -2 lines
Diff to previous 1.29 (colored)

Initialize sensor state before registering.

XXX Still need to fix i2c/ibmhawk.c

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:49 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.26: +101 -7 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Sync with HEAD.

Revision 1.18.2.3 / (download) - annotate - [select for diffs], Thu Apr 21 01:41:46 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.18.2.2: +99 -5 lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

sync with head

Revision 1.29 / (download) - annotate - [select for diffs], Sat Mar 12 13:33:18 2011 UTC (13 years, 1 month ago) by pgoyette
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Fix another instance of the same typo in the same comment!  dosn't -->
doesn't

Thanks again, Jukka!

Revision 1.28 / (download) - annotate - [select for diffs], Fri Mar 11 19:12:46 2011 UTC (13 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Fix typo in previous - dosn't --> doesn't

Thanks, Jukka!

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 11 18:38:52 2011 UTC (13 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.26: +101 -7 lines
Diff to previous 1.26 (colored)

Add support for SMSC EMC6D103S

From jasper@pointless.net in PR kern/44685

Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:53:10 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.18.2.1: +4 -6 lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored)

sync with head

Revision 1.26 / (download) - annotate - [select for diffs], Sat Nov 13 13:51:59 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.25: +2 -4 lines
Diff to previous 1.25 (colored)

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) - annotate - [select for diffs], Fri Oct 22 07:21:55 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.14.2.1: +2 -2 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Sync with HEAD (-D20101022).

Revision 1.11.2.6 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:05 2010 UTC (13 years, 6 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.11.2.5: +4 -4 lines
Diff to previous 1.11.2.5 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored)

sync with head

Revision 1.25 / (download) - annotate - [select for diffs], Tue Aug 17 23:36:51 2010 UTC (13 years, 8 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

Use SYSCTL_DESCR()

Revision 1.11.2.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:22 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.11.2.4: +180 -65 lines
Diff to previous 1.11.2.4 (colored) to branchpoint 1.11 (colored)

sync with head.

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:20 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.18: +180 -65 lines
Diff to previous 1.18 (colored)

sync with head

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:43:11 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.14: +552 -359 lines
Diff to previous 1.14 (colored)

Sync with HEAD.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Apr 10 19:02:39 2010 UTC (14 years ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1
Changes since 1.23: +42 -17 lines
Diff to previous 1.23 (colored)

Save initial, boot-time limit values, and restore them upon request
from sysmon_envsys(9).

Revision 1.23 / (download) - annotate - [select for diffs], Thu Apr 1 05:26:48 2010 UTC (14 years ago) by macallan
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

don't divide by zero. ever.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Apr 1 04:29:35 2010 UTC (14 years ago) by macallan
Branch: MAIN
Changes since 1.21: +61 -4 lines
Diff to previous 1.21 (colored)

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) - annotate - [select for diffs], Wed Mar 31 18:07:13 2010 UTC (14 years ago) by macallan
Branch: MAIN
Changes since 1.20: +6 -2 lines
Diff to previous 1.20 (colored)

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) - annotate - [select for diffs], Sat Mar 20 19:04:51 2010 UTC (14 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.19: +4 -3 lines
Diff to previous 1.19 (colored)

Use correct format directive in aprint_debug_dev()

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

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 20 02:42:19 2010 UTC (14 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.18: +76 -49 lines
Diff to previous 1.18 (colored)

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) - annotate - [select for diffs], Thu Mar 11 15:03:27 2010 UTC (14 years, 1 month ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.11.2.3: +555 -478 lines
Diff to previous 1.11.2.3 (colored) to branchpoint 1.11 (colored)

sync with head

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 1 03:14:49 2010 UTC (14 years, 1 month ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9
Branch point for: rmind-uvmplock
Changes since 1.17: +382 -305 lines
Diff to previous 1.17 (colored)

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) - annotate - [select for diffs], Fri Feb 26 18:16:18 2010 UTC (14 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.16: +4 -2 lines
Diff to previous 1.16 (colored)

Disable DBCOOL_DEBUG by default, and make it compile that way.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Feb 24 23:37:45 2010 UTC (14 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.15: +65 -66 lines
Diff to previous 1.15 (colored)

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) - annotate - [select for diffs], Wed Feb 24 22:37:57 2010 UTC (14 years, 1 month ago) by dyoung
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jan 8 20:04:31 2010 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Expand PMF_FN_* macros.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Nov 2 21:37:44 2009 UTC (14 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.12: +149 -150 lines
Diff to previous 1.12 (colored)

don't pull a 1.5K softc on the stack to do a chip ident. Idea from mrg.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:47 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.10.2.1: +3 -5 lines
Diff to previous 1.10.2.1 (colored) next main 1.11 (colored)

Sync with HEAD.

Revision 1.11.2.3 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:21 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.11.2.2: +3 -5 lines
Diff to previous 1.11.2.2 (colored) to branchpoint 1.11 (colored)

sync with head

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jun 1 20:08:44 2009 UTC (14 years, 10 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.11: +3 -5 lines
Diff to previous 1.11 (colored)

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) - annotate - [select for diffs], Wed May 13 17:19:20 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.10: +6 -4 lines
Diff to previous 1.10 (colored)

Sync with HEAD.

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

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:12:38 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.11.2.1: +1875 -0 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored)

sync with head.

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:30:44 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.5.4.1: +18 -14 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD.

Revision 1.11.2.1, Mon Feb 9 20:27:21 2009 UTC (15 years, 2 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.11: +0 -1875 lines
FILE REMOVED

file dbcool.c was added on branch yamt-nfs-mp on 2009-05-04 08:12:38 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 9 20:27:21 2009 UTC (15 years, 2 months ago) by pgoyette
Branch: 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
Changes since 1.10: +6 -4 lines
Diff to previous 1.10 (colored)

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) - annotate - [select for diffs], Sun Feb 8 17:48:02 2009 UTC (15 years, 2 months ago) by pgoyette
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.9: +10 -3 lines
Diff to previous 1.9 (colored)

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) - annotate - [select for diffs], Sun Feb 8 14:34:40 2009 UTC (15 years, 2 months ago) by pgoyette
Branch: MAIN
Changes since 1.8: +8 -13 lines
Diff to previous 1.8 (colored)

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) - annotate - [select for diffs], Mon Jan 19 13:17:53 2009 UTC (15 years, 3 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.5: +6 -5 lines
Diff to previous 1.5 (colored)

Sync with HEAD.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:54 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1.2.2: +665 -505 lines
Diff to previous 1.1.2.2 (colored) next main 1.2 (colored)

Sync with HEAD.

Revision 1.5.6.3 / (download) - annotate - [select for diffs], Fri Jan 16 22:44:43 2009 UTC (15 years, 3 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-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
Changes since 1.5.6.2: +3 -3 lines
Diff to previous 1.5.6.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

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) - annotate - [select for diffs], Wed Jan 14 13:54:29 2009 UTC (15 years, 3 months ago) by pgoyette
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

Include ADT7460 in chip table (it's identical to the ADT7463, except for
physical packaging).

Revision 1.5.6.2 / (download) - annotate - [select for diffs], Tue Dec 23 03:40:02 2008 UTC (15 years, 3 months ago) by snj
Branch: netbsd-5
Changes since 1.5.6.1: +5 -3 lines
Diff to previous 1.5.6.1 (colored) to branchpoint 1.5 (colored)

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) - annotate - [select for diffs], Thu Dec 18 20:41:35 2008 UTC (15 years, 4 months ago) by pgoyette
Branch: MAIN
Changes since 1.6: +5 -3 lines
Diff to previous 1.6 (colored)

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) - annotate - [select for diffs], Sat Dec 13 01:14:13 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.5.2.2: +2 -3 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

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

Revision 1.5.6.1 / (download) - annotate - [select for diffs], Thu Nov 20 03:08:02 2008 UTC (15 years, 5 months ago) by snj
Branch: netbsd-5
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

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) - annotate - [select for diffs], Tue Nov 18 10:49:45 2008 UTC (15 years, 5 months ago) by jnemeth
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

PR/39947 - Juan RP -- dbcool_detach implicitly called
  sysmon_envsys_destroy() twice

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sun Oct 19 22:16:24 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.5.2.1: +1870 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Sync with HEAD.

Revision 1.5.2.1, Sun Oct 12 12:49:04 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.5: +0 -1870 lines
FILE REMOVED

file dbcool.c was added on branch haad-dm on 2008-10-19 22:16:24 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Sun Oct 12 12:49:04 2008 UTC (15 years, 6 months ago) by pgoyette
Branch: MAIN
CVS Tags: netbsd-5-base, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Changes since 1.4: +79 -75 lines
Diff to previous 1.4 (colored)

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) - annotate - [select for diffs], Fri Oct 10 22:30:58 2008 UTC (15 years, 6 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.4.2.1: +1866 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Sync with HEAD.

Revision 1.4.2.1, Fri Oct 10 13:08:29 2008 UTC (15 years, 6 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.4: +0 -1866 lines
FILE REMOVED

file dbcool.c was added on branch wrstuden-revivesa on 2008-10-10 22:30:58 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Fri Oct 10 13:08:29 2008 UTC (15 years, 6 months ago) by pgoyette
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4
Branch point for: wrstuden-revivesa
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

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) - annotate - [select for diffs], Tue Oct 7 22:50:33 2008 UTC (15 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored)

Increase accuracy in nominal voltage table.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Oct 6 01:35:35 2008 UTC (15 years, 6 months ago) by pgoyette
Branch: MAIN
Changes since 1.1: +604 -449 lines
Diff to previous 1.1 (colored)

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) - annotate - [select for diffs], Sun Oct 5 20:11:29 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1.2.1: +1711 -0 lines
Diff to previous 1.1.2.1 (colored)

Sync with HEAD.

Revision 1.1.2.1, Thu Oct 2 00:47:51 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.1: +0 -1711 lines
FILE REMOVED

file dbcool.c was added on branch mjf-devfs2 on 2008-10-05 20:11:29 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Thu Oct 2 00:47:51 2008 UTC (15 years, 6 months ago) by pgoyette
Branch: 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@

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




CVSweb <webmaster@jp.NetBSD.org>