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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [29k-share/] [udi/] [udiproc.h] - Diff between revs 107 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/* local type decs. and macro defs.
/* local type decs. and macro defs.
 
 
   Copyright 1993 Free Software Foundation, Inc.
   Copyright 1993 Free Software Foundation, Inc.
 
 
   This file is part of GDB.
   This file is part of GDB.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 
#include "udiphcfg.h"   /* Get host specific configuration */
#include "udiphcfg.h"   /* Get host specific configuration */
#include "udiptcfg.h"   /* Get target specific configuration */
#include "udiptcfg.h"   /* Get target specific configuration */
 
 
/* Here are all of the CPU Families for which UDI is currently defined */
/* Here are all of the CPU Families for which UDI is currently defined */
#define Am29K           1       /* AMD's Am290xx and Am292xx parts */
#define Am29K           1       /* AMD's Am290xx and Am292xx parts */
 
 
typedef UDIInt          UDIError;
typedef UDIInt          UDIError;
typedef UDIInt          UDISessionId;
typedef UDIInt          UDISessionId;
typedef UDIInt          UDIPId;
typedef UDIInt          UDIPId;
typedef UDIInt          UDIStepType;
typedef UDIInt          UDIStepType;
typedef UDIInt          UDIBreakType;
typedef UDIInt          UDIBreakType;
typedef UDIUInt         UDIBreakId;
typedef UDIUInt         UDIBreakId;
typedef UDIUInt         UDIMode;
typedef UDIUInt         UDIMode;
 
 
typedef UDIStruct
typedef UDIStruct
{
{
    CPUSpace    Space;
    CPUSpace    Space;
    CPUOffset   Offset;
    CPUOffset   Offset;
} UDIResource;
} UDIResource;
 
 
typedef UDIStruct
typedef UDIStruct
{
{
    CPUOffset   Low;
    CPUOffset   Low;
    CPUOffset   High;
    CPUOffset   High;
} UDIRange;
} UDIRange;
 
 
typedef UDIStruct
typedef UDIStruct
{
{
    CPUSpace    Space;
    CPUSpace    Space;
    CPUOffset   Offset;
    CPUOffset   Offset;
    CPUSizeT    Size;
    CPUSizeT    Size;
    } UDIMemoryRange;
    } UDIMemoryRange;
 
 
