1 /* This module defines constants used in the UDI IPC modules.
3 Copyright 1993 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21 static char udisoc_h[]="@(#)udisoc.h 2.6 Daniel Mann";
22 static char udisoc_h_AMD[]="@(#)udisoc.h 2.4, AMD";
25 #define company_c 1 /* AMD Company id */
26 #define product_c 1 /* socket IPC id */
28 /* Enumerate the UDI procedure services
30 #define UDIConnect_c 0
31 #define UDIDisconnect_c 1
32 #define UDISetCurrentConnection_c 2
33 #define UDICapabilities_c 3
34 #define UDIEnumerateTIPs_c 4
35 #define UDIGetErrorMsg_c 5
36 #define UDIGetTargetConfig_c 6
37 #define UDICreateProcess_c 7
38 #define UDISetCurrentProcess_c 8
39 #define UDIDestroyProcess_c 9
40 #define UDIInitializeProcess_c 10
44 #define UDIExecute_c 14
48 #define UDISetBreakpoint_c 18
49 #define UDIQueryBreakpoint_c 19
50 #define UDIClearBreakpoint_c 20
51 #define UDIGetStdout_c 21
52 #define UDIGetStderr_c 22
53 #define UDIPutStdin_c 23
54 #define UDIStdinMode_c 24
55 #define UDIPutTrans_c 25
56 #define UDIGetTrans_c 26
57 #define UDITransMode_c 27
61 #define udr_UDIInt8(udrs, obj) udr_work(udrs, obj, 1)
62 #define udr_UDIInt16(udrs, obj) udr_work(udrs, obj, 2)
63 #define udr_UDIInt32(udrs, obj) udr_work(udrs, obj, 4)
64 #define udr_UDIInt(udrs, obj) udr_work(udrs, obj, 4)
66 #define udr_UDIUInt8(udrs, obj) udr_work(udrs, obj, 1)
67 #define udr_UDIUInt16(udrs, obj) udr_work(udrs, obj, 2)
68 #define udr_UDIUInt32(udrs, obj) udr_work(udrs, obj, 4)
69 #define udr_UDIUInt(udrs, obj) udr_work(udrs, obj, 4)
71 #define udr_UDIBool(udrs, obj) udr_UDIInt32(udrs, obj)
72 #define udr_UDICount(udrs, obj) udr_UDIInt32(udrs, obj)
73 #define udr_UDISize(udrs, obj) udr_UDIUInt32(udrs, obj)
74 #define udr_CPUSpace(udrs, obj) udr_UDIInt32(udrs, obj)
75 #define udr_CPUOffset(udrs, obj) udr_UDIUInt32(udrs, obj)
76 #define udr_CPUSizeT(udrs, obj) udr_UDIUInt32(udrs, obj)
77 #define udr_UDIBreakId(udrs,obj) udr_UDIUInt(udrs, obj)
78 #define udr_UDISizeT(udrs, obj) udr_UDIUInt(udrs, obj)
79 #define udr_UDIMode(udrs, obj) udr_UDIUInt(udrs, obj)
81 #define udr_UDIHostMemPtr(udrs, obj) udr_UDIUInt32(udrs, obj)
82 #define udr_UDIVoidPtr(udrs, obj) udr_UDIUInt32(udrs, obj)
83 #define udr_UDIPId(udrs, obj) udr_UDIUInt(udrs, obj)
84 #define udr_UDISessionId(udrs, obj) udr_UDIInt32(udrs, obj)
85 #define udr_UDIError(udrs, obj) udr_UDIInt32(udrs, obj)
86 #define udr_UDIStepType(udrs, obj) udr_UDIInt32(udrs, obj)
87 #define udr_UDIBreakType(udrs, obj) udr_UDIInt32(udrs, obj)
93 typedef struct UDR_str
95 int udr_op; /* UDR operation */
107 /******************************************* Declare UDR suport functions */
108 int udr_create UDIParams((
114 int udr_free UDIParams((
118 int udr_signal UDIParams((
122 int udr_sendnow UDIParams((
126 int udr_work UDIParams((
132 int udr_UDIResource UDIParams((
134 UDIResource* object_p
137 int udr_UDIRange UDIParams((
142 int udr_UDIMemoryRange UDIParams((
144 UDIMemoryRange* object_p
147 int udr_UDIMemoryRange UDIParams((
149 UDIMemoryRange* object_p
152 int udr_int UDIParams((
157 int udr_bytes UDIParams((
163 char* udr_inline UDIParams((
168 char* udr_getpos UDIParams((
171 int udr_setpos UDIParams((
176 int udr_readnow UDIParams((
181 int udr_align UDIParams((