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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [nindy-share/] [block_io.h] - Diff between revs 106 and 107

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

Rev 106 Rev 107
/******************************************************************
/******************************************************************
        Copyright 1990, 1992 Free Software Foundation, Inc.
        Copyright 1990, 1992 Free Software Foundation, Inc.
 
 
        This code was donated by Intel Corp.
        This code was donated by Intel Corp.
 
 
   Intel hereby grants you permission to copy, modify, and
   Intel hereby grants you permission to copy, modify, and
   distribute this software and its documentation.  Intel grants
   distribute this software and its documentation.  Intel grants
   this permission provided that the above copyright notice
   this permission provided that the above copyright notice
   appears in all copies and that both the copyright notice and
   appears in all copies and that both the copyright notice and
   this permission notice appear in supporting documentation.  In
   this permission notice appear in supporting documentation.  In
   addition, Intel grants this permission provided that you
   addition, Intel grants this permission provided that you
   prominently mark as not part of the original any modifications
   prominently mark as not part of the original any modifications
   made to this software or documentation, and that the name of
   made to this software or documentation, and that the name of
   Intel Corporation not be used in advertising or publicity
   Intel Corporation not be used in advertising or publicity
   pertaining to distribution of the software or the documentation
   pertaining to distribution of the software or the documentation
   without specific, written prior permission.
   without specific, written prior permission.
 
 
   Intel Corporation does not warrant, guarantee or make any
   Intel Corporation does not warrant, guarantee or make any
   representations regarding the use of, or the results of the use
   representations regarding the use of, or the results of the use
   of, the software and documentation in terms of correctness,
   of, the software and documentation in terms of correctness,
   accuracy, reliability, currentness, or otherwise; and you rely
   accuracy, reliability, currentness, or otherwise; and you rely
   on the software, documentation and results solely at your own
   on the software, documentation and results solely at your own
   risk.                                                          */
   risk.                                                          */
/******************************************************************/
/******************************************************************/
 
 
/*****************************************************************************
/*****************************************************************************
 * Structures and definitions supporting NINDY requests for services by a
 * Structures and definitions supporting NINDY requests for services by a
 * remote host.  Used by NINDY monitor, library libnin, comm960, gdb960,
 * remote host.  Used by NINDY monitor, library libnin, comm960, gdb960,
 * etc.  Also contains some defines for NINDY console I/O requests.
 * etc.  Also contains some defines for NINDY console I/O requests.
 *****************************************************************************/
 *****************************************************************************/
 
 
/* the following four are hardware dependent */
/* the following four are hardware dependent */
#define BIT_16          short
#define BIT_16          short
#define BIT_32          int
#define BIT_32          int
#define UBIT_16         unsigned short
#define UBIT_16         unsigned short
#define UBIT_32         unsigned int
#define UBIT_32         unsigned int
 
 
/* Service request numbers -- these are the services that can be asked of the
/* Service request numbers -- these are the services that can be asked of the
 * host.
 * host.
 */
 */
#define BS_ACCESS       0x10
#define BS_ACCESS       0x10
#define BS_CLOSE        0x20
#define BS_CLOSE        0x20
#define BS_CREAT        0x30
#define BS_CREAT        0x30
#define BS_SEEK         0x40
#define BS_SEEK         0x40
#define BS_OPEN         0x50
#define BS_OPEN         0x50
#define BS_READ         0x60
#define BS_READ         0x60
#define BS_STAT         0x70
#define BS_STAT         0x70
#define BS_SYSTEMD      0x80
#define BS_SYSTEMD      0x80
#define BS_TIME         0x90
#define BS_TIME         0x90
#define BS_UNMASK       0xa0
#define BS_UNMASK       0xa0
#define BS_UNLINK       0xb0
#define BS_UNLINK       0xb0
#define BS_WRITE        0xc0
#define BS_WRITE        0xc0
 
 
 
 
/* Maximum number of arguments to any of the above service requests
/* Maximum number of arguments to any of the above service requests
 * (in addition to the request number).
 * (in addition to the request number).
 */
 */
#define MAX_SRQ_ARGS    3
#define MAX_SRQ_ARGS    3
 
 
/* Number of bytes of data that can be read or written by a single I/O request
/* Number of bytes of data that can be read or written by a single I/O request
 */
 */
#define BUFSIZE         1024
#define BUFSIZE         1024
 
 
/* NINDY console I/O requests:  CO sends a single character to stdout,
/* NINDY console I/O requests:  CO sends a single character to stdout,
 * CI reads one.
 * CI reads one.
 */
 */
#define CI              0
#define CI              0
#define CO              1
#define CO              1
 
 

powered by: WebSVN 2.1.0

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