/* Values for UDIStepType parameters */
/* Values for UDIStepType parameters */
#define UDIStepNatural          0x0000
#define UDIStepNatural          0x0000
#define UDIStepOverTraps        0x0001
#define UDIStepOverTraps        0x0001
#define UDIStepOverCalls        0x0002
#define UDIStepOverCalls        0x0002
#define UDIStepInRange          0x0004
#define UDIStepInRange          0x0004
#define UDIStepNatural          0x0000
#define UDIStepNatural          0x0000
 
 
/* Values for UDIBreakType parameters */
/* Values for UDIBreakType parameters */
#define UDIBreakFlagExecute     0x0001
#define UDIBreakFlagExecute     0x0001
#define UDIBreakFlagRead        0x0002
#define UDIBreakFlagRead        0x0002
#define UDIBreakFlagWrite       0x0004
#define UDIBreakFlagWrite       0x0004
#define UDIBreakFlagFetch       0x0008
#define UDIBreakFlagFetch       0x0008
 
 
/* Special values for UDIWait MaxTime parameter */
/* Special values for UDIWait MaxTime parameter */
#define UDIWaitForever  (UDIInt32) -1   /* Infinite time delay */
#define UDIWaitForever  (UDIInt32) -1   /* Infinite time delay */
 
 
/* Special values for PId */
/* Special values for PId */
#define UDIProcessProcessor     -1      /* Raw Hardware, if possible */
#define UDIProcessProcessor     -1      /* Raw Hardware, if possible */
 
 
/* Values for UDIWait StopReason */
/* Values for UDIWait StopReason */
#define UDIGrossState           0xff
#define UDIGrossState           0xff
#define UDITrapped              0        /* Fine state - which trap */
#define UDITrapped              0        /* Fine state - which trap */
#define UDINotExecuting         1
#define UDINotExecuting         1
#define UDIRunning              2
#define UDIRunning              2
#define UDIStopped              3
#define UDIStopped              3
#define UDIWarned               4
#define UDIWarned               4
#define UDIStepped              5
#define UDIStepped              5
#define UDIWaiting              6
#define UDIWaiting              6
#define UDIHalted               7
#define UDIHalted               7
#define UDIStdoutReady          8       /* fine state - size */
#define UDIStdoutReady          8       /* fine state - size */
#define UDIStderrReady          9       /* fine state - size */
#define UDIStderrReady          9       /* fine state - size */
#define UDIStdinNeeded          10      /* fine state - size */
#define UDIStdinNeeded          10      /* fine state - size */
#define UDIStdinModeX           11      /* fine state - mode */
#define UDIStdinModeX           11      /* fine state - mode */
#define UDIBreak                12      /* Fine state - Breakpoint Id */
#define UDIBreak                12      /* Fine state - Breakpoint Id */
#define UDIExited               13      /* Fine state - exit code */
#define UDIExited               13      /* Fine state - exit code */
 
 
/* Enumerate the return values from the callback function
/* Enumerate the return values from the callback function
   for UDIEnumerateTIPs.
   for UDIEnumerateTIPs.
*/
*/
#define UDITerminateEnumeration 0
#define UDITerminateEnumeration 0
#define UDIContinueEnumeration  1
#define UDIContinueEnumeration  1
 
 
/* Enumerate values for Terminate parameter to UDIDisconnect */
/* Enumerate values for Terminate parameter to UDIDisconnect */
#define UDITerminateSession     1
#define UDITerminateSession     1
#define UDIContinueSession      0
#define UDIContinueSession      0
 
 
/* Error codes */
/* Error codes */
#define UDINoError                      0        /* No error occured */
#define UDINoError                      0        /* No error occured */
#define UDIErrorNoSuchConfiguration     1
#define UDIErrorNoSuchConfiguration     1
#define UDIErrorCantHappen              2
#define UDIErrorCantHappen              2
#define UDIErrorCantConnect             3
#define UDIErrorCantConnect             3
#define UDIErrorNoSuchConnection        4
#define UDIErrorNoSuchConnection        4
#define UDIErrorNoConnection            5
#define UDIErrorNoConnection            5
#define UDIErrorCantOpenConfigFile      6
#define UDIErrorCantOpenConfigFile      6
#define UDIErrorCantStartTIP            7
#define UDIErrorCantStartTIP            7
#define UDIErrorConnectionUnavailable   8
#define UDIErrorConnectionUnavailable   8
#define UDIErrorTryAnotherTIP           9
#define UDIErrorTryAnotherTIP           9
#define UDIErrorExecutableNotTIP        10
#define UDIErrorExecutableNotTIP        10
#define UDIErrorInvalidTIPOption        11
#define UDIErrorInvalidTIPOption        11
#define UDIErrorCantDisconnect          12
#define UDIErrorCantDisconnect          12
#define UDIErrorUnknownError            13
#define UDIErrorUnknownError            13
#define UDIErrorCantCreateProcess       14
#define UDIErrorCantCreateProcess       14
#define UDIErrorNoSuchProcess           15
#define UDIErrorNoSuchProcess           15
#define UDIErrorUnknownResourceSpace    16
#define UDIErrorUnknownResourceSpace    16
#define UDIErrorInvalidResource         17
#define UDIErrorInvalidResource         17
#define UDIErrorUnsupportedStepType     18
#define UDIErrorUnsupportedStepType     18
#define UDIErrorCantSetBreakpoint       19
#define UDIErrorCantSetBreakpoint       19
#define UDIErrorTooManyBreakpoints      20
#define UDIErrorTooManyBreakpoints      20
#define UDIErrorInvalidBreakId          21
#define UDIErrorInvalidBreakId          21
#define UDIErrorNoMoreBreakIds          22
#define UDIErrorNoMoreBreakIds          22
#define UDIErrorUnsupportedService      23
#define UDIErrorUnsupportedService      23
#define UDIErrorTryAgain                24
#define UDIErrorTryAgain                24
#define UDIErrorIPCLimitation           25
#define UDIErrorIPCLimitation           25
#define UDIErrorIncomplete              26
#define UDIErrorIncomplete              26
#define UDIErrorAborted                 27
#define UDIErrorAborted                 27
#define UDIErrorTransDone               28
#define UDIErrorTransDone               28
#define UDIErrorCantAccept              29
#define UDIErrorCantAccept              29
#define UDIErrorTransInputNeeded        30
#define UDIErrorTransInputNeeded        30
#define UDIErrorTransModeX              31
#define UDIErrorTransModeX              31
#define UDIErrorInvalidSize             32
#define UDIErrorInvalidSize             32
#define UDIErrorBadConfigFileEntry      33
#define UDIErrorBadConfigFileEntry      33
#define UDIErrorIPCInternal             34
#define UDIErrorIPCInternal             34
/* TBD */
/* TBD */
 
 
/****************************************************************** PROCEDURES
/****************************************************************** PROCEDURES
*/
*/
 
 
UDIError UDIConnect UDIParams((
UDIError UDIConnect UDIParams((
  char          *Configuration,         /* In */
  char          *Configuration,         /* In */
  UDISessionId  *Session                /* Out */
  UDISessionId  *Session                /* Out */
  ));
  ));
 
 
