freebsd-skq/sys/pci
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
..
agp_ali.c A driver for programming the AGP hardware. This is only very lightly 2000-06-09 16:04:30 +00:00
agp_amd.c Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
agp_i810.c Added support for i815. 2000-10-16 08:53:00 +00:00
agp_if.m A driver for programming the AGP hardware. This is only very lightly 2000-06-09 16:04:30 +00:00
agp_intel.c Add i815 host to PCI bridge ID 2000-10-20 16:05:47 +00:00
agp_sis.c A driver for programming the AGP hardware. This is only very lightly 2000-06-09 16:04:30 +00:00
agp_via.c A driver for programming the AGP hardware. This is only very lightly 2000-06-09 16:04:30 +00:00
agp.c un-staticize M_AGP so that it can be used in agp*.c 2000-12-19 08:32:37 +00:00
agppriv.h Add support for Intel's i810 chipset with integrated graphics. An 2000-07-12 10:13:07 +00:00
agpreg.h Add support for Intel's i810 chipset with integrated graphics. An 2000-07-12 10:13:07 +00:00
agpvar.h A driver for programming the AGP hardware. This is only very lightly 2000-06-09 16:04:30 +00:00
alpm.c Remove unneeded (and compile-breaking) #include "alpm.h" 2001-01-17 00:38:06 +00:00
amd.c Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
amd.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
cy_pci.c Converted to new-bus. 2001-02-01 09:49:57 +00:00
cy_pcireg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
dc21040reg.h s/Id/FreeBSD/ 1999-08-09 12:52:49 +00:00
ide_pcireg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
if_dc.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_dcreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_de.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_devar.h Use bus_space for all register accesses. 2000-05-13 18:47:24 +00:00
if_en_pci.c newbusify the en atm driver. 2000-11-07 09:31:28 +00:00
if_fxp.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_fxpreg.h Add the PCI device ID for the on-board ethernet controllers on the 2000-09-21 20:01:57 +00:00
if_fxpvar.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_mn.c Update these netgraph drivers in current so that these changes can be 2001-01-21 22:16:20 +00:00
if_pcn.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_pcnreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_rl.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_rlreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_sf.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_sfreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_sis.c Apply patch to add support for the intergrated ethernet in the SiS630E 2001-02-09 00:45:29 +00:00
if_sisreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_sk.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_skreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_ste.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_stereg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_ti.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_tireg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_tl.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_tlreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_tx.c Add support for SMC9432FTX card, possibly othe fiber optic SMC9432 family 2001-02-07 20:11:02 +00:00
if_txvar.h Add support for SMC9432FTX card, possibly othe fiber optic SMC9432 family 2001-02-07 20:11:02 +00:00
if_vr.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_vrreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_wb.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_wbreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_wx.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_wxreg.h Move $FreeBSD id up to top of file for multi-OS ease of support reasons. 2000-12-06 00:50:53 +00:00
if_wxvar.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
if_xl.c Convert if_multiaddrs from LIST to TAILQ so that it can be traversed 2001-02-06 10:12:15 +00:00
if_xlreg.h Change and clean the mutex lock interface. 2001-02-09 06:11:45 +00:00
intpm.c Remove unneeded #include <machine/clock.h> 2000-10-15 14:19:01 +00:00
intpmreg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
locate.pl use warnings 2000-06-27 22:41:12 +00:00
meteor_reg.h Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
meteor.c Special case for compiling LINT - just give a warning and continue on. 2001-01-17 00:47:46 +00:00
ncr.c Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
ncrreg.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ohci_pci.c Remove a couple of leftover unused variables. 2000-12-13 01:06:54 +00:00
pcic_p.c Move ti1031 to the 16-bit bridge section 2001-02-07 01:16:40 +00:00
pcic_p.h Add device id for the OZ Micro 6832. I didn't try to init it like the 2001-01-02 21:42:48 +00:00
scsiiom.c Add $FreeBSD$ 2000-05-01 20:32:07 +00:00
simos.c Convert more malloc+bzero to malloc+M_ZERO. 2000-12-08 21:51:06 +00:00
simos.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ti_fw2.h Use a custom Tigon 2 firmware image, hopefully temporarily. This is 2000-07-26 23:55:34 +00:00
ti_fw.h Update the Tigon driver to support 1000baseTX gigE over copper AceNIC 2000-07-20 22:24:43 +00:00
uhci_pci.c Remove a couple of leftover unused variables. 2000-12-13 01:06:54 +00:00
xmaciireg.h Reoganize/update the SysKonnect driver: 2000-04-22 02:16:41 +00:00
xrpu.c Do not depend on FreeBSD 2.2 compatability defines. 2000-05-28 16:18:58 +00:00