aboutsummaryrefslogtreecommitdiff
path: root/sim/frv/devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/frv/devices.c')
-rw-r--r--sim/frv/devices.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/sim/frv/devices.c b/sim/frv/devices.c
index 5a3336d..e417963 100644
--- a/sim/frv/devices.c
+++ b/sim/frv/devices.c
@@ -21,10 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-main.h"
-#ifdef HAVE_DV_SOCKSER
-#include "dv-sockser.h"
-#endif
-
device frv_devices;
int
@@ -35,31 +31,6 @@ device_io_read_buffer (device *me, void *source, int space,
if (STATE_ENVIRONMENT (sd) != OPERATING_ENVIRONMENT)
return nr_bytes;
-#ifdef HAVE_DV_SOCKSER
- if (addr == UART_INCHAR_ADDR)
- {
- int c = dv_sockser_read (sd);
- if (c == -1)
- return 0;
- *(char *) source = c;
- return 1;
- }
- if (addr == UART_STATUS_ADDR)
- {
- int status = dv_sockser_status (sd);
- unsigned char *p = source;
- p[0] = 0;
- p[1] = (((status & DV_SOCKSER_INPUT_EMPTY)
-#ifdef UART_INPUT_READY0
- ? UART_INPUT_READY : 0)
-#else
- ? 0 : UART_INPUT_READY)
-#endif
- + ((status & DV_SOCKSER_OUTPUT_EMPTY) ? UART_OUTPUT_READY : 0));
- return 2;
- }
-#endif
-
return nr_bytes;
}
@@ -81,14 +52,6 @@ device_io_write_buffer (device *me, const void *source, int space,
if (STATE_ENVIRONMENT (sd) != OPERATING_ENVIRONMENT)
return nr_bytes;
-#if HAVE_DV_SOCKSER
- if (addr == UART_OUTCHAR_ADDR)
- {
- int rc = dv_sockser_write (sd, *(char *) source);
- return rc == 1;
- }
-#endif
-
return nr_bytes;
}