History log of /openbsd-current/sys/dev/isa/it.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.48 16-Apr-2022 naddy

it(4): constify sensor tables


# 1.47 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.46 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.45 10-Dec-2014 mikeb

Convert watchdog(4) devices to use autoconf(9) framework.

ok deraadt, tests on glxpcib and ok mpi


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.44 10-Apr-2013 guenther

Fix various glitches in queue macro usage.

ok millert@


# 1.43 21-Mar-2013 brynet

Attach on ITE 8728.

it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0x228

ok deraadt@


Revision tags: OPENBSD_5_3_BASE
# 1.42 14-Dec-2012 mikeb

Support IT8772F; from form@, ok kettenis


# 1.41 17-Oct-2012 deraadt

Swap arguments to wdog_register() since it is nicer, and prepare
wdog_shutdown() for external usage.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.40 20-Jan-2011 form

add IT8721 support


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.39 16-Jan-2009 form

add IT8720F support
thanks to Vit Skibinskiy <bucker(ik)skibinski.pp.ru>


# 1.38 23-Oct-2008 form

Round up to the nearest minute 16-bit timeout values for older IT8712 chips.


# 1.37 22-Oct-2008 form

o add FAN4 and FAN5 sensors for IT8716/8718/8726
o always use 16-bit FAN counters for IT8716/8718/8726
o do not try to poll sensors disabled by BIOS
o sync VIN5 & VIN6 sensors description w/ ITE docs

tested by naddy@ weerd@


# 1.36 11-Oct-2008 miod

Fix various printf constructs either missing arguments or format specifiers.


# 1.35 08-Oct-2008 form

better comments


# 1.34 08-Oct-2008 form

Older IT8712F chips have 8-bit watchdog timeout counter.
Use minutes for 16-bit values.


# 1.33 08-Oct-2008 form

o chip revision is 4-bit value
o some #define's instead of digits


Revision tags: OPENBSD_4_4_BASE
# 1.32 07-Apr-2008 form

snprintf "%s" -> strlcpy


# 1.31 07-Apr-2008 form

fix snprintf usage


# 1.30 07-Apr-2008 form

more cosmetic changes


# 1.29 07-Apr-2008 form

some cosmetic changes


# 1.28 03-Apr-2008 form

Switch it(4) back to PnP config mode. Avoid possible
conflicts with SMSC or similar chips.


Revision tags: OPENBSD_4_3_BASE
# 1.27 24-Dec-2007 form

alwais unmap i/o space in it_match


# 1.26 23-Dec-2007 form

Look for environment controller first, and access ITE SuperIO address/data
ports only if we found one. Fixes possible issues with some notebook
chipsets.

ok deraadt@
tested by me, jcs@ and Rodolfo Gouveia


# 1.25 20-Dec-2007 form

add original copyright
bad me


# 1.24 18-Dec-2007 form

New it(4) driver.
Supports ITE IT8705/8712/8716/8718/8726 and SiS SiS950
hardware monitors and ITE IT8712F/8716F/8718F/8726F watchdog timer.


Revision tags: OPENBSD_4_2_BASE
# 1.23 24-Jun-2007 dlg

rework sensor tasks to use the kernels generic workq rather than a special
kernel thread of its own. the api has changed (which will be fixed in the
manpage shortly) so all the users of sensor tasks that i can find have
been fixed too.

noone tested, so its going in to force people to run with it.
"put it in" deraadt@


# 1.22 22-Mar-2007 deraadt

split userland & kernel struct sensor/sensordev so that the addition
of new fields in the future is less disruptive. This is done similar
to how struct proc is handled for ps(1). ok jmc (man page changes)
tested fkr simon, and more suggestions from millert


Revision tags: OPENBSD_4_1_BASE
# 1.21 23-Dec-2006 deraadt

adapt to new two-level sensor api; Constantine A. Murenin


Revision tags: OPENBSD_4_0_BASE
# 1.20 24-Jun-2006 kettenis

Add abstraction for resistor factors and avoid using the rfact member of
'struct sensor' which is on its way out.
tested by & ok jsg@


# 1.19 10-Apr-2006 deraadt

unify temperature sensor names much more


Revision tags: OPENBSD_3_9_BASE
# 1.18 23-Jan-2006 kettenis

Do not enable disabled sensors.
ok grange@, dlg@


# 1.17 19-Jan-2006 grange

