149268Sbostic /*- 249268Sbostic * Copyright (c) 1991 The Regents of the University of California. 349268Sbostic * All rights reserved. 449268Sbostic * 549268Sbostic * %sccs.include.redist.c% 649268Sbostic * 7*51253Ssklower * @(#)tp_timer.h 7.7 (Berkeley) 10/02/91 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 46*51253Ssklower #ifndef __TP_TIMER__ 47*51253Ssklower #define __TP_TIMER__ 4836416Ssklower 4951024Ssklower #define SET_DELACK(t) {\ 5051024Ssklower (t)->tp_flags |= TPF_DELACK; \ 5151024Ssklower if ((t)->tp_fasttimeo == 0)\ 52*51253Ssklower { (t)->tp_fasttimeo = tp_ftimeolist; tp_ftimeolist = (t); } } 5351024Ssklower 54*51253Ssklower #ifdef ARGO_DEBUG 55*51253Ssklower #define TP_DEBUG_TIMERS 56*51253Ssklower #endif 57*51253Ssklower 58*51253Ssklower #ifndef TP_DEBUG_TIMERS 59*51253Ssklower #define tp_ctimeout(tpcb, which, timo) ((tpcb)->tp_timer[which] = (timo)) 60*51253Ssklower #define tp_cuntimeout(tpcb, which) ((tpcb)->tp_timer[which] = 0) 61*51253Ssklower #define tp_etimeout tp_ctimeout 62*51253Ssklower #define tp_euntimeout tp_cuntimeout 63*51253Ssklower #define tp_ctimeout_MIN(p, w, t) \ 64*51253Ssklower { if((p)->tp_timer[w] > (t)) (p)->tp_timer[w] = (t);} 65*51253Ssklower #endif TP_DEBUG_TIMERS 66*51253Ssklower 67*51253Ssklower #endif __TP_TIMER__ 68