1*49268Sbostic /*- 2*49268Sbostic * Copyright (c) 1991 The Regents of the University of California. 3*49268Sbostic * All rights reserved. 4*49268Sbostic * 5*49268Sbostic * %sccs.include.redist.c% 6*49268Sbostic * 7*49268Sbostic * @(#)tp_timer.h 7.4 (Berkeley) 05/06/91 8*49268Sbostic */ 9*49268Sbostic 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 4636416Ssklower #ifndef __TP_CALLOUT__ 4736416Ssklower #define __TP_CALLOUT__ 4836416Ssklower 4936416Ssklower /* C timers - one per tpcb, generally cancelled */ 5036416Ssklower 5136416Ssklower struct Ccallout { 5236416Ssklower int c_time; /* incremental time */ 5336416Ssklower int c_active; /* this timer is active? */ 5436416Ssklower }; 5536416Ssklower 5636416Ssklower /* E timers - generally expire or there must be > 1 active per tpcb */ 5736416Ssklower struct Ecallout { 5836416Ssklower int c_time; /* incremental time */ 5936416Ssklower int c_func; /* function to call */ 6036416Ssklower u_int c_arg1; /* argument to routine */ 6136416Ssklower u_int c_arg2; /* argument to routine */ 6236416Ssklower int c_arg3; /* argument to routine */ 6336416Ssklower struct Ecallout *c_next; 6436416Ssklower }; 6536416Ssklower 6636416Ssklower #endif __TP_CALLOUT__ 67