;************************************************************************
; (PC side file)
;
; memrw.inc -- parameter area definition for access to other processors mem
;
; Copyright (c) 1986, Commodore Amiga Inc.,  All rights reserved
;
;************************************************************************


; this is the parameter block for the JSERV_READPC and JSERV_READAMIGA
; services -- read and/or write the other processors memory.

MemReadWrite   struc

    mrw_Command dw 0      ; see below for list of commands
    mrw_Count   dw 0      ; number of bytes to transfer
    mrw_Address dd 0      ; local address to access.  This is
                          ;   a machine pointer for the 68000, and
                          ;   a segment/offset pair for the 808x.
                          ;   The address is arranged so the native
                          ;   processor may read it directly.
    mrw_Buffer  dw 0      ; The offset in buffer memory for the
                          ;   other buffer.
    mrw_Status  dw 0      ; See below for status.

MemReadWrite   ends


; command definitions

MRWC_NOP          =   0  ; do nothing -- return OK status code
MRWC_READ         =   1  ; xfer from address to buffer
MRWC_WRITE        =   2  ; xfer from buffer to address
MRWC_READIO       =   3  ; only on 808x -- read from IO space
MRWC_WRITEIO      =   4  ; only on 808x -- write to IO space
MRWC_WRITEREAD    =   5  ; write from buffer, then read back


; status definitions

MRWS_INPROGRESS   =   0ffffh ; we've noticed command and are working on it
MRWS_OK           =   00000h ; completed OK
MRWS_ACCESSERR    =   00001h ; some sort of protection violation
MRWS_BADCMD       =   00002h ; command that the server doesn't understand




