freebsd-skq/sys/isa
bmilekic f364d4ac36 Change and clean the mutex lock interface.
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)
2001-02-09 06:11:45 +00:00
..
ic $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
atkbd_isa.c - Properly keep track of I/O port resources. 2000-03-19 03:25:13 +00:00
atkbdc_isa.c Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
atrtc.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
fd.c Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
fdc.h Complete the bio/buf divorce for all code below devfs::strategy 2000-04-15 05:54:02 +00:00
fdreg.h Merge most of FDC_YE into the mainline driver. 2000-01-06 07:13:54 +00:00
isa_common.c It's possible for an ISA bus to be hung off an EISA bridge, so we need to 2000-12-12 23:33:29 +00:00
isa_common.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
isa_if.m * Factor out the object system from new-bus so that it can be used by 2000-04-08 14:17:18 +00:00
isahint.c Repeat after me: I will test *before* commit, not after.... *blush* 2000-10-15 09:18:14 +00:00
isareg.h Add smc37c935 chipset support and clean up the code which tries to 2000-07-18 09:01:09 +00:00
isavar.h GC some defunct prototypes 2000-11-25 08:13:33 +00:00
joy.c Add ADS7182 as a known Joystick. 2000-01-18 08:38:35 +00:00
pnp.c Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
pnpparse.c Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
pnpreg.h Supported PC-98. 2000-05-11 11:09:50 +00:00
pnpvar.h Finally merge newmidi. 2000-07-11 11:49:33 +00:00
ppc.c Consider that the chipset may be in ECP mode (from BIOS settings) 2001-01-25 10:51:41 +00:00
ppcreg.h Consider that the chipset may be in ECP mode (from BIOS settings) 2001-01-25 10:51:41 +00:00
psm.c select() DKI is now in <sys/selinfo.h>. 2001-01-09 04:33:49 +00:00
rtc.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
sio.c Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
sioreg.h Restore the old sio* - bruce can fix it himself. 1999-09-08 10:59:03 +00:00
syscons_isa.c Initiate deorbit burn sequence for <machine/console.h>. 2000-10-08 21:34:00 +00:00
vga_isa.c Add device_identify methods so that we do not need the 2000-06-28 22:53:35 +00:00