UDIError UDIDisconnect UDIParams((
UDIError UDIDisconnect UDIParams((
  UDISessionId  Session,                /* In */
  UDISessionId  Session,                /* In */
  UDIBool       Terminate               /* In */
  UDIBool       Terminate               /* In */
  ));
  ));
 
 
UDIError UDISetCurrentConnection UDIParams((
UDIError UDISetCurrentConnection UDIParams((
  UDISessionId  Session                 /* In */
  UDISessionId  Session                 /* In */
  ));
  ));
 
 
UDIError UDICapabilities UDIParams((
UDIError UDICapabilities UDIParams((
  UDIUInt32     *TIPId,                 /* Out */
  UDIUInt32     *TIPId,                 /* Out */
  UDIUInt32     *TargetId,              /* Out */
  UDIUInt32     *TargetId,              /* Out */
  UDIUInt32     DFEId,                  /* In */
  UDIUInt32     DFEId,                  /* In */
  UDIUInt32     DFE,                    /* In */
  UDIUInt32     DFE,                    /* In */
  UDIUInt32     *TIP,                   /* Out */
  UDIUInt32     *TIP,                   /* Out */
  UDIUInt32     *DFEIPCId,              /* Out */
  UDIUInt32     *DFEIPCId,              /* Out */
  UDIUInt32     *TIPIPCId,              /* Out */
  UDIUInt32     *TIPIPCId,              /* Out */
  char          *TIPString              /* Out */
  char          *TIPString              /* Out */
  ));
  ));
 
 
UDIError UDIEnumerateTIPs UDIParams((
UDIError UDIEnumerateTIPs UDIParams((
  UDIInt        (*UDIETCallback)        /* In */
  UDIInt        (*UDIETCallback)        /* In */
    UDIParams(( char *Configuration ))  /* In to callback() */
    UDIParams(( char *Configuration ))  /* In to callback() */
  ));
  ));
 
 
UDIError UDIGetErrorMsg UDIParams((
UDIError UDIGetErrorMsg UDIParams((
  UDIError      ErrorCode,              /* In */
  UDIError      ErrorCode,              /* In */
  UDISizeT      MsgSize,                /* In */
  UDISizeT      MsgSize,                /* In */
  char          *Msg,                   /* Out */
  char          *Msg,                   /* Out */
  UDISizeT      *CountDone              /* Out */
  UDISizeT      *CountDone              /* Out */
  ));
  ));
 
 
UDIError UDIGetTargetConfig UDIParams((
UDIError UDIGetTargetConfig UDIParams((
  UDIMemoryRange KnownMemory[],         /* Out */
  UDIMemoryRange KnownMemory[],         /* Out */
  UDIInt        *NumberOfRanges,        /* In/Out */
  UDIInt        *NumberOfRanges,        /* In/Out */
  UDIUInt32     ChipVersions[],         /* Out */
  UDIUInt32     ChipVersions[],         /* Out */
  UDIInt        *NumberOfChips          /* In/Out */
  UDIInt        *NumberOfChips          /* In/Out */
  ));
  ));
 
 