Replace SENSOR_ADD() macro with a pair of functions
sensor_add()/sensor_del() so that sensors can be attached
and detached dynamicaly.

ok kettenis@ deraadt@ dlg@


# 1.16 28-Dec-2005 grange

Convert for sensor_task_register();
diff from Mike Belopuhov <mkb@crypt.org.ru>.


Revision tags: OPENBSD_3_8_BASE
# 1.15 26-Jul-2005 grange

Fan tachometers improvements from form@pdp-11.org.ru:
- correct rpm calculation
- automatic devisor tuning
- correct handling of fan being stopped and started again

Thanks jsg@ for testing.


# 1.14 29-Apr-2005 grange

Correct FAN3 divisor for IT8705 and add support for FAN3 divisor on IT8712.
Diff from Stephan Leemburg <sleemburg@jvc.nl>.


# 1.13 09-Apr-2005 grange

Use vendor id register for chip matching instead of configuration
register patterns. From Stephan Leemburg <sleemburg@jvc.nl>.

Tested by jsg@.


Revision tags: OPENBSD_3_7_BASE
# 1.12 02-Mar-2005 grange

Spaces.


# 1.11 05-Oct-2004 grange

Don't reset the chip on attach. This solves the problem with fans
starting to spin very fast after it0 is attached. Extracted from the
diff provided by Stephan Leemburg via millert@.

Test and ok krw@.


Revision tags: OPENBSD_3_6_BASE
# 1.10 23-Aug-2004 millert

The IT87 chip has 3 Fan sensors. Fix the loop invariant and add
a missing break statement. From Stephan Leemburg. OK deraadt@


# 1.9 17-Aug-2004 mickey

don't forget to set rv to zero on false match


Revision tags: OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
# 1.8 10-Feb-2004 grange

Use SENSOR_FINVALID.


# 1.7 02-Feb-2004 grange

Yet another signature; reported by danh@


# 1.6 28-Jan-2004 grange

Add new probe signature. From Alexey E. Suslikov <cruel@texnika.com.ua>.


# 1.5 12-Jan-2004 grange

Move sensors externs to sys/sensors.h and introduce a macro
SENSOR_ADD to hide all operations with these externs.

ok markus@


# 1.4 05-Nov-2003 grange

Correct author's email address per his request.


# 1.3 19-Oct-2003 grange

Don't check for valid nio since pnp is not used; similar to lm(4).
This makes it(4) work on recent ASUS boards. Tested by me and henning@.


Revision tags: OPENBSD_3_4_BASE
# 1.2 28-May-2003 grange

branches: 1.2.2;
Print some debug info on match routine failure


# 1.1 20-May-2003 grange

it(4) driver provides support for ITE IT8705F, IT8712F and SiS SiS950
hardware monitoring chips to be used with hw.sensors sysctl interface.
Work by Julien Bordet <zejames@greyhats.org> with my little help.


# 1.47 06-Apr-2022 naddy

constify struct cfattach


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.46 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.45 10-Dec-2014 mikeb

Convert watchdog(4) devices to use autoconf(9) framework.

ok deraadt, tests on glxpcib and ok mpi


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.44 10-Apr-2013 guenther

Fix various glitches in queue macro usage.

ok millert@


# 1.43 21-Mar-2013 brynet

Attach on ITE 8728.

it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0x228

ok deraadt@


Revision tags: OPENBSD_5_3_BASE
# 1.42 14-Dec-2012 mikeb

Support IT8772F; from form@, ok kettenis


# 1.41 17-Oct-2012 deraadt

Swap arguments to wdog_register() since it is nicer, and prepare
wdog_shutdown() for external usage.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.40 20-Jan-2011 form

add IT8721 support


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.39 16-Jan-2009 form

add IT8720F support
thanks to Vit Skibinskiy <bucker(ik)skibinski.pp.ru>


# 1.38 23-Oct-2008 form

Round up to the nearest minute 16-bit timeout values for older IT8712 chips.


# 1.37 22-Oct-2008 form

o add FAN4 and FAN5 sensors for IT8716/8718/8726
o always use 16-bit FAN counters for IT8716/8718/8726
o do not try to poll sensors disabled by BIOS
o sync VIN5 & VIN6 sensors description w/ ITE docs

tested by naddy@ weerd@


# 1.36 11-Oct-2008 miod

