summaryrefslogtreecommitdiffstats
path: root/sys/dev/ichsmb
Commit message (Collapse)AuthorAgeFilesLines
* Detect and attach to the ICH3 SMBus controller.jhb2002-05-081-0/+4
| | | | | | | PR: i386/36972 Submitted by: Colin Perkins <csp@isi.edu> Requested by: Larry Rosenman <ler@lerctr.org> MFC After: 7 days
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-1/+1
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Update to C99, s/__FUNCTION__/__func__/,obrien2001-12-101-12/+12
| | | | also don't use ANSI string concatenation.
* Catch up to header include changes:jhb2001-03-282-0/+2
| | | | | - <sys/mutex.h> now requires <sys/systm.h> - <sys/mutex.h> and <sys/sx.h> now require <sys/lock.h>
* Change and clean the mutex lock interface.bmilekic2001-02-091-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mtx_enter(lock, type) becomes: mtx_lock(lock) for sleep locks (MTX_DEF-initialized locks) mtx_lock_spin(lock) for spin locks (MTX_SPIN-initialized) similarily, for releasing a lock, we now have: mtx_unlock(lock) for MTX_DEF and mtx_unlock_spin(lock) for MTX_SPIN. We change the caller interface for the two different types of locks because the semantics are entirely different for each case, and this makes it explicitly clear and, at the same time, it rids us of the extra `type' argument. The enter->lock and exit->unlock change has been made with the idea that we're "locking data" and not "entering locked code" in mind. Further, remove all additional "flags" previously passed to the lock acquire/release routines with the exception of two: MTX_QUIET and MTX_NOSWITCH The functionality of these flags is preserved and they can be passed to the lock/unlock routines by calling the corresponding wrappers: mtx_{lock, unlock}_flags(lock, flag(s)) and mtx_{lock, unlock}_spin_flags(lock, flag(s)) for MTX_DEF and MTX_SPIN locks, respectively. Re-inline some lock acq/rel code; in the sleep lock case, we only inline the _obtain_lock()s in order to ensure that the inlined code fits into a cache line. In the spin lock case, we inline recursion and actually only perform a function call if we need to spin. This change has been made with the idea that we generally tend to avoid spin locks and that also the spin locks that we do have and are heavily used (i.e. sched_lock) do recurse, and therefore in an effort to reduce function call overhead for some architectures (such as alpha), we inline recursion for this case. Create a new malloc type for the witness code and retire from using the M_DEV type. The new type is called M_WITNESS and is only declared if WITNESS is enabled. Begin cleaning up some machdep/mutex.h code - specifically updated the "optimized" inlined code in alpha/mutex.h and wrote MTX_LOCK_SPIN and MTX_UNLOCK_SPIN asm macros for the i386/mutex.h as we presently need those. Finally, caught up to the interface changes in all sys code. Contributors: jake, jhb, jasone (in no particular order)
* - Don't pass in MTX_NORECURSE, as that is only used with spin mutexes andjhb2001-01-261-23/+23
| | | | | | is going away soon anyways. Instead, don't pass MTX_RECURSE to mtx_init, so that WITNESS will panic if the driver mutex is recursed on. - Use MTX_DEF in mtx_init() instead of assuming that it will be 0.
* Add missing #include.archie2000-12-081-0/+1
|
* Convert from spl -> mutex.archie2000-12-072-39/+35
|
* Driver for the Intel 82801AA (ICH) SMBus controller and compatibles.archie2000-10-064-0/+1068
Obtained from: Whistle source tree
OpenPOWER on IntegriCloud