CVS log for src/sys/arch/sparc64/dev/pcf8591_envctrl.c
Up to [cvs.NetBSD.org] / src / sys / arch / sparc64 / dev
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.19.14.1: download - view: text, markup, annotated - select for diffs
Mon Aug 9 00:30:08 2021 UTC (3 years, 3 months ago) by thorpej
Branches: thorpej-i2c-spi-conf2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -3
lines
Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.
Revision 1.19.4.1: download - view: text, markup, annotated - select for diffs
Sat May 15 03:22:17 2021 UTC (3 years, 6 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -3
lines
- Move all of the stuff-missing-from-OFW-device-tree stuff into a
new function sparc64_device_tree_fixup(), and call it from
device_register().
- sparc64_device_tree_fixup() is table-driven, selecting the table
based on the machine_model. It can appy "dtnode" fixups (by matching
the device's OFW path) and "special" fixups, which are especially
useful when a property needs to be added to another device that happens
to not be in the OFW device tree.
- Implement enumeration of missing-from-OFW-device-tree i2c devices
by "sub-classing" the controller's device handle, intercepting the
"i2c-enumerate-devices" device call. We let the "super" first
enumerate any i2c devices that are in the OFW device tree, and then
enumerate our own additions after that is done. i2c additions are
provided by the machine_model fixup tables.
Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:38 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.11.2.2: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.2: +4 -4
lines
Sync with HEAD.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Jan 27 02:20:03 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-futex-base,
thorpej-cfargs2-base,
thorpej-cfargs2,
thorpej-cfargs-base,
thorpej-cfargs,
thorpej-altq-separation-base,
thorpej-altq-separation,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
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,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm,
HEAD
Branch point for: thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -3
lines
Use DEVICE_COMPAT_EOL.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jan 25 14:20:39 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -4
lines
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jan 17 21:03:27 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -4
lines
Use designated initializers and a consistent termination style in
compat_data[].
Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 3 16:34:56 2021 UTC (3 years, 10 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.11.2.1: preferred, colored
Changes since revision 1.11.2.1: +96 -41
lines
Sync w/ HEAD.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Dec 23 07:09:50 2020 UTC (3 years, 11 months ago) by jdc
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +57 -25
lines
Rename the CPU fan to SYS fan to match what the firmware calls it.
Check for fan failure and high temperature events when setting the fan
speed. If one or both is true, run the fans at full speed.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Dec 20 09:08:15 2020 UTC (3 years, 11 months ago) by jdc
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +43 -20
lines
For the E250:
set fans to medium speed when attaching and full speed when detaching.
remove unused PS fan definition.
In general:
return early from attach if the device isn't present.
handle errors from sysmon during attach so that detach doesn't crash.
try to handle errors when acquiring the iic bus during detach.
Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:38:02 2020 UTC (3 years, 11 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +52 -12
lines
Sync w/ HEAD.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Dec 7 13:24:15 2020 UTC (3 years, 11 months ago) by jdc
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +41 -8
lines
Add some debugging output to check sensor addition and refresh.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Dec 6 10:06:15 2020 UTC (3 years, 11 months ago) by jdc
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +13 -24
lines
Don't read from the chip when matching, fail the attach instead (requested
by jmcneill). Reverts previous.
While here, handle errors attaching sysmon and acquiring the iic bus lock.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Dec 5 15:08:21 2020 UTC (3 years, 11 months ago) by jdc
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +22 -4
lines
When matching, try a read in case this is an optional device and isn't
actually present.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Oct 31 13:17:34 2020 UTC (4 years, 1 month ago) by jdc
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1
lines
Call sysmon_envsys_unregister() not sysmon_envsys_destroy() when
detaching. Pointed out by Michael van Elst.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Oct 24 15:16:39 2020 UTC (4 years, 1 month ago) by jdc
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +178 -26
lines
Add support for automatically changing the CPU fan speed on the E250 in a
similar way to the SB1000/SB2000.
The fan control information was determined by experiment, as it's only
partially available in OFW.
Hardcode the missing information for E250 fan control into the driver
(it should be possible to support the E450 in future too).
Revision 1.6.38.2: download - view: text, markup, annotated - select for diffs
Sat Jul 28 04:37:41 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.6.38.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.38.1: +6 -11
lines
Sync with HEAD
Revision 1.9: 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,
phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
phil-wifi,
pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
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.8: preferred, colored
Changes since revision 1.8: +6 -11
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.6.38.1: download - view: text, markup, annotated - select for diffs
Mon Jun 25 07:25:45 2018 UTC (6 years, 5 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +12 -4
lines
Sync with HEAD
Revision 1.8: 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
CVS tags: pgoyette-compat-0625
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -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.7: 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.6: preferred, colored
Changes since revision 1.6: +7 -4
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.5.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:55 2012 UTC (12 years, 7 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +4 -1
lines
sync with head
Revision 1.5.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 5 21:33:19 2012 UTC (12 years, 8 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +4 -1
lines
sync to latest -current.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Mar 18 05:26:58 2012 UTC (12 years, 8 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-base9,
yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
yamt-pagecache-base5,
yamt-pagecache-base4,
tls-maxphys-base-20171202,
tls-maxphys-base,
tls-maxphys,
tls-earlyentropy-base,
tls-earlyentropy,
rmind-smpnet-nbase,
rmind-smpnet-base,
rmind-smpnet,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3,
riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
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,
pgoyette-compat-base,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
nick-nhusb-base-20160319,
nick-nhusb-base-20151226,
nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406,
nick-nhusb-base,
nick-nhusb,
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,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
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,
netbsd-7,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
khorben-n900,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base10,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan,
agc-symver-base,
agc-symver
Branch point for: pgoyette-compat
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -1
lines
add missing __KERNEL_RCSID().
Revision 1.4.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:42 2011 UTC (13 years, 5 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +2 -1
lines
Catchup with rmind-uvmplock merge.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jun 20 17:01:45 2011 UTC (13 years, 5 months ago) by pgoyette
Branches: MAIN
CVS tags: 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-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.4: preferred, colored
Changes since revision 1.4: +2 -1
lines
Initialize sensor states before registering.
Revision 1.3.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:06:50 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +2 -2
lines
Sync with HEAD.
Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:26 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +2 -2
lines
sync with head
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Apr 3 06:22:02 2011 UTC (13 years, 8 months ago) by jdc
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
jym-xensuspend-nbase,
jym-xensuspend-base,
cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -2
lines
Remove ENVSYS_FMONNOTSUPP, so that we can monitor this sensor.
Revision 1.3.6.2: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:39:51 2010 UTC (14 years, 7 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.3.6.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.6.1: +255 -0
lines
Sync with HEAD.
Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:03:00 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.1: +255 -0
lines
sync with head
Revision 1.3.6.1
Sun Feb 28 15:30:22 2010 UTC (14 years, 9 months ago) by uebayasi
Branches: uebayasi-xip
FILE REMOVED
Changes since revision 1.3: +0 -255
lines
file pcf8591_envctrl.c was added on branch uebayasi-xip on 2010-04-30 14:39:51 +0000
Revision 1.3.2.1
Sun Feb 28 15:30:22 2010 UTC (14 years, 9 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.3: +0 -255
lines
file pcf8591_envctrl.c was added on branch yamt-nfs-mp on 2010-03-11 15:03:00 +0000
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Feb 28 15:30:22 2010 UTC (14 years, 9 months ago) by martin
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base7,
uebayasi-xip-base6,
uebayasi-xip-base5,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
matt-mips64-premerge-20101231,
jruoho-x86intr-base,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Branch point for: yamt-nfs-mp,
uebayasi-xip,
rmind-uvmplock,
jruoho-x86intr
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2
lines
dmesg cosmetics
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Feb 28 12:40:46 2010 UTC (14 years, 9 months ago) by pgoyette
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2
lines
Set the FMONNOTSUPP flag for each individual sensor, and add the
FMONLIMITS flag so the sensor is actually monitored and events can
be generated.
As discussed with martin@ in private email.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Feb 28 11:49:44 2010 UTC (14 years, 9 months ago) by martin
Branches: MAIN
Remove the envctrl driver, it is superseeded by the more general pcfiic @
ebus. Add the SB1000/SB2000 fan controll driver (tda). From OpenBSD.
Move config files over to direct configuration of i2c devices.
CVSweb <webmaster@jp.NetBSD.org>