2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
2012-03-24 14:06:46 -04:00
|
|
|
* Copyright 2001, 2011 Fidelity Information Services, Inc *
|
2012-02-05 11:35:58 -05:00
|
|
|
* *
|
|
|
|
* 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__
|
|
|
|
|
2012-03-24 14:06:46 -04:00
|
|
|
/* 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
|
2012-02-05 11:35:58 -05:00
|
|
|
|
2012-03-24 14:06:46 -04:00
|
|
|
/* Routines to perform state transitions */
|
2012-02-05 11:35:58 -05:00
|
|
|
|
2012-03-24 14:06:46 -04:00
|
|
|
/* Start timer (Clear -> Set) */
|
2012-02-05 11:35:58 -05:00
|
|
|
void tp_start_timer(int4 timer_seconds);
|
|
|
|
|
2012-03-24 14:06:46 -04:00
|
|
|
/* Transaction done, clear any pending timeout:
|
2012-02-05 11:35:58 -05:00
|
|
|
* (Set -> Clear)
|
|
|
|
* (Expired -> Clearing -> Clear)
|
|
|
|
* Valid even if no timeout was set.
|
|
|
|
*/
|
|
|
|
void tp_clear_timeout(void);
|
|
|
|
|
2012-03-24 14:06:46 -04:00
|
|
|
/* Used in transfer table for signaling exception */
|
2012-02-05 11:35:58 -05:00
|
|
|
void tp_timeout_action(void);
|
|
|
|
|
2012-03-24 14:06:46 -04:00
|
|
|
/* Used to setup tptimeout error via out-of-band */
|
|
|
|
void tptimeout_set(int4 dummy_param);
|
|
|
|
|
2012-02-05 11:35:58 -05:00
|
|
|
#endif
|