fis-gtm/sr_port/tp_timeout.h

43 lines
1.2 KiB
C

/****************************************************************
* *
* Copyright 2001, 2011 Fidelity Information Services, Inc *
* *
* This source code contains the intellectual property *
* of its copyright holder(s), and is made available *
* under a license. If you do not know the terms of *
* the license, please stop and do not read further. *
* *
****************************************************************/
#ifndef __TP_TIMEOUT_H__
#define __TP_TIMEOUT_H__
/* Uncomment below to enable tptimeout defer trace */
/* #define DEBUG_TPTIMEOUT_DEFERRAL */
#ifdef DEBUG_TPTIMEOUT_DEFERRAL
# include "io.h" /* Defines flush_pio */
# define DBGTPTDFRL(x) DBGFPF(x)
#else
# define DBGTPTDFRL(x)
#endif
/* Routines to perform state transitions */
/* Start timer (Clear -> Set) */
void tp_start_timer(int4 timer_seconds);
/* Transaction done, clear any pending timeout:
* (Set -> Clear)
* (Expired -> Clearing -> Clear)
* Valid even if no timeout was set.
*/
void tp_clear_timeout(void);
/* Used in transfer table for signaling exception */
void tp_timeout_action(void);
/* Used to setup tptimeout error via out-of-band */
void tptimeout_set(int4 dummy_param);
#endif