History log of /src/sys/dev/isa/nsclpcsio_isa.c |
Revision | | Date | Author | Comments |
1.34 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.33 |
| 24-Apr-2021 |
thorpej | branches: 1.33.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.32 |
| 29-Mar-2017 |
msaitoh | branches: 1.32.30; Fix 0x%d and 0x%u.
|
1.31 |
| 23-Apr-2015 |
pgoyette | branches: 1.31.2; 1.31.4; Update module dependencies for all the existing modules that depend on sysmon components.
|
1.30 |
| 15-Jul-2011 |
jmcneill | branches: 1.30.12; 1.30.30; add module support
|
1.29 |
| 20-Jun-2011 |
pgoyette | Initialize sensors states before registering.
|
1.28 |
| 12-Nov-2008 |
ad | branches: 1.28.14; Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
|
1.27 |
| 04-Apr-2008 |
xtraeme | branches: 1.27.4; 1.27.10; 1.27.12; Fix fallout from previous commit.
|
1.26 |
| 04-Apr-2008 |
xtraeme | Split device_t/softc and other related cosmetic changes.
|
1.25 |
| 02-Jan-2008 |
dyoung | branches: 1.25.6; Improve device detach routine. Now I can detach nsclpcsio0 and its children.
Fix an off-by-one bug in the sensor initialization which stopped it from completing.
Extract sensor initialization into a new subroutine. If there is an error while initializing sensors, do not let sc_sme dangle.
|
1.24 |
| 02-Jan-2008 |
dyoung | Cosmetic: fix indentation.
|
1.23 |
| 05-Dec-2007 |
ad | branches: 1.23.4; Match the docs: MUTEX_DRIVER/SPIN are now only for porting code written for Solaris.
|
1.22 |
| 16-Nov-2007 |
xtraeme | branches: 1.22.2; Extend the envsys2 API (one more time, sorry) as defined in:
http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html
sysmon_envsys_create() and sysmon_envsys_destroy() were added to create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).
sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were added to attach/detach sensors to a specified sysmon_envsys device.
The events framework is now per device and configurable via the ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).
Update all users and documentation to reflect these changes.
|
1.21 |
| 09-Nov-2007 |
xtraeme | Add support for the VMS logical device on nsclpcsio(4) and clean up the code. This provides 14 voltage sensors in addition to the previous 3 temperature sensors supported in the TMS logical device.
Adapted from OpenBSD, tested by dyoung.
|
1.20 |
| 19-Oct-2007 |
ad | branches: 1.20.2; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.19 |
| 09-Sep-2007 |
xtraeme | branches: 1.19.4; Add the detach method and don't bother with gpio in the LKM for now.
|
1.18 |
| 02-Sep-2007 |
xtraeme | Do not enable monitoring for the sensors... if somebody wants this, it may be enabled via userland.
|
1.17 |
| 01-Jul-2007 |
xtraeme | branches: 1.17.2; 1.17.6; 1.17.8; Imported envsys 2, a brief description of the new features: (Part 2: drivers)
* Support for detachable sensors. * Cleaned up the API for simplicity and efficiency. * Ability to send capacity/critical/warning events to powerd(8). * Adapted all the code to the new locking order. * Compatibility with the old envsys API: the ENVSYS_GTREINFO and ENVSYS_GTREDATA ioctl(2)s are supported. * Added support for a 'dictionary based communication channel' between sysmon_power(9) and powerd(8), that means there is no 32 bytes event size restriction anymore. * Binary compatibility with old envstat(8) and powerd(8) via COMPAT_40. * All drivers with the n^2 gtredata bug were fixed, PR kern/36226.
Tested by:
blymn: smsc(4). bouyer: ipmi(4), mfi(4). kefren: ug(4). njoly: viaenv(4), adt7463.c. riz: owtemp(4). xtraeme: acpiacad(4), acpibat(4), acpitz(4), aiboost(4), it(4), lm(4).
|
1.16 |
| 18-Feb-2007 |
xtraeme | branches: 1.16.4; 1.16.6; Replace simple_locks with mutexes, reviewed by ad@.
|
1.15 |
| 16-Nov-2006 |
christos | branches: 1.15.4; __unused removal on arguments; approved by core.
|
1.14 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.13 |
| 11-Dec-2005 |
christos | branches: 1.13.20; 1.13.22; merge ktrace-lwp.
|
1.12 |
| 11-Oct-2005 |
drochner | -put gpio stuff inside #if NGPIO > 0 -kill gba_name in attach arg, specify interface attribute
|
1.11 |
| 27-Sep-2005 |
jmcneill | Attach to gpiobus. From OpenBSD.
|
1.10 |
| 29-Jul-2005 |
drochner | complete attachment if the temperature monotor was successfully awoken, minor whitespace fixes
|
1.9 |
| 29-Jul-2005 |
drochner | activate the temperature sensors if the device is in standby mode on attach (as on Soekris boards), from Aaron Hodgen per PR kern/23598
|
1.8 |
| 27-Feb-2005 |
perry | branches: 1.8.2; 1.8.4; nuke trailing whitespace
|
1.7 |
| 04-Feb-2005 |
perry | de-__P
|
1.6 |
| 14-Sep-2004 |
drochner | branches: 1.6.4; 1.6.6; Separate the namespace for default (ie unspecified) locators used by the isa.c bus driver and the "address/whatever not specified" argument passed to leaf device drivers. The former is "ISACF_XXX_DEFAULT" as generaterd by config(8), the latter "ISA_UNKNOWN_XXX", defined in isavar.h. This way we save a dependency of every ISA device driver on "locators.h".
|
1.5 |
| 22-Oct-2002 |
drochner | branches: 1.5.6; -fix script botch from CFATTACH_DECL introduction -while here, spotted probe error: we shouldn't try other locations if the base address is nailed down per locator
|
1.4 |
| 02-Oct-2002 |
thorpej | Fix sizeof and whitespace bug from the script I'm using to do the CFATTACH_DECL conversion. (Grumble.)
|
1.3 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.2 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.1 |
| 17-Jul-2002 |
drochner | branches: 1.1.2; 1.1.4; 1.1.6; adda driver to read the temerature sensors on a NSC PC87366 Super IO chip (the chip provides voltage / fan rpm control too, but we don't care yet)
|
1.1.6.3 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.1.6.2 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.1.6.1 |
| 17-Jul-2002 |
jdolecek | file nsclpcsio_isa.c was added on branch kqueue on 2002-09-06 08:44:51 +0000
|
1.1.4.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.1.4.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.1.4.2 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.1.4.1 |
| 17-Jul-2002 |
nathanw | file nsclpcsio_isa.c was added on branch nathanw_sa on 2002-08-01 02:44:57 +0000
|
1.1.2.2 |
| 20-Jul-2002 |
gehenna | catch up with -current.
|
1.1.2.1 |
| 17-Jul-2002 |
gehenna | file nsclpcsio_isa.c was added on branch gehenna-devsw on 2002-07-20 11:35:08 +0000
|
1.5.6.5 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.5.6.4 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.5.6.3 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.5.6.2 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.5.6.1 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.6.6.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.6.6.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.6.4.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.8.4.8 |
| 21-Jan-2008 |
yamt | sync with head
|
1.8.4.7 |
| 07-Dec-2007 |
yamt | sync with head
|
1.8.4.6 |
| 15-Nov-2007 |
yamt | sync with head.
|
1.8.4.5 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.8.4.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.8.4.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.8.4.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.8.4.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.8.2.2 |
| 04-Aug-2005 |
tron | Pull up revision 1.10 (requested by drochner in ticket #640): complete attachment if the temperature monotor was successfully awoken, minor whitespace fixes
|
1.8.2.1 |
| 04-Aug-2005 |
tron | Pull up revision 1.9 (requested by drochner in ticket #640): activate the temperature sensors if the device is in standby mode on attach (as on Soekris boards), from Aaron Hodgen per PR kern/23598
|
1.13.22.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.13.22.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.13.20.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.15.4.1 |
| 27-Feb-2007 |
yamt | - sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
|
1.16.6.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.16.4.3 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.16.4.2 |
| 09-Oct-2007 |
ad | Sync with head.
|
1.16.4.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.17.8.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.17.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.17.6.6 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.17.6.5 |
| 21-Nov-2007 |
joerg | Sync with HEAD.
|
1.17.6.4 |
| 11-Nov-2007 |
joerg | Sync with HEAD.
|
1.17.6.3 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.17.6.2 |
| 02-Oct-2007 |
joerg | Sync with HEAD.
|
1.17.6.1 |
| 03-Sep-2007 |
jmcneill | Sync with HEAD.
|
1.17.2.2 |
| 10-Sep-2007 |
skrll | Sync with HEAD.
|
1.17.2.1 |
| 03-Sep-2007 |
skrll | Sync with HEAD.
|
1.19.4.3 |
| 18-Nov-2007 |
bouyer | Sync with HEAD
|
1.19.4.2 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
1.19.4.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.20.2.3 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.20.2.2 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.20.2.1 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
1.22.2.1 |
| 08-Dec-2007 |
ad | Sync with head.
|
1.23.4.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.25.6.2 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.25.6.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.27.12.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.27.10.1 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.27.4.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.28.14.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.30.30.2 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.30.30.1 |
| 06-Jun-2015 |
skrll | Sync with HEAD
|
1.30.12.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.31.4.1 |
| 21-Apr-2017 |
bouyer | Sync with HEAD
|
1.31.2.1 |
| 26-Apr-2017 |
pgoyette | Sync with HEAD
|
1.32.30.1 |
| 23-Mar-2021 |
thorpej | Convert config_found_ia() call sites where the device only carries a single interface attribute to bare config_found() calls.
|
1.33.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|