summaryrefslogtreecommitdiffstats
path: root/Bachelor/Mikroprozessorsysteme2/ARM202U/SOURCE/WIN32/ARMUL/ARMULDLL.H
blob: 3c6379a6758ebb5ac4464d68caef61087e45ccf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/***************************************************************************\
* armuldll.h                                                                *
* Copyright (C) 1995 Advanced RISC Machines Limited.  All rights reserved.  *
\***************************************************************************/

/*
 * RCS $Revision: 1.1.2.1 $
 * Checkin $Date: 1996/02/07 15:50:39 $
 * Revising $Author: jporter $
 */

#define BUFSIZE 80
#include <setjmp.h>
#include "armdbg.h"
#include "dbg_rdi.h"

#ifdef __WATCOMC__
        #define DLL_EXPORT __export
#elif _MSC_VER
        #define DLL_EXPORT _declspec(dllexport)
#endif

#ifdef __cplusplus
extern "C"
{
#endif
/******************************************************************************\
*                               GLOBAL VARIABLES
\******************************************************************************/
HANDLE ghMod;

/******************************************************************************\
*                              FUNCTION PROTOTYPES
\******************************************************************************/

//RDIProcVec *ARMul_DLL_GetRDI();
RDI_NameList const *ARMul_RDI_cpunames(void);
INT ARMul_RDI_open(unsigned type, const Dbg_ConfigBlock *config,
                    const Dbg_HostosInterface *hostif,
                struct Dbg_MCState *dbg_state);

INT ARMul_RDI_close(void);
INT ARMul_RDI_read(ARMword source, void *dest, unsigned *nbytes);
INT ARMul_RDI_write(const void *source, ARMword dest, unsigned *nbytes);
INT ARMul_RDI_CPUread(unsigned mode, unsigned long mask, ARMword *buffer);
INT ARMul_RDI_CPUwrite(unsigned mode, unsigned long mask, ARMword const *buffer);
INT ARMul_RDI_CPread(unsigned CPnum, unsigned long mask, ARMword *buffer);
INT ARMul_RDI_CPwrite(unsigned CPnum, unsigned long mask, ARMword const *buffer);
INT ARMul_RDI_setbreak(ARMword address, unsigned type, ARMword bound,
                        PointHandle *handle);
INT ARMul_RDI_clearbreak(PointHandle handle);
INT ARMul_RDI_setwatch(ARMword address, unsigned type, unsigned datatype,
                        ARMword bound, PointHandle *handle);
INT ARMul_RDI_clearwatch(PointHandle handle);
INT ARMul_RDI_execute(PointHandle *handle);
INT ARMul_RDI_step(unsigned ninstr, PointHandle *handle);
INT ARMul_RDI_info(unsigned type, ARMword *arg1, ARMword *arg2);

#ifdef __cplusplus
}
#endif