1 /* communicate.h -- ARMulator comms support defns: ARM6 Instruction Emulator.
2 Copyright (C) 1994 Advanced RISC Machines Ltd.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
18 int MYread_char(int sock
, unsigned char *c
);
19 void MYwrite_char(int sock
, unsigned char c
);
20 int MYread_word(int sock
, ARMword
*here
);
21 void MYwrite_word(int sock
, ARMword i
);
22 void MYwrite_string(int sock
, char *s
);
23 int MYread_FPword(int sock
, char *putinhere
);
24 void MYwrite_FPword(int sock
, char *fromhere
);
25 int passon(int source
, int dest
, int n
);
27 int wait_for_osreply(ARMword
*reply
); /* from kid.c */
29 #define OS_SendNothing 0x0
30 #define OS_SendChar 0x1
31 #define OS_SendWord 0x2
32 #define OS_SendString 0x3
34 /* The pipes between the two processes */