diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-01-05 13:31:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-01-05 13:31:04 +0000 |
commit | 98e1de84a33be9839380521b45e9d54dd6d1f9c4 (patch) | |
tree | ad0d560c7c150f2c4078dd45922b51cf497ef846 /c/src/lib/libcpu/sh/sh7032 | |
parent | 2001-01-05 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-98e1de84a33be9839380521b45e9d54dd6d1f9c4.tar.bz2 |
2001-01-05 Joel Sherrill <joel@OARcorp.com>
* /dev/null moved to libmisc.
* Makefile.am, configure.in: Removed null directory.
* include/Makefile.am: Removed null.h.
* include/null.h, null/.cvsignore, null/Makefile.am, null/close.c,
null/cntrl.c, null/init.c, null/open.c, null/read.c, null/write.c:
Removed.
Diffstat (limited to 'c/src/lib/libcpu/sh/sh7032')
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/ChangeLog | 9 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/Makefile.am | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/configure.in | 1 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/include/Makefile.am | 4 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/include/null.h | 71 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/null/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/null/Makefile.am | 31 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/null/close.c | 37 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/null/cntrl.c | 37 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/null/init.c | 52 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/null/open.c | 37 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/null/read.c | 37 | ||||
-rw-r--r-- | c/src/lib/libcpu/sh/sh7032/null/write.c | 43 |
13 files changed, 12 insertions, 351 deletions
diff --git a/c/src/lib/libcpu/sh/sh7032/ChangeLog b/c/src/lib/libcpu/sh/sh7032/ChangeLog index 8b7ee7a291..4325d99e78 100644 --- a/c/src/lib/libcpu/sh/sh7032/ChangeLog +++ b/c/src/lib/libcpu/sh/sh7032/ChangeLog @@ -1,3 +1,12 @@ +2001-01-05 Joel Sherrill <joel@OARcorp.com> + + * /dev/null moved to libmisc. + * Makefile.am, configure.in: Removed null directory. + * include/Makefile.am: Removed null.h. + * include/null.h, null/.cvsignore, null/Makefile.am, null/close.c, + null/cntrl.c, null/init.c, null/open.c, null/read.c, null/write.c: + Removed. + 2000-11-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de> * Makefile.am: Use ... instead of RTEMS_TOPdir in ACLOCAL_AMFLAGS. diff --git a/c/src/lib/libcpu/sh/sh7032/Makefile.am b/c/src/lib/libcpu/sh/sh7032/Makefile.am index b7292dbaf1..26302b0563 100644 --- a/c/src/lib/libcpu/sh/sh7032/Makefile.am +++ b/c/src/lib/libcpu/sh/sh7032/Makefile.am @@ -5,7 +5,7 @@ AUTOMAKE_OPTIONS = foreign 1.4 ACLOCAL_AMFLAGS = -I ../../../../../../aclocal -SUBDIRS = include score clock timer null sci delay +SUBDIRS = include score clock timer sci delay include $(top_srcdir)/../../../../../../automake/subdirs.am include $(top_srcdir)/../../../../../../automake/local.am diff --git a/c/src/lib/libcpu/sh/sh7032/configure.in b/c/src/lib/libcpu/sh/sh7032/configure.in index af39508c83..d2bdaa000d 100644 --- a/c/src/lib/libcpu/sh/sh7032/configure.in +++ b/c/src/lib/libcpu/sh/sh7032/configure.in @@ -29,7 +29,6 @@ RTEMS_CHECK_BSP_CACHE(RTEMS_BSP) # Explicitly list all Makefiles here AC_OUTPUT( Makefile -null/Makefile clock/Makefile delay/Makefile include/Makefile diff --git a/c/src/lib/libcpu/sh/sh7032/include/Makefile.am b/c/src/lib/libcpu/sh/sh7032/include/Makefile.am index d28120ce9f..77cb8b5b59 100644 --- a/c/src/lib/libcpu/sh/sh7032/include/Makefile.am +++ b/c/src/lib/libcpu/sh/sh7032/include/Makefile.am @@ -4,7 +4,7 @@ AUTOMAKE_OPTIONS = foreign 1.4 -H_FILES = null.h sci.h sh7_pfc.h sh7_sci.h +H_FILES = sci.h sh7_pfc.h sh7_sci.h SCORE_H_FILES = ispsh7032.h iosh7032.h # NOTE: Unlike other CPUS, we install into a subdirectory to avoid @@ -25,6 +25,6 @@ TMPINSTALL_FILES += $(PROJECT_INCLUDE)/sh \ all-local: $(TMPINSTALL_FILES) -EXTRA_DIST = null.h sci.h sh7_pfc.h sh7_sci.h +EXTRA_DIST = sci.h sh7_pfc.h sh7_sci.h include $(top_srcdir)/../../../../../../automake/local.am diff --git a/c/src/lib/libcpu/sh/sh7032/include/null.h b/c/src/lib/libcpu/sh/sh7032/include/null.h deleted file mode 100644 index 6c8e952d06..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/include/null.h +++ /dev/null @@ -1,71 +0,0 @@ -/* null.h - * - * Null device driver, derived from rtems' stub driver. - * - * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.OARcorp.com/rtems/license.html. - * - * $Id$ - */ - -#ifndef __NULL_DRIVER_h -#define __NULL_DRIVER_h - -#ifdef __cplusplus -extern "C" { -#endif - -#define DEVNULL_DRIVER_TABLE_ENTRY \ - { null_initialize, null_open, null_close, null_read, \ - null_write, null_control } - -#define NULL_SUCCESSFUL RTEMS_SUCCESSFUL - -rtems_device_driver null_initialize( - rtems_device_major_number, - rtems_device_minor_number, - void * -); - -rtems_device_driver null_open( - rtems_device_major_number, - rtems_device_minor_number, - void * -); - -rtems_device_driver null_close( - rtems_device_major_number, - rtems_device_minor_number, - void * -); - -rtems_device_driver null_read( - rtems_device_major_number, - rtems_device_minor_number, - void * -); - -rtems_device_driver null_write( - rtems_device_major_number, - rtems_device_minor_number, - void * -); - -rtems_device_driver null_control( - rtems_device_major_number, - rtems_device_minor_number, - void * -); - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ diff --git a/c/src/lib/libcpu/sh/sh7032/null/.cvsignore b/c/src/lib/libcpu/sh/sh7032/null/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/null/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/lib/libcpu/sh/sh7032/null/Makefile.am b/c/src/lib/libcpu/sh/sh7032/null/Makefile.am deleted file mode 100644 index 5850d9786c..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/null/Makefile.am +++ /dev/null @@ -1,31 +0,0 @@ -## -## $Id$ -## - -AUTOMAKE_OPTIONS = foreign 1.4 - -PGM = $(ARCH)/null.rel - -C_FILES = open.c close.c read.c write.c init.c cntrl.c -C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o) - -OBJS = $(C_O_FILES) - -include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg -include $(top_srcdir)/../../../../../../automake/compile.am -include $(top_srcdir)/../../../../../../automake/lib.am - -# -# (OPTIONAL) Add local stuff here using += -# - -$(PGM): $(OBJS) - $(make-rel) - -all-local: $(ARCH) $(OBJS) $(PGM) - -.PRECIOUS: $(PGM) - -EXTRA_DIST = close.c cntrl.c init.c open.c read.c write.c - -include $(top_srcdir)/../../../../../../automake/local.am diff --git a/c/src/lib/libcpu/sh/sh7032/null/close.c b/c/src/lib/libcpu/sh/sh7032/null/close.c deleted file mode 100644 index 49ec126008..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/null/close.c +++ /dev/null @@ -1,37 +0,0 @@ -/* null_close - * - * This routine is the null device driver close routine. - * - * Derived from rtems' stub driver. - * - * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) - * - * Input parameters: - * major - device major number - * minor - device minor number - * pargb - pointer to close parameter block - * - * Output parameters: - * rval - NULL_SUCCESSFUL - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.OARcorp.com/rtems/license.html. - * - * $Id$ - */ - -#include <rtems.h> -#include <sh/null.h> - -rtems_device_driver null_close( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - return NULL_SUCCESSFUL; -} diff --git a/c/src/lib/libcpu/sh/sh7032/null/cntrl.c b/c/src/lib/libcpu/sh/sh7032/null/cntrl.c deleted file mode 100644 index 308685523e..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/null/cntrl.c +++ /dev/null @@ -1,37 +0,0 @@ -/* null_control - * - * This routine is the null device driver control routine. - * - * Derived from rtems' stub driver. - * - * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) - * - * Input parameters: - * major - device major number - * minor - device minor number - * pargp - pointer to cntrl parameter block - * - * Output parameters: - * rval - NULL_SUCCESSFUL - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.OARcorp.com/rtems/license.html. - * - * $Id$ - */ - -#include <rtems.h> -#include <sh/null.h> - -rtems_device_driver null_control( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - return NULL_SUCCESSFUL; -} diff --git a/c/src/lib/libcpu/sh/sh7032/null/init.c b/c/src/lib/libcpu/sh/sh7032/null/init.c deleted file mode 100644 index 653430f31c..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/null/init.c +++ /dev/null @@ -1,52 +0,0 @@ -/* null_initialize - * - * This routine is the null device driver init routine. - * - * Derived from rtems' stub driver. - * - * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) - * - * Input parameters: - * major - device major number - * minor - device minor number - * pargp - pointer to parameter block - * - * Output parameters: - * rval - NULL_SUCCESSFUL - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.OARcorp.com/rtems/license.html. - * - * $Id$ - */ - -#include <rtems.h> -#include <sh/null.h> - -rtems_unsigned32 NULL_major; - -rtems_device_driver null_initialize( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - rtems_device_driver status ; - - status = rtems_io_register_name( - "/dev/null", - major, - (rtems_device_minor_number) 0 - ); - - if (status != RTEMS_SUCCESSFUL) - rtems_fatal_error_occurred(status); - - NULL_major = major; - - return RTEMS_SUCCESSFUL; -} diff --git a/c/src/lib/libcpu/sh/sh7032/null/open.c b/c/src/lib/libcpu/sh/sh7032/null/open.c deleted file mode 100644 index 43a9b22667..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/null/open.c +++ /dev/null @@ -1,37 +0,0 @@ -/* null_open - * - * This routine is the null device driver open routine. - * - * Derived from rtems' stub driver. - * - * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) - * - * Input parameters: - * major - device major number - * minor - device minor number - * pargb - pointer to open parameter block - * - * Output parameters: - * rval - NULL_SUCCESSFUL - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.OARcorp.com/rtems/license.html. - * - * $Id$ - */ - -#include <rtems.h> -#include <sh/null.h> - -rtems_device_driver null_open( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - return NULL_SUCCESSFUL; -} diff --git a/c/src/lib/libcpu/sh/sh7032/null/read.c b/c/src/lib/libcpu/sh/sh7032/null/read.c deleted file mode 100644 index 4c463b4b49..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/null/read.c +++ /dev/null @@ -1,37 +0,0 @@ -/* null_read - * - * This routine is the null device driver read routine. - * - * Derived from rtems' stub driver. - * - * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) - * - * Input parameters: - * major - device major number - * minor - device minor number - * pargp - pointer to read parameter block - * - * Output parameters: - * rval - NULL_SUCCESSFUL - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.OARcorp.com/rtems/license.html. - * - * $Id$ - */ - -#include <rtems.h> -#include <sh/null.h> - -rtems_device_driver null_read( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - return NULL_SUCCESSFUL; -} diff --git a/c/src/lib/libcpu/sh/sh7032/null/write.c b/c/src/lib/libcpu/sh/sh7032/null/write.c deleted file mode 100644 index bdedb5d451..0000000000 --- a/c/src/lib/libcpu/sh/sh7032/null/write.c +++ /dev/null @@ -1,43 +0,0 @@ -/* null_write - * - * This routine is the null device driver write routine. - * - * Derived from rtems' stub driver. - * - * Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) - * - * Input parameters: - * major - device major number - * minor - device minor number - * pargp - pointer to write parameter block - * - * Output parameters: - * rval - NULL_SUCCESSFUL - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.OARcorp.com/rtems/license.html. - * - * $Id$ - */ - -#include <rtems.h> -#include <rtems/libio.h> - -#include <sh/null.h> - -rtems_device_driver null_write( - rtems_device_major_number major, - rtems_device_minor_number minor, - void *pargp -) -{ - rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp ; - - rw_args->bytes_moved = rw_args->count ; - - return NULL_SUCCESSFUL; -} |