OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [29k-share/] [udi/] [udisoc.h] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* This module defines constants used in the UDI IPC modules.
2
 
3
   Copyright 1993 Free Software Foundation, Inc.
4
 
5
   This file is part of GDB.
6
 
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.
11
 
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.
16
 
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.  */
20
 
21
static char udisoc_h[]="@(#)udisoc.h    2.6  Daniel Mann";
22
static char udisoc_h_AMD[]="@(#)udisoc.h        2.4, AMD";
23
 
24
#define LOCAL static
25
#define company_c       1               /* AMD Company id */
26
#define product_c       1               /* socket IPC id */
27
 
28
/* Enumerate the UDI procedure services
29
*/
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
41
#define UDIRead_c                       11
42
#define UDIWrite_c                      12
43
#define UDICopy_c                       13
44
#define UDIExecute_c                    14
45
#define UDIStep_c                       15
46
#define UDIStop_c                       16
47
#define UDIWait_c                       17
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
58
#define UDITest_c                       28
59
#define UDIKill_c                       29
60
 
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)
65
 
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)
70
 
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)
80
 
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)
88
 
89
 
90
#define UDR_ENCODE 1
91
#define UDR_DECODE 2
92
 
93
typedef struct  UDR_str
94
{
95
    int         udr_op;                 /* UDR operation */
96
    int         previous_op;
97
    int         sd;
98
    int         bufsize;
99
    char*       buff;
100
    char*       getbytes;
101
    char*       putbytes;
102
    char*       putend;
103
    int         domain;
104
    char*       soc_name;
105
} UDR;
106
 
107
/******************************************* Declare UDR suport functions */
108
int udr_create UDIParams((
109
  UDR*  udrs,
110
  int   sd,
111
  int   size
112
  ));
113
 
114
int udr_free UDIParams((
115
  UDR*  udrs,
116
  ));
117
 
118
int udr_signal UDIParams((
119
  UDR*  udrs,
120
  ));
121
 
122
int udr_sendnow UDIParams((
123
  UDR*  udrs
124
  ));
125
 
126
int udr_work UDIParams((
127
  UDR*  udrs,
128
  void* object_p,
129
  int   size
130
  ));
131
 
132
int udr_UDIResource UDIParams((
133
  UDR*  udrs,
134
  UDIResource*  object_p
135
  ));
136
 
137
int udr_UDIRange UDIParams((
138
  UDR*  udrs,
139
  UDIRange*     object_p
140
  ));
141
 
142
int udr_UDIMemoryRange UDIParams((
143
  UDR*  udrs,
144
  UDIMemoryRange*       object_p
145
  ));
146
 
147
int udr_UDIMemoryRange UDIParams((
148
  UDR*  udrs,
149
  UDIMemoryRange* object_p
150
  ));
151
 
152
int udr_int UDIParams((
153
  UDR*  udrs,
154
  int*  int_p
155
  ));
156
 
157
int udr_bytes UDIParams((
158
  UDR*  udrs,
159
  char* ptr,
160
  int   len
161
  ));
162
 
163
char* udr_inline UDIParams((
164
  UDR*  udrs,
165
  int   size
166
  ));
167
 
168
char*   udr_getpos UDIParams((
169
  UDR*  udrs
170
  ));
171
int     udr_setpos UDIParams((
172
  UDR*  udrs,
173
  char* pos
174
  ));
175
 
176
int     udr_readnow UDIParams((
177
  UDR*  udrs,
178
  int   size
179
  ));
180
 
181
int udr_align UDIParams((
182
  UDR*  udrs,
183
  int   size,
184
  ));

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.