Fix various printf constructs either missing arguments or format specifiers.


# 1.35 08-Oct-2008 form

better comments


# 1.34 08-Oct-2008 form

Older IT8712F chips have 8-bit watchdog timeout counter.
Use minutes for 16-bit values.


# 1.33 08-Oct-2008 form

o chip revision is 4-bit value
o some #define's instead of digits


Revision tags: OPENBSD_4_4_BASE
# 1.32 07-Apr-2008 form

snprintf "%s" -> strlcpy


# 1.31 07-Apr-2008 form

fix snprintf usage


# 1.30 07-Apr-2008 form

more cosmetic changes


# 1.29 07-Apr-2008 form

some cosmetic changes


# 1.28 03-Apr-2008 form

Switch it(4) back to PnP config mode. Avoid possible
conflicts with SMSC or similar chips.


Revision tags: OPENBSD_4_3_BASE
# 1.27 24-Dec-2007 form

alwais unmap i/o space in it_match


# 1.26 23-Dec-2007 form

Look for environment controller first, and access ITE SuperIO address/data
ports only if we found one. Fixes possible issues with some notebook
chipsets.

ok deraadt@
tested by me, jcs@ and Rodolfo Gouveia


# 1.25 20-Dec-2007 form

add original copyright
bad me


# 1.24 18-Dec-2007 form

New it(4) driver.
Supports ITE IT8705/8712/8716/8718/8726 and SiS SiS950
hardware monitors and ITE IT8712F/8716F/8718F/8726F watchdog timer.


Revision tags: OPENBSD_4_2_BASE
# 1.23 24-Jun-2007 dlg

rework sensor tasks to use the kernels generic workq rather than a special
kernel thread of its own. the api has changed (which will be fixed in the
manpage shortly) so all the users of sensor tasks that i can find have
been fixed too.

noone tested, so its going in to force people to run with it.
"put it in" deraadt@


# 1.22 22-Mar-2007 deraadt

split userland & kernel struct sensor/sensordev so that the addition
of new fields in the future is less disruptive. This is done similar
to how struct proc is handled for ps(1). ok jmc (man page changes)
tested fkr simon, and more suggestions from millert


Revision tags: OPENBSD_4_1_BASE
# 1.21 23-Dec-2006 deraadt

adapt to new two-level sensor api; Constantine A. Murenin


Revision tags: OPENBSD_4_0_BASE
# 1.20 24-Jun-2006 kettenis

Add abstraction for resistor factors and avoid using the rfact member of
'struct sensor' which is on its way out.
tested by & ok jsg@


# 1.19 10-Apr-2006 deraadt

unify temperature sensor names much more


Revision tags: OPENBSD_3_9_BASE
# 1.18 23-Jan-2006 kettenis

Do not enable disabled sensors.
ok grange@, dlg@


# 1.17 19-Jan-2006 grange

Replace SENSOR_ADD() macro with a pair of functions
sensor_add()/sensor_del() so that sensors can be attached
and detached dynamicaly.

ok kettenis@ deraadt@ dlg@


# 1.16 28-Dec-2005 grange

Convert for sensor_task_register();
diff from Mike Belopuhov <mkb@crypt.org.ru>.


Revision tags: OPENBSD_3_8_BASE
# 1.15 26-Jul-2005 grange

Fan tachometers improvements from form@pdp-11.org.ru:
- correct rpm calculation
- automatic devisor tuning
- correct handling of fan being stopped and started again

Thanks jsg@ for testing.


# 1.14 29-Apr-2005 grange

Correct FAN3 divisor for IT8705 and add support for FAN3 divisor on IT8712.
Diff from Stephan Leemburg <sleemburg@jvc.nl>.


# 1.13 09-Apr-2005 grange

Use vendor id register for chip matching instead of configuration
register patterns. From Stephan Leemburg <sleemburg@jvc.nl>.

Tested by jsg@.


Revision tags: OPENBSD_3_7_BASE
# 1.12 02-Mar-2005 grange

Spaces.


# 1.11 05-Oct-2004 grange

Don't reset the chip on attach. This solves the problem with fans
starting to spin very fast after it0 is attached. Extracted from the
diff provided by Stephan Leemburg via millert@.

Test and ok krw@.


Revision tags: OPENBSD_3_6_BASE
# 1.10 23-Aug-2004 millert

