summaryrefslogtreecommitdiffstats
path: root/private/mvdm/softpc.new/base/inc/yoda.h
blob: b091e9a325ecda707c891f887585ce0f0e8c70cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

/*
 * VPC-XT Revision 0.1
 *
 * Title	: yoda.h
 *
 * Description	: The force is with you include file
 *		  (ps yoda debugging file)
 *
 * Author	: Henry Nash
 *		  Phil Bousfield
 *
 * Notes	: This file contains the debugger call definitions
 */

/* SccsID[]="@(#)yoda.h	1.6 06/30/95 Copyright Insignia Solutions Ltd."; */

/*
 * ============================================================================
 * Structure/Data definitions
 * ============================================================================
 */

/* None */

/*
 * ============================================================================
 * External declarations and macros
 * ============================================================================
 */


/*  
 * If the PROD flag is set then turn the debugger calls into null macros
 * otherwise they are external functions - see yoda.c
 */

#ifdef PROD
#define check_I() 		/*	*/
#define check_D(address, value) /*address, value*/
#define force_yoda() 		/*	*/
#else
extern void check_I();
extern void check_D();
extern void force_yoda();
#endif

/*
 * Interface definitions and enums - non-prod only.
 */

#ifndef PROD

typedef enum {YODA_RETURN, YODA_RETURN_AND_REPEAT, YODA_HELP, YODA_LOOP, YODA_LOOP_AND_REPEAT} YODA_CMD_RETURN;
#define YODA_COMMAND(name) \
	YODA_CMD_RETURN name IFN6(char *, str, char *, com, IS32, cs, \
				LIN_ADDR, ip, LIN_ADDR, len, LIN_ADDR, stop)

#ifdef MSWDVR_DEBUG
extern YODA_CMD_RETURN do_mswdvr_debug IPT6(char *,str, char *, com, IS32, cs, LIN_ADDR, ip, LIN_ADDR, len, LIN_ADDR, stop);
#endif /* MSWDVR_DEBUG */

extern IBOOL AlreadyInYoda;

extern IU32 IntelMsgDest;
#define IM_DST_TRACE	1
#define IM_DST_RING	2

#else /* !PROD */

#endif /* !PROD else*/