OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [gdb-5.0/] [utils/] [amd-udi/] [include/] [mtip.h] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/* @(#)mtip.h   5.19 93/09/08 14:15:22, Srini, AMD */
2
/******************************************************************************
3
 * Copyright 1991 Advanced Micro Devices, Inc.
4
 *
5
 * This software is the property of Advanced Micro Devices, Inc  (AMD)  which
6
 * specifically  grants the user the right to modify, use and distribute this
7
 * software provided this notice is not removed or altered.  All other rights
8
 * are reserved by AMD.
9
 *
10
 * AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
11
 * SOFTWARE.  IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
12
 * DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
13
 * USE OF THIS SOFTWARE.
14
 *
15
 * So that all may benefit from your experience, please report  any  problems
16
 * or  suggestions about this software to the 29K Technical Support Center at
17
 * 800-29-29-AMD (800-292-9263) in the USA, or 0800-89-1131  in  the  UK,  or
18
 * 0031-11-1129 in Japan, toll free.  The direct dial number is 512-462-4118.
19
 *
20
 * Advanced Micro Devices, Inc.
21
 * 29K Support Products
22
 * Mail Stop 573
23
 * 5900 E. Ben White Blvd.
24
 * Austin, TX 78741
25
 * 800-292-9263
26
 *****************************************************************************
27
 *      Engineer: Srini Subramanian.
28
 *****************************************************************************
29
 * This is the header file of mtip.c module.
30
 *****************************************************************************
31
 */
32
#ifndef _MTIP_H_INCLUDED_
33
#define _MTIP_H_INCLUDED_
34
 
35
#include  "types.h"
36
 
37
#define ILLOP29K        "00000000"
38
 
39
#define DEFAULT_BAUD_RATE       "9600"
40
 
41
#define LOAD_BUFFER_SIZE        1024
42
#define FROM_BEGINNING          0
43
 
44
#ifdef  MSDOS
45
#define DEFAULT_COMM_PORT       "com1:"
46
#define DEFAULT_PAR_PORT        "lpt1:"
47
#else
48
#define DEFAULT_COMM_PORT       "/dev/ttya"
49
#define DEFAULT_PAR_PORT        ""
50
#endif
51
 
52
 
53
#define TRUE                 1
54
#define FALSE                0
55
 
56
#define MAXFILENAMELEN     256
57
 
58
/* Define BIG and LITTLE endian */
59
#define BIG                  0
60
#define LITTLE               1
61
 
62
#ifdef MSDOS
63
#define FILE_OPEN_FLAG   "rb"
64
#else
65
#define FILE_OPEN_FLAG   "r"
66
#endif
67
 
68
#define BKPT_29050       0
69
#define BKPT_29050_BTE_0        0
70
#define BKPT_29050_BTE_1        1
71
#define BKPT_29000      -1
72
 
73
#define MONMaxMemRanges 3    /* Inst, data, Rom */
74
#define MONMaxChips     2   /* main cpu & coprocessor */
75
#define MONMaxProcessMemRanges  2
76
#define MONMaxStacks    2
77
 
78
#define MONDefaultMemStackSize  0x6000
79
#define MONDefaultRegStackSize  0x2000
80
 
81
struct  tip_target_config_t {
82
          INT32    processor_id;
83
          INT32    version;
84
          ADDR32   I_mem_start;
85
          INT32    I_mem_size;
86
          ADDR32   D_mem_start;
87
          INT32    D_mem_size;
88
          ADDR32   ROM_start;
89
          INT32    ROM_size;
90
          INT32    max_msg_size;
91
          INT32    max_bkpts;
92
          INT32    coprocessor;
93
          int      P29KEndian;
94
          int      TipEndian;
95
          INT32    os_version;
96
};
97
typedef struct  tip_target_config_t     TIP_TARGET_CONFIG;
98
extern  TIP_TARGET_CONFIG       tip_target_config;
99
 
100
struct  tip_target_status_t {
101
          INT32    status;
102
          INT32    msgs_sent;
103
          INT32    msgs_received;
104
          INT32    errors;
105
          INT32    bkpts_hit;
106
          INT32    bkpts_free;
107
          INT32    traps;
108
          INT32    fills;
109
          INT32    spills;
110
          INT32    cycles;
111
          INT32    reserved;
112
};
113
typedef struct  tip_target_status_t     TIP_TARGET_STATUS;
114
extern  TIP_TARGET_STATUS       tip_target_status;
115
 
116
struct  tip_config_t {
117
        INT32   PC_port_base;
118
        INT32   PC_mem_seg;
119
        char    baud_rate[10];
120
        char    comm_port[15];
121
        char    par_port[15];
122
};
123
typedef struct  tip_config_t    TIP_CONFIG;
124
extern  TIP_CONFIG              tip_config;
125
 
126
typedef unsigned int BreakIdType;
127
struct tip_break_table {
128
  BreakIdType           id;
129
  INT32         space;
130
  ADDR32        offset;
131
  INT32         count;
132
  INT32         type;
133
  ADDR32        BreakInst;      /* actual instruction */
134
  struct tip_break_table *next;
135
};
136
 
137
extern  char    *Msg_Logfile;
138
 
139
void  tip_convert32 PARAMS((BYTE *));
140
void  tip_convert16 PARAMS((BYTE *));
141
 
142
#ifdef MSDOS
143
#define SIGINT_POLL     kbhit();
144
#else
145
#define SIGINT_POLL
146
#endif
147
#endif /* _MTIP_H_INCLUDED_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.