The IT87 chip has 3 Fan sensors. Fix the loop invariant and add
a missing break statement. From Stephan Leemburg. OK deraadt@


# 1.9 17-Aug-2004 mickey

don't forget to set rv to zero on false match


Revision tags: OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
# 1.8 10-Feb-2004 grange

Use SENSOR_FINVALID.


# 1.7 02-Feb-2004 grange

Yet another signature; reported by danh@


# 1.6 28-Jan-2004 grange

Add new probe signature. From Alexey E. Suslikov <cruel@texnika.com.ua>.


# 1.5 12-Jan-2004 grange

Move sensors externs to sys/sensors.h and introduce a macro
SENSOR_ADD to hide all operations with these externs.

ok markus@


# 1.4 05-Nov-2003 grange

Correct author's email address per his request.


# 1.3 19-Oct-2003 grange

Don't check for valid nio since pnp is not used; similar to lm(4).
This makes it(4) work on recent ASUS boards. Tested by me and henning@.


Revision tags: OPENBSD_3_4_BASE
# 1.2 28-May-2003 grange

branches: 1.2.2;
Print some debug info on match routine failure


# 1.1 20-May-2003 grange

it(4) driver provides support for ITE IT8705F, IT8712F and SiS SiS950
hardware monitoring chips to be used with hw.sensors sysctl interface.
Work by Julien Bordet <zejames@greyhats.org> with my little help.


Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.46 14-Mar-2015 jsg

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


Revision tags: OPENBSD_5_7_BASE
# 1.45 10-Dec-2014 mikeb

Convert watchdog(4) devices to use autoconf(9) framework.

ok deraadt, tests on glxpcib and ok mpi


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.44 10-Apr-2013 guenther

Fix various glitches in queue macro usage.

ok millert@


# 1.43 21-Mar-2013 brynet

Attach on ITE 8728.

it0 at isa0 port 0x2e/2: IT8728F rev 1, EC port 0x228

ok deraadt@


Revision tags: OPENBSD_5_3_BASE
# 1.42 14-Dec-2012 mikeb

Support IT8772F; from form@, ok kettenis


# 1.41 17-Oct-2012 deraadt

Swap arguments to wdog_register() since it is nicer, and prepare
wdog_shutdown() for external usage.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.40 20-Jan-2011 form

add IT8721 support


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.39 16-Jan-2009 form

add IT8720F support
thanks to Vit Skibinskiy <bucker(ik)skibinski.pp.ru>


# 1.38 23-Oct-2008 form

Round up to the nearest minute 16-bit timeout values for older IT8712 chips.


# 1.37 22-Oct-2008 form

o add FAN4 and FAN5 sensors for IT8716/8718/8726
o always use 16-bit FAN counters for IT8716/8718/8726
o do not try to poll sensors disabled by BIOS
o sync VIN5 & VIN6 sensors description w/ ITE docs

tested by naddy@ weerd@


# 1.36 11-Oct-2008 miod

Fix various printf constructs either missing arguments or format specifiers.


# 1.35 08-Oct-2008 form

better comments


# 1.34 08-Oct-2008 form

Older IT8712F chips have 8-bit watchdog timeout counter.
Use minutes for 16-bit values.


# 1.33 08-Oct-2008 form

o chip revision is 4-bit value
o some #define's instead of digits


Revision tags: OPENBSD_4_4_BASE
# 1.32 07-Apr-2008 form

snprintf "%s" -> strlcpy


# 1.31 07-Apr-2008 form

fix snprintf usage


# 1.30 07-Apr-2008 form

more cosmetic changes


# 1.29 07-Apr-2008 form

some cosmetic changes


# 1.28 03-Apr-2008 form

Switch it(4) back to PnP config mode. Avoid possible
conflicts with SMSC or similar chips.


Revision tags: OPENBSD_4_3_BASE
# 1.27 24-Dec-2007 form

alwais unmap i/o space in it_match


# 1.26 23-Dec-2007 form

Look for environment controller first, and access ITE SuperIO address/data
ports only if we found one. Fixes possible issues with some notebook
chipsets.

ok deraadt@
tested by me, jcs@ and Rodolfo Gouveia


# 1.25 20-Dec-2007 form

add original copyright
bad me


# 1.24 18-Dec-2007 form

New it(4) driver.
Supports ITE IT8705/8712/8716/8718/8726 and SiS SiS950
hardware monitors and ITE IT8712F/8716F/8718F/8726F watchdog timer.