UDIError UDICreateProcess UDIParams((
UDIError UDICreateProcess UDIParams((
  UDIPId        *PId                    /* Out */
  UDIPId        *PId                    /* Out */
  ));
  ));
 
 
UDIError UDISetCurrentProcess UDIParams((
UDIError UDISetCurrentProcess UDIParams((
  UDIPId        PId                     /* In */
  UDIPId        PId                     /* In */
  ));
  ));
 
 
UDIError UDIDestroyProcess UDIParams((
UDIError UDIDestroyProcess UDIParams((
  UDIPId        PId                     /* In */
  UDIPId        PId                     /* In */
  ));
  ));
 
 
UDIError UDIInitializeProcess UDIParams((
UDIError UDIInitializeProcess UDIParams((
  UDIMemoryRange ProcessMemory[],       /* In */
  UDIMemoryRange ProcessMemory[],       /* In */
  UDIInt        NumberOfRanges,         /* In */
  UDIInt        NumberOfRanges,         /* In */
  UDIResource   EntryPoint,             /* In */
  UDIResource   EntryPoint,             /* In */
  CPUSizeT      StackSizes[],           /* In */
  CPUSizeT      StackSizes[],           /* In */
  UDIInt        NumberOfStacks,         /* In */
  UDIInt        NumberOfStacks,         /* In */
  char          *ArgString              /* In */
  char          *ArgString              /* In */
  ));
  ));
 
 
UDIError UDIRead UDIParams((
UDIError UDIRead UDIParams((
  UDIResource   From,                   /* In */
  UDIResource   From,                   /* In */
  UDIHostMemPtr To,                     /* Out */
  UDIHostMemPtr To,                     /* Out */
  UDICount      Count,                  /* In */
  UDICount      Count,                  /* In */
  UDISizeT      Size,                   /* In */
  UDISizeT      Size,                   /* In */
  UDICount      *CountDone,             /* Out */
  UDICount      *CountDone,             /* Out */
  UDIBool       HostEndian              /* In */
  UDIBool       HostEndian              /* In */
  ));
  ));
 
 
UDIError UDIWrite UDIParams((
UDIError UDIWrite UDIParams((
  UDIHostMemPtr From,                   /* In */
  UDIHostMemPtr From,                   /* In */
  UDIResource   To,                     /* In */
  UDIResource   To,                     /* In */
  UDICount      Count,                  /* In */
  UDICount      Count,                  /* In */
  UDISizeT      Size,                   /* In */
  UDISizeT      Size,                   /* In */
  UDICount      *CountDone,             /* Out */
  UDICount      *CountDone,             /* Out */
  UDIBool       HostEndian              /* In */
  UDIBool       HostEndian              /* In */
  ));
  ));
 
 
UDIError UDICopy UDIParams((
UDIError UDICopy UDIParams((
  UDIResource   From,                   /* In */
  UDIResource   From,                   /* In */
  UDIResource   To,                     /* In */
  UDIResource   To,                     /* In */
  UDICount      Count,                  /* In */
  UDICount      Count,                  /* In */
  UDISizeT      Size,                   /* In */
  UDISizeT      Size,                   /* In */
  UDICount      *CountDone,             /* Out */
  UDICount      *CountDone,             /* Out */
  UDIBool       Direction               /* In */
  UDIBool       Direction               /* In */
  ));
  ));
 
 
UDIError UDIExecute UDIParams((
UDIError UDIExecute UDIParams((
  void
  void
  ));
  ));
 
 
UDIError UDIStep UDIParams((
UDIError UDIStep UDIParams((
  UDIUInt32     Steps,                  /* In */
  UDIUInt32     Steps,                  /* In */
  UDIStepType   StepType,               /* In */
  UDIStepType   StepType,               /* In */
  UDIRange      Range                   /* In */
  UDIRange      Range                   /* In */
  ));
  ));
 
 
UDIVoid UDIStop UDIParams((
UDIVoid UDIStop UDIParams((
  void
  void
  ));
  ));
 
 
UDIError UDIWait UDIParams((
UDIError UDIWait UDIParams((
  UDIInt32      MaxTime,                /* In */
  UDIInt32      MaxTime,                /* In */
  UDIPId        *PId,                   /* Out */
  UDIPId        *PId,                   /* Out */
  UDIUInt32     *StopReason             /* Out */
  UDIUInt32     *StopReason             /* Out */
  ));
  ));
 
 
