home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gdb-4.16-base.tgz / gdb-4.16-base.tar / fsf / gdb / utils / amd-udi / include / miniint.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-23  |  5.0 KB  |  177 lines

  1. /* @(#)miniint.h    5.18 93/07/30 16:40:02, Srini, AMD */
  2. /******************************************************************************
  3.  * Copyright 1992 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 Systems Engineering
  22.  * Mail Stop 573
  23.  * 5204 E. Ben White Blvd.
  24.  * Austin, TX 78741
  25.  * 800-292-9263
  26.  * 29k-support@AMD.COM
  27.  *****************************************************************************
  28.  * Engineer: Srini Subramanian.
  29.  *****************************************************************************
  30.  * This header file defines the interface routines between the DFE and UDI.
  31.  *****************************************************************************
  32.  */
  33. #ifndef    _MINIINT_H_INCLUDED_
  34. #define    _MINIINT_H_INCLUDED_
  35.  
  36. /* This file contains the declarations of functions that form
  37.  * Minimon frontend's interface to its back-end.
  38.  * Back-end could be a message system or a procedural interface
  39.  */
  40.  
  41. /* There is one function for each of the message sent from the
  42. * host to the target.
  43. */
  44.  
  45. #include    "types.h"
  46.  
  47. #define    MONErrorMsgSize        80
  48.  
  49. #define BKPT_29050       0
  50. #define    BKPT_29050_BTE_0    0
  51. #define    BKPT_29050_BTE_1    1
  52. #define BKPT_29000      -1
  53.  
  54. #define    MONMaxMemRanges    3    /* Inst, data, Rom */
  55. #define    MONMaxChips    2   /* main cpu & coprocessor */
  56. #define    MONMaxProcessMemRanges    2
  57. #define    MONMaxStacks    2
  58.  
  59. /* For breakpoint status */
  60. #define    MONBreakNoMore    0x1
  61. #define    MONBreakInvalid    0x2
  62.  
  63. /*  These are defined in main.h                        */
  64. /*    typedef    struct    target_config_t    TARGET_CONFIG; */
  65. /*    typedef    struct  target_status_t TARGET_STATUS; */
  66.  
  67. /* This is the function to initialize the Target Interphase Process/
  68.  * System.
  69.  * Input: Pointer to the target's name (as given at the "-t" command
  70.  *      line flag of Minimon).
  71.  * Output: It returns:
  72.  * SUCCESS: if everything went okay.
  73.  * FAILURE: not okay.
  74.  */
  75.  
  76. INT32    Mini_TIP_init PARAMS((char *conn_str, int   *sid));
  77.  
  78. INT32    Mini_TIP_SetCurrSession PARAMS((int  sid));
  79.  
  80. INT32    Mini_TIP_SetPID PARAMS((int  pid));
  81.  
  82. INT32    Mini_TIP_DestroyProc PARAMS((void));
  83.  
  84. INT32    Mini_TIP_Capabilities PARAMS((void));
  85.  
  86. INT32    Mini_TIP_CreateProc PARAMS((void));
  87.  
  88. INT32    Mini_TIP_disc PARAMS((void));
  89.  
  90. INT32    Mini_TIP_exit PARAMS((void));
  91.  
  92. INT32    Mini_reset_processor PARAMS((void));
  93.  
  94. INT32    Mini_config_req PARAMS((TARGET_CONFIG  *target_conf, VERSIONS_ETC *vers));
  95.  
  96. INT32    Mini_status_req PARAMS((TARGET_STATUS *target_stat));
  97.  
  98. INT32    Mini_read_req PARAMS((INT32 memory_space, 
  99.                   ADDR32 address, 
  100.                   INT32 byte_count,
  101.                   INT16  size,
  102.                   INT32 *count_done, 
  103.                   BYTE *buffer, 
  104.                   BOOLEAN host_endian));
  105.  
  106. INT32    Mini_write_req PARAMS((INT32 memory_space,
  107.                    ADDR32 address,
  108.                    INT32 byte_count,
  109.                    INT16 size,
  110.                    INT32 *count_done,
  111.                    BYTE *buffer,
  112.                    BOOLEAN host_endian));
  113.  
  114. INT32    Mini_bkpt_set PARAMS((INT32 memory_space,
  115.                   ADDR32 bkpt_addr,
  116.                   INT32 pass_count,
  117.                   INT32 bkpt_type,
  118.                   int *break_id));
  119.  
  120. INT32    Mini_bkpt_rm PARAMS((int break_id));
  121.  
  122. INT32    Mini_bkpt_stat PARAMS((int break_id,
  123.                    ADDR32 *bkpt_addr,
  124.                    INT32 *memory_space,
  125.                    INT32 *pass_count,
  126.                    INT32 *bkpt_type ,
  127.                    INT32 *current_cnt));
  128.  
  129. INT32     Mini_copy PARAMS((INT32 source_space,
  130.               ADDR32 source_addr,
  131.               INT32 dest_space,
  132.               ADDR32 dest_addr,
  133.               INT32 byte_count,
  134.               INT16 size,
  135.               INT32 count_done));
  136.  
  137. INT32    Mini_fill PARAMS((INT32 memory_space,
  138.               ADDR32 start_addr,
  139.               INT32 fill_count,
  140.               INT32 byte_count,
  141.               BYTE *pattern));
  142.  
  143. INT32    Mini_init PARAMS((ADDR32 text_start,
  144.               ADDR32 text_end,
  145.               ADDR32 data_start,
  146.               ADDR32 data_end,
  147.               ADDR32 entry_point,
  148.               INT32 m_stack,
  149.               INT32 r_stack,
  150.               char  *arg_string));
  151.  
  152. INT32     Mini_go PARAMS((void));
  153.  
  154. INT32    Mini_step PARAMS((INT32 count));
  155.  
  156. INT32    Mini_break PARAMS((void));
  157.  
  158. INT32    Mini_get_target_stats PARAMS((INT32 maxtime, INT32 *target_status));
  159.  
  160. INT32    Mini_get_stdout PARAMS((char *buffer,
  161.                 INT32 bufsize,
  162.                 INT32 *count_done));
  163.  
  164. INT32    Mini_get_stderr PARAMS((char *buffer,
  165.                 INT32 bufsize,
  166.                 INT32 *count_done));
  167.  
  168. INT32    Mini_stdin_mode_x PARAMS((INT32 *mode));
  169.  
  170. INT32    Mini_put_stdin PARAMS((char *buffer,
  171.                    INT32 bufsize,
  172.                    INT32 *count_done));
  173.  
  174. INT32    Mini_put_trans PARAMS((char *buffer));
  175.  
  176. #endif /* _MINIINT_H_INCLUDED_ */
  177.