3 * ===================================
4 * HARP | Host ATM Research Platform
5 * ===================================
8 * This Host ATM Research Platform ("HARP") file (the "Software") is
9 * made available by Network Computing Services, Inc. ("NetworkCS")
10 * "AS IS". NetworkCS does not provide maintenance, improvements or
11 * support of any kind.
13 * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
14 * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
15 * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
16 * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
17 * In no event shall NetworkCS be responsible for any damages, including
18 * but not limited to consequential damages, arising from or relating to
19 * any use of the Software or related support.
21 * Copyright 1994-1998 Network Computing Services, Inc.
23 * Copies of this Software may be made, however, the above copyright
24 * notice must be reproduced on all copies.
26 * @(#) $FreeBSD: src/sys/dev/hfa/fore_timer.c,v 1.3 1999/08/28 00:41:52 peter Exp $
27 * @(#) $DragonFly: src/sys/dev/atm/hfa/fore_timer.c,v 1.4 2008/03/01 22:03:13 swildner Exp $
31 * FORE Systems 200-Series Adapter Support
32 * ---------------------------------------
38 #include "fore_include.h"
41 * Process a Fore timer tick
43 * This function is called every FORE_TIME_TICK seconds in order to update
44 * all of the unit watchdog timers.
49 * tip pointer to fore timer control block
56 fore_timeout(struct atm_time *tip)
63 * Schedule next timeout
65 atm_timeout(&fore_timer, ATM_HZ * FORE_TIME_TICK, fore_timeout);
68 * Run through all units, updating each active timer.
69 * If an expired timer is found, notify that unit.
71 for (i = 0; i < fore_nunits; i++) {
73 if ((fup = fore_units[i]) == NULL)
77 * Decrement timer, if it's active
79 if (fup->fu_timer && (--fup->fu_timer == 0)) {
82 * Timeout occurred - go check out the queues
84 ATM_DEBUG0("fore_timeout\n");
85 DEVICE_LOCK((Cmn_unit *)fup);
87 DEVICE_UNLOCK((Cmn_unit *)fup);