UDIError UDISetBreakpoint UDIParams((
UDIError UDISetBreakpoint UDIParams((
  UDIResource   Addr,                   /* In */
  UDIResource   Addr,                   /* In */
  UDIInt32      PassCount,              /* In */
  UDIInt32      PassCount,              /* In */
  UDIBreakType  Type,                   /* In */
  UDIBreakType  Type,                   /* In */
  UDIBreakId    *BreakId                /* Out */
  UDIBreakId    *BreakId                /* Out */
  ));
  ));
 
 
UDIError UDIQueryBreakpoint UDIParams((
UDIError UDIQueryBreakpoint UDIParams((
  UDIBreakId    BreakId,                /* In */
  UDIBreakId    BreakId,                /* In */
  UDIResource   *Addr,                  /* Out */
  UDIResource   *Addr,                  /* Out */
  UDIInt32      *PassCount,             /* Out */
  UDIInt32      *PassCount,             /* Out */
  UDIBreakType  *Type,                  /* Out */
  UDIBreakType  *Type,                  /* Out */
  UDIInt32      *CurrentCount           /* Out */
  UDIInt32      *CurrentCount           /* Out */
  ));
  ));
 
 
UDIError UDIClearBreakpoint UDIParams((
UDIError UDIClearBreakpoint UDIParams((
  UDIBreakId    BreakId                 /* In */
  UDIBreakId    BreakId                 /* In */
  ));
  ));
 
 
UDIError UDIGetStdout UDIParams((
UDIError UDIGetStdout UDIParams((
  UDIHostMemPtr Buf,                    /* Out */
  UDIHostMemPtr Buf,                    /* Out */
  UDISizeT      BufSize,                /* In */
  UDISizeT      BufSize,                /* In */
  UDISizeT      *CountDone              /* Out */
  UDISizeT      *CountDone              /* Out */
  ));
  ));
 
 
UDIError UDIGetStderr UDIParams((
UDIError UDIGetStderr UDIParams((
  UDIHostMemPtr Buf,                    /* Out */
  UDIHostMemPtr Buf,                    /* Out */
  UDISizeT      BufSize,                /* In */
  UDISizeT      BufSize,                /* In */
  UDISizeT      *CountDone              /* Out */
  UDISizeT      *CountDone              /* Out */
  ));
  ));
 
 
UDIError UDIPutStdin UDIParams((
UDIError UDIPutStdin UDIParams((
  UDIHostMemPtr Buf,                    /* In */
  UDIHostMemPtr Buf,                    /* In */
  UDISizeT      Count,                  /* In */
  UDISizeT      Count,                  /* In */
  UDISizeT      *CountDone              /* Out */
  UDISizeT      *CountDone              /* Out */
  ));
  ));
 
 
UDIError UDIStdinMode UDIParams((
UDIError UDIStdinMode UDIParams((
  UDIMode       *Mode                   /* Out */
  UDIMode       *Mode                   /* Out */
  ));
  ));
 
 
UDIError UDIPutTrans UDIParams((
UDIError UDIPutTrans UDIParams((
  UDIHostMemPtr Buf,                    /* In */
  UDIHostMemPtr Buf,                    /* In */
  UDISizeT      Count,                  /* In */
  UDISizeT      Count,                  /* In */
  UDISizeT      *CountDone              /* Out */
  UDISizeT      *CountDone              /* Out */
  ));
  ));
 
 
UDIError UDIGetTrans UDIParams((
UDIError UDIGetTrans UDIParams((
  UDIHostMemPtr Buf,                    /* Out */
  UDIHostMemPtr Buf,                    /* Out */
  UDISizeT      BufSize,                /* In */
  UDISizeT      BufSize,                /* In */
  UDISizeT      *CountDone              /* Out */
  UDISizeT      *CountDone              /* Out */
  ));
  ));
 
 
UDIError UDITransMode UDIParams((
UDIError UDITransMode UDIParams((
  UDIMode       *Mode                   /* Out */
  UDIMode       *Mode                   /* Out */
  ));
  ));
 
 

powered by: WebSVN 2.1.0

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