Revision tags: OPENBSD_4_2_BASE
# 1.23 24-Jun-2007 dlg

rework sensor tasks to use the kernels generic workq rather than a special
kernel thread of its own. the api has changed (which will be fixed in the
manpage shortly) so all the users of sensor tasks that i can find have
been fixed too.

noone tested, so its going in to force people to run with it.
"put it in" deraadt@


# 1.22 22-Mar-2007 deraadt

split userland & kernel struct sensor/sensordev so that the addition
of new fields in the future is less disruptive. This is done similar
to how struct proc is handled for ps(1). ok jmc (man page changes)
tested fkr simon, and more suggestions from millert


Revision tags: OPENBSD_4_1_BASE
# 1.21 23-Dec-2006 deraadt

adapt to new two-level sensor api; Constantine A. Murenin


Revision tags: OPENBSD_4_0_BASE
# 1.20 24-Jun-2006 kettenis

Add abstraction for resistor factors and avoid using the rfact member of
'struct sensor' which is on its way out.
tested by & ok jsg@


# 1.19 10-Apr-2006 deraadt

unify temperature sensor names much more


Revision tags: OPENBSD_3_9_BASE
# 1.18 23-Jan-2006 kettenis

Do not enable disabled sensors.
ok grange@, dlg@


# 1.17 19-Jan-2006 grange

Replace SENSOR_ADD() macro with a pair of functions
sensor_add()/sensor_del() so that sensors can be attached
and detached dynamicaly.

ok kettenis@ deraadt@ dlg@


# 1.16 28-Dec-2005 grange

Convert for sensor_task_register();
diff from Mike Belopuhov <mkb@crypt.org.ru>.


Revision tags: OPENBSD_3_8_BASE
# 1.15 26-Jul-2005 grange

Fan tachometers improvements from form@pdp-11.org.ru:
- correct rpm calculation
- automatic devisor tuning
- correct handling of fan being stopped and started again

Thanks jsg@ for testing.


# 1.14 29-Apr-2005 grange

Correct FAN3 divisor for IT8705 and add support for FAN3 divisor on IT8712.
Diff from Stephan Leemburg <sleemburg@jvc.nl>.


# 1.13 09-Apr-2005 grange

Use vendor id register for chip matching instead of configuration
register patterns. From Stephan Leemburg <sleemburg@jvc.nl>.

Tested by jsg@.


Revision tags: OPENBSD_3_7_BASE
# 1.12 02-Mar-2005 grange

Spaces.


# 1.11 05-Oct-2004 grange

Don't reset the chip on attach. This solves the problem with fans
starting to spin very fast after it0 is attached. Extracted from the
diff provided by Stephan Leemburg via millert@.

Test and ok krw@.


Revision tags: OPENBSD_3_6_BASE
# 1.10 23-Aug-2004 millert

The IT87 chip has 3 Fan sensors. Fix the loop invariant and add
a missing break statement. From Stephan Leemburg. OK deraadt@


# 1.9 17-Aug-2004 mickey

don't forget to set rv to zero on false match


Revision tags: OPENBSD_3_5_BASE SMP_SYNC_A SMP_SYNC_B
# 1.8 10-Feb-2004 grange

Use SENSOR_FINVALID.


# 1.7 02-Feb-2004 grange

Yet another signature; reported by danh@


# 1.6 28-Jan-2004 grange

Add new probe signature. From Alexey E. Suslikov <cruel@texnika.com.ua>.


# 1.5 12-Jan-2004 grange

Move sensors externs to sys/sensors.h and introduce a macro
SENSOR_ADD to hide all operations with these externs.

ok markus@


# 1.4 05-Nov-2003 grange

Correct author's email address per his request.


# 1.3 19-Oct-2003 grange

Don't check for valid nio since pnp is not used; similar to lm(4).
This makes it(4) work on recent ASUS boards. Tested by me and henning@.


Revision tags: OPENBSD_3_4_BASE
# 1.2 28-May-2003 grange

branches: 1.2.2;
Print some debug info on match routine failure


# 1.1 20-May-2003 grange

it(4) driver provides support for ITE IT8705F, IT8712F and SiS SiS950
hardware monitoring chips to be used with hw.sensors sysctl interface.
Work by Julien Bordet <zejames@greyhats.org> with my little help.