149268Sbostic /*- 2*63222Sbostic * Copyright (c) 1991, 1993 3*63222Sbostic * The Regents of the University of California. All rights reserved. 449268Sbostic * 549268Sbostic * %sccs.include.redist.c% 649268Sbostic * 7*63222Sbostic * @(#)tp_timer.h 8.1 (Berkeley) 06/10/93 849268Sbostic */ 949268Sbostic 1036416Ssklower /*********************************************************** 1136416Ssklower Copyright IBM Corporation 1987 1236416Ssklower 1336416Ssklower All Rights Reserved 1436416Ssklower 1536416Ssklower Permission to use, copy, modify, and distribute this software and its 1636416Ssklower documentation for any purpose and without fee is hereby granted, 1736416Ssklower provided that the above copyright notice appear in all copies and that 1836416Ssklower both that copyright notice and this permission notice appear in 1936416Ssklower supporting documentation, and that the name of IBM not be 2036416Ssklower used in advertising or publicity pertaining to distribution of the 2136416Ssklower software without specific, written prior permission. 2236416Ssklower 2336416Ssklower IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 2436416Ssklower ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 2536416Ssklower IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 2636416Ssklower ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 2736416Ssklower WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 2836416Ssklower ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 2936416Ssklower SOFTWARE. 3036416Ssklower 3136416Ssklower ******************************************************************/ 3236416Ssklower 3336416Ssklower /* 3436416Ssklower * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison 3536416Ssklower */ 3636416Ssklower /* 3736416Ssklower * ARGO TP 3836416Ssklower * 3936416Ssklower * $Header: tp_timer.h,v 5.1 88/10/12 12:21:41 root Exp $ 4036416Ssklower * $Source: /usr/argo/sys/netiso/RCS/tp_timer.h,v $ 4136416Ssklower * 4236416Ssklower * ARGO TP 4336416Ssklower * The callout structures used by the tp timers. 4436416Ssklower */ 4536416Ssklower 4651253Ssklower #ifndef __TP_TIMER__ 4751253Ssklower #define __TP_TIMER__ 4836416Ssklower 4951024Ssklower #define SET_DELACK(t) {\ 5051024Ssklower (t)->tp_flags |= TPF_DELACK; \ 5151024Ssklower if ((t)->tp_fasttimeo == 0)\ 5251253Ssklower { (t)->tp_fasttimeo = tp_ftimeolist; tp_ftimeolist = (t); } } 5351024Ssklower 5451253Ssklower #ifdef ARGO_DEBUG 5551253Ssklower #define TP_DEBUG_TIMERS 5651253Ssklower #endif 5751253Ssklower 5851253Ssklower #ifndef TP_DEBUG_TIMERS 5951253Ssklower #define tp_ctimeout(tpcb, which, timo) ((tpcb)->tp_timer[which] = (timo)) 6051253Ssklower #define tp_cuntimeout(tpcb, which) ((tpcb)->tp_timer[which] = 0) 6151253Ssklower #define tp_etimeout tp_ctimeout 6251253Ssklower #define tp_euntimeout tp_cuntimeout 6351253Ssklower #define tp_ctimeout_MIN(p, w, t) \ 6451253Ssklower { if((p)->tp_timer[w] > (t)) (p)->tp_timer[w] = (t);} 6560359Sbostic #endif /* TP_DEBUG_TIMERS */ 6651253Ssklower 6760359Sbostic #endif /* __TP_TIMER__ */ 68