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.4 (Berkeley) 05/06/91 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_CALLOUT__ 47 #define __TP_CALLOUT__ 48 49 /* C timers - one per tpcb, generally cancelled */ 50 51 struct Ccallout { 52 int c_time; /* incremental time */ 53 int c_active; /* this timer is active? */ 54 }; 55 56 /* E timers - generally expire or there must be > 1 active per tpcb */ 57 struct Ecallout { 58 int c_time; /* incremental time */ 59 int c_func; /* function to call */ 60 u_int c_arg1; /* argument to routine */ 61 u_int c_arg2; /* argument to routine */ 62 int c_arg3; /* argument to routine */ 63 struct Ecallout *c_next; 64 }; 65 66 #endif __TP_CALLOUT__ 67