summaryrefslogtreecommitdiffstats
path: root/c/src/tests/support/stubdr
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/support/stubdr')
-rw-r--r--c/src/tests/support/stubdr/close.c38
-rw-r--r--c/src/tests/support/stubdr/cntrl.c38
-rw-r--r--c/src/tests/support/stubdr/init.c41
-rw-r--r--c/src/tests/support/stubdr/open.c38
-rw-r--r--c/src/tests/support/stubdr/read.c38
-rw-r--r--c/src/tests/support/stubdr/stubdrv.h81
-rw-r--r--c/src/tests/support/stubdr/write.c38
7 files changed, 0 insertions, 312 deletions
diff --git a/c/src/tests/support/stubdr/close.c b/c/src/tests/support/stubdr/close.c
deleted file mode 100644
index 7fb24ede56..0000000000
--- a/c/src/tests/support/stubdr/close.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Stub_close
- *
- * This routine is the terminal driver close routine.
- *
- * Input parameters:
- * major - device major number
- * minor - device minor number
- * pargb - pointer to close parameter block
- * tid - calling task's id
- * rval - address of the return value
- *
- * Output parameters:
- * rval - STUB_SUCCESSFUL
- *
- * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
- * On-Line Applications Research Corporation (OAR).
- * All rights assigned to U.S. Government, 1994.
- *
- * This material may be reproduced by or for the U.S. Government pursuant
- * to the copyright license under the clause at DFARS 252.227-7013. This
- * notice must appear in all copies of this file and its derivatives.
- *
- * $Id$
- */
-
-#include <rtems.h>
-#include "stubdrv.h"
-
-rtems_device_driver Stub_close(
- rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *pargp,
- rtems_id tid,
- rtems_unsigned32 *rval
-)
-{
- *rval = STUB_SUCCESSFUL;
-}
diff --git a/c/src/tests/support/stubdr/cntrl.c b/c/src/tests/support/stubdr/cntrl.c
deleted file mode 100644
index 8d1d904583..0000000000
--- a/c/src/tests/support/stubdr/cntrl.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Stub_control
- *
- * This routine is the terminal driver control routine.
- *
- * Input parameters:
- * major - device major number
- * minor - device minor number
- * pargp - pointer to cntrl parameter block
- * tid - calling task's id
- * rval - address of the return value
- *
- * Output parameters:
- * rval - STUB_SUCCESSFUL
- *
- * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
- * On-Line Applications Research Corporation (OAR).
- * All rights assigned to U.S. Government, 1994.
- *
- * This material may be reproduced by or for the U.S. Government pursuant
- * to the copyright license under the clause at DFARS 252.227-7013. This
- * notice must appear in all copies of this file and its derivatives.
- *
- * $Id$
- */
-
-#include <rtems.h>
-#include "stubdrv.h"
-
-rtems_device_driver Stub_control(
- rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *pargp,
- rtems_id tid,
- rtems_unsigned32 *rval
-)
-{
- *rval = STUB_SUCCESSFUL;
-}
diff --git a/c/src/tests/support/stubdr/init.c b/c/src/tests/support/stubdr/init.c
deleted file mode 100644
index 35ec5f8f37..0000000000
--- a/c/src/tests/support/stubdr/init.c
+++ /dev/null
@@ -1,41 +0,0 @@
-/* Stub_initialize
- *
- * This routine is the terminal driver init routine.
- *
- * Input parameters:
- * major - device major number
- * minor - device minor number
- * pargp - pointer to parameter block
- * tid - calling task's id
- * rval - pointer to return value
- *
- * Output parameters:
- * rval - STUB_SUCCESSFUL
- *
- * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
- * On-Line Applications Research Corporation (OAR).
- * All rights assigned to U.S. Government, 1994.
- *
- * This material may be reproduced by or for the U.S. Government pursuant
- * to the copyright license under the clause at DFARS 252.227-7013. This
- * notice must appear in all copies of this file and its derivatives.
- *
- * $Id$
- */
-
-#include <rtems.h>
-#include "stubdrv.h"
-
-rtems_unsigned32 STUB_major;
-
-rtems_device_driver Stub_initialize(
- rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *pargp,
- rtems_id tid,
- rtems_unsigned32 *rval
-)
-{
- STUB_major = major;
- *rval = STUB_SUCCESSFUL;
-}
diff --git a/c/src/tests/support/stubdr/open.c b/c/src/tests/support/stubdr/open.c
deleted file mode 100644
index cf4a5c4ffb..0000000000
--- a/c/src/tests/support/stubdr/open.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Stub_open
- *
- * This routine is the terminal driver open routine.
- *
- * Input parameters:
- * major - device major number
- * minor - device minor number
- * pargb - pointer to open parameter block
- * tid - calling task's id
- * rval - address of the return value
- *
- * Output parameters:
- * rval - STUB_SUCCESSFUL
- *
- * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
- * On-Line Applications Research Corporation (OAR).
- * All rights assigned to U.S. Government, 1994.
- *
- * This material may be reproduced by or for the U.S. Government pursuant
- * to the copyright license under the clause at DFARS 252.227-7013. This
- * notice must appear in all copies of this file and its derivatives.
- *
- * $Id$
- */
-
-#include <rtems.h>
-#include "stubdrv.h"
-
-rtems_device_driver Stub_open(
- rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *pargp,
- rtems_id tid,
- rtems_unsigned32 *rval
-)
-{
- *rval = STUB_SUCCESSFUL;
-}
diff --git a/c/src/tests/support/stubdr/read.c b/c/src/tests/support/stubdr/read.c
deleted file mode 100644
index 7244d34cc8..0000000000
--- a/c/src/tests/support/stubdr/read.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Stub_read
- *
- * This routine is the terminal driver read routine.
- *
- * Input parameters:
- * major - device major number
- * minor - device minor number
- * pargp - pointer to read parameter block
- * tid - calling task's id
- * rval - address of the return value
- *
- * Output parameters:
- * rval - STUB_SUCCESSFUL
- *
- * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
- * On-Line Applications Research Corporation (OAR).
- * All rights assigned to U.S. Government, 1994.
- *
- * This material may be reproduced by or for the U.S. Government pursuant
- * to the copyright license under the clause at DFARS 252.227-7013. This
- * notice must appear in all copies of this file and its derivatives.
- *
- * $Id$
- */
-
-#include <rtems.h>
-#include "stubdrv.h"
-
-rtems_device_driver Stub_read(
- rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *pargp,
- rtems_id tid,
- rtems_unsigned32 *rval
-)
-{
- *rval = STUB_SUCCESSFUL;
-}
diff --git a/c/src/tests/support/stubdr/stubdrv.h b/c/src/tests/support/stubdr/stubdrv.h
deleted file mode 100644
index 34c571b6d6..0000000000
--- a/c/src/tests/support/stubdr/stubdrv.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* stubdrv.h
- *
- * This file describes the Stub Driver for all boards.
- *
- * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
- * On-Line Applications Research Corporation (OAR).
- * All rights assigned to U.S. Government, 1994.
- *
- * This material may be reproduced by or for the U.S. Government pursuant
- * to the copyright license under the clause at DFARS 252.227-7013. This
- * notice must appear in all copies of this file and its derivatives.
- *
- * $Id$
- */
-
-#ifndef __STUB_DRIVER_h
-#define __STUB_DRIVER_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define STUB_DRIVER_TABLE_ENTRY \
- { Stub_initialize, NULL, NULL, NULL, NULL, NULL }
-
-#define STUB_SUCCESSFUL RTEMS_SUCCESSFUL
-
-rtems_device_driver Stub_initialize(
- rtems_device_major_number,
- rtems_device_minor_number,
- void *,
- rtems_id,
- rtems_unsigned32 *
-);
-
-rtems_device_driver Stub_open(
- rtems_device_major_number,
- rtems_device_minor_number,
- void *,
- rtems_id,
- rtems_unsigned32 *
-);
-
-rtems_device_driver Stub_close(
- rtems_device_major_number,
- rtems_device_minor_number,
- void *,
- rtems_id,
- rtems_unsigned32 *
-);
-
-rtems_device_driver Stub_read(
- rtems_device_major_number,
- rtems_device_minor_number,
- void *,
- rtems_id,
- rtems_unsigned32 *
-);
-
-rtems_device_driver Stub_write(
- rtems_device_major_number,
- rtems_device_minor_number,
- void *,
- rtems_id,
- rtems_unsigned32 *
-);
-
-rtems_device_driver Stub_control(
- rtems_device_major_number,
- rtems_device_minor_number,
- void *,
- rtems_id,
- rtems_unsigned32 *
-);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-/* end of include file */
diff --git a/c/src/tests/support/stubdr/write.c b/c/src/tests/support/stubdr/write.c
deleted file mode 100644
index c6b5ce770a..0000000000
--- a/c/src/tests/support/stubdr/write.c
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Stub_write
- *
- * This routine is the terminal driver write routine.
- *
- * Input parameters:
- * major - device major number
- * minor - device minor number
- * pargp - pointer to write parameter block
- * tid - calling task's id
- * rval - address of the return value
- *
- * Output parameters:
- * rval - STUB_SUCCESSFUL
- *
- * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
- * On-Line Applications Research Corporation (OAR).
- * All rights assigned to U.S. Government, 1994.
- *
- * This material may be reproduced by or for the U.S. Government pursuant
- * to the copyright license under the clause at DFARS 252.227-7013. This
- * notice must appear in all copies of this file and its derivatives.
- *
- * $Id$
- */
-
-#include <rtems.h>
-#include "stubdrv.h"
-
-rtems_device_driver Stub_write(
- rtems_device_major_number major,
- rtems_device_minor_number minor,
- void *pargp,
- rtems_id tid,
- rtems_unsigned32 *rval
-)
-{
- *rval = STUB_SUCCESSFUL;
-}