summaryrefslogtreecommitdiffstats
path: root/sys/i4b/layer1/ifpi
Commit message (Collapse)AuthorAgeFilesLines
* Remote pci.h/NPCI usage from i4b code.brooks2002-06-134-8/+4
| | | | Approved by: hm
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-4/+4
| | | | | | | 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
* Protect mtx_init() invocations with mtx_intialized() checks to avoid agj2001-12-301-4/+8
| | | | | | | reported panic. Submitted by: Alexander Leidinger <Alexander@Leidinger.net> (partly) MFC after: 4 weeks
* Fix an error which could cause a panic if both an ifpi and ifpi2 controllergj2001-12-291-2/+2
| | | | | | | were installed. For the ifpi2, change the string in the driver_t from "ifpi2" to "ifpi2-" so that one sees "ifpi2-0" instead of "ifpi20" at boot time.
* Reenable support for FreeBSD 4.x and possibly the other supported BSD'shm2001-01-151-2/+14
|
* Move the mutex initialization from avma1pp_bchannel_setup intojlemon2001-01-091-2/+9
| | | | | | | avma1pp_attach_avma1pp, since the former may be called multiple times and we only want to initialize the mutex once. Submitted by: Thomas Moestl <tmoestl@gmx.net>
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-251-12/+7
| | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
* Remove unused #include statementshm2000-10-304-8/+0
| | | | Submitted by: phk
* Remove unneeded #include <machine/clock.h>phk2000-10-154-4/+0
|
* Submitted by: phkhm2000-10-133-3/+0
| | | | Remove not needed includes.
* update to i4b version 0.95.04hm2000-10-095-0/+2987
OpenPOWER on IntegriCloud