| 1 |
106 |
markom |
/* 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 2 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, write to the Free Software
|
| 16 |
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
| 17 |
|
|
|
| 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);
|
| 26 |
|
|
|
| 27 |
|
|
int wait_for_osreply (ARMword * reply); /* from kid.c */
|
| 28 |
|
|
|
| 29 |
|
|
#define OS_SendNothing 0x0
|
| 30 |
|
|
#define OS_SendChar 0x1
|
| 31 |
|
|
#define OS_SendWord 0x2
|
| 32 |
|
|
#define OS_SendString 0x3
|
| 33 |
|
|
|
| 34 |
|
|
/* The pipes between the two processes */
|
| 35 |
|
|
extern int mumkid[2];
|
| 36 |
|
|
extern int kidmum[2];
|