unit at a time
[platform/upstream/binutils.git] / sim / arm / communicate.h
1 /*  communicate.h -- ARMulator comms support defns:  ARM6 Instruction Emulator.
2     Copyright (C) 1994 Advanced RISC Machines Ltd.
3  
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 3 of the License, or
7     (at your option) any later version.
8  
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.
13  
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, see <http://www.gnu.org/licenses/>. */
16
17 int MYread_char (int sock, unsigned char *c);
18 void MYwrite_char (int sock, unsigned char c);
19 int MYread_word (int sock, ARMword * here);
20 void MYwrite_word (int sock, ARMword i);
21 void MYwrite_string (int sock, char *s);
22 int MYread_FPword (int sock, char *putinhere);
23 void MYwrite_FPword (int sock, char *fromhere);
24 int passon (int source, int dest, int n);
25
26 int wait_for_osreply (ARMword * reply); /* from kid.c */
27
28 #define OS_SendNothing 0x0
29 #define OS_SendChar 0x1
30 #define OS_SendWord 0x2
31 #define OS_SendString 0x3
32
33 /* The pipes between the two processes */
34 extern int mumkid[2];
35 extern int kidmum[2];