Line 1... |
Line 1... |
/* dve.c -- I/O code for the Densan DVE-R3900 board.
|
/* dve.c -- I/O code for the Densan DVE-R3900 board.
|
*
|
*
|
* Copyright (c) 1998 Cygnus Support
|
* Copyright (c) 1998, 1999 Cygnus Support
|
*
|
*
|
* The authors hereby grant permission to use, copy, modify, distribute,
|
* The authors hereby grant permission to use, copy, modify, distribute,
|
* and license this software and its documentation for any purpose, provided
|
* and license this software and its documentation for any purpose, provided
|
* that existing copyright notices are retained in all copies and that this
|
* that existing copyright notices are retained in all copies and that this
|
* notice is included verbatim in any distributions. No written agreement,
|
* notice is included verbatim in any distributions. No written agreement,
|
Line 20... |
Line 20... |
int output_debug = 1;
|
int output_debug = 1;
|
|
|
/* Monitor "ci" function (console input) */
|
/* Monitor "ci" function (console input) */
|
|
|
typedef int (*cifunc)(int waitflag);
|
typedef int (*cifunc)(int waitflag);
|
|
#ifdef __mips64
|
|
static cifunc ci = (cifunc) 0xffffffffbfc00010L;
|
|
#else
|
static cifunc ci = (cifunc) 0xbfc00010;
|
static cifunc ci = (cifunc) 0xbfc00010;
|
|
#endif
|
|
|
#define WAIT 1
|
#define WAIT 1
|
#define NOWAIT 0
|
#define NOWAIT 0
|
#define NOCHAR (-1)
|
#define NOCHAR (-1)
|
|
|
/* Monitor "co" function (console output) */
|
/* Monitor "co" function (console output) */
|
|
|
typedef void (*cofunc)(int c);
|
typedef void (*cofunc)(int c);
|
|
#ifdef __mips64
|
|
static cofunc co = (cofunc) 0xffffffffbfc00018L;
|
|
#else
|
static cofunc co = (cofunc) 0xbfc00018;
|
static cofunc co = (cofunc) 0xbfc00018;
|
|
#endif
|
|
|
/* outbyte -- shove a byte out the serial port; used by write.c. */
|
/* outbyte -- shove a byte out the serial port; used by write.c. */
|
|
|
int
|
int
|
outbyte(byte)
|
outbyte(byte)
|
Line 72... |
Line 80... |
struct s_mem *mem;
|
struct s_mem *mem;
|
{
|
{
|
mem->size = 0x1000000; /* DVE-R3900 board has 16 MB of RAM */
|
mem->size = 0x1000000; /* DVE-R3900 board has 16 MB of RAM */
|
}
|
}
|
|
|
|
|
/* close function is a dummy for this target. */
|
|
|
|
int close (fd)
|
|
int fd;
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
|
|
No newline at end of file
|
No newline at end of file
|