1 /*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)tp_timer.h 7.8 (Berkeley) 05/25/93 8 */ 9 10 /*********************************************************** 11 Copyright IBM Corporation 1987 12 13 All Rights Reserved 14 15 Permission to use, copy, modify, and distribute this software and its 16 documentation for any purpose and without fee is hereby granted, 17 provided that the above copyright notice appear in all copies and that 18 both that copyright notice and this permission notice appear in 19 supporting documentation, and that the name of IBM not be 20 used in advertising or publicity pertaining to distribution of the 21 software without specific, written prior permission. 22 23 IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 24 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 25 IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 26 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 27 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 28 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 29 SOFTWARE. 30 31 ******************************************************************/ 32 33 /* 34 * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison 35 */ 36 /* 37 * ARGO TP 38 * 39 * $Header: tp_timer.h,v 5.1 88/10/12 12:21:41 root Exp $ 40 * $Source: /usr/argo/sys/netiso/RCS/tp_timer.h,v $ 41 * 42 * ARGO TP 43 * The callout structures used by the tp timers. 44 */ 45 46 #ifndef __TP_TIMER__ 47 #define __TP_TIMER__ 48 49 #define SET_DELACK(t) {\ 50 (t)->tp_flags |= TPF_DELACK; \ 51 if ((t)->tp_fasttimeo == 0)\ 52 { (t)->tp_fasttimeo = tp_ftimeolist; tp_ftimeolist = (t); } } 53 54 #ifdef ARGO_DEBUG 55 #define TP_DEBUG_TIMERS 56 #endif 57 58 #ifndef TP_DEBUG_TIMERS 59 #define tp_ctimeout(tpcb, which, timo) ((tpcb)->tp_timer[which] = (timo)) 60 #define tp_cuntimeout(tpcb, which) ((tpcb)->tp_timer[which] = 0) 61 #define tp_etimeout tp_ctimeout 62 #define tp_euntimeout tp_cuntimeout 63 #define tp_ctimeout_MIN(p, w, t) \ 64 { if((p)->tp_timer[w] > (t)) (p)->tp_timer[w] = (t);} 65 #endif /* TP_DEBUG_TIMERS */ 66 67 #endif /* __TP_TIMER__ */ 68