diff options
Diffstat (limited to 'c/src/lib/libcpu/hppa1.1/include')
-rw-r--r-- | c/src/lib/libcpu/hppa1.1/include/.cvsignore | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/hppa1.1/include/Makefile.am | 26 | ||||
-rw-r--r-- | c/src/lib/libcpu/hppa1.1/include/runway.h | 37 | ||||
-rw-r--r-- | c/src/lib/libcpu/hppa1.1/include/semaphore.h | 70 |
4 files changed, 0 insertions, 135 deletions
diff --git a/c/src/lib/libcpu/hppa1.1/include/.cvsignore b/c/src/lib/libcpu/hppa1.1/include/.cvsignore deleted file mode 100644 index 282522db03..0000000000 --- a/c/src/lib/libcpu/hppa1.1/include/.cvsignore +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -Makefile.in diff --git a/c/src/lib/libcpu/hppa1.1/include/Makefile.am b/c/src/lib/libcpu/hppa1.1/include/Makefile.am deleted file mode 100644 index 1026716d4d..0000000000 --- a/c/src/lib/libcpu/hppa1.1/include/Makefile.am +++ /dev/null @@ -1,26 +0,0 @@ -## -## $Id$ -## - - -include_hppa1_1dir = $(includedir)/hppa1.1 - -include_hppa1_1_HEADERS = runway.h semaphore.h - -# NOTE: Unlike other CPUS, we install into a subdirectory to avoid -# file name conflicts - -$(PROJECT_INCLUDE)/hppa1.1: - $(mkinstalldirs) $@ - -$(PROJECT_INCLUDE)/hppa1.1/%.h: %.h - $(INSTALL_DATA) $< $@ - -PREINSTALL_FILES = $(PROJECT_INCLUDE)/hppa1.1 \ - $(include_hppa1_1_HEADERS:%=$(PROJECT_INCLUDE)/hppa1.1/%) - -all-local: $(TMPINSTALL_FILES) - -EXTRA_DIST = runway.h semaphore.h - -include $(top_srcdir)/../../../automake/local.am diff --git a/c/src/lib/libcpu/hppa1.1/include/runway.h b/c/src/lib/libcpu/hppa1.1/include/runway.h deleted file mode 100644 index 41aafe26ef..0000000000 --- a/c/src/lib/libcpu/hppa1.1/include/runway.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * File: $RCSfile$ - * Project: PixelFlow - * Created: 94/11/29 - * RespEngr: tony bennett - * Revision: $Revision$ - * Last Mod: $Date$ - * - * Description: - * definitions specific to the runway bus - * - * TODO: - * Add lots more. - * - * $Id$ - */ - -#ifndef _INCLUDE_RUNWAY_H -#define _INCLUDE_RUNWAY_H - -#ifdef __cplusplus -extern "C" { -#endif - -#define HPPA_RUNWAY_PROC_HPA_BASE ((void *) 0xFFFA0000) - -/* given a processor number, where is its HPA? */ -#define HPPA_RUNWAY_HPA(cpu) \ - ((rtems_unsigned32) (HPPA_RUNWAY_PROC_HPA_BASE + ((cpu) * 0x2000))) - -#define HPPA_RUNWAY_REG_IO_EIR_OFFSET 0x000 - -#ifdef __cplusplus -} -#endif - -#endif /* ! _INCLUDE_RUNWAY_H */ diff --git a/c/src/lib/libcpu/hppa1.1/include/semaphore.h b/c/src/lib/libcpu/hppa1.1/include/semaphore.h deleted file mode 100644 index bb3fe5459c..0000000000 --- a/c/src/lib/libcpu/hppa1.1/include/semaphore.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Description: - * HPPA fast spinlock semaphores based on LDCWX instruction. - * These semaphores are not known to RTEMS. - * - * TODO: - * - * COPYRIGHT (c) 1994,95 by Division Incorporated - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _INCLUDE_HPPA1_1_SEMAPHORE_H -#define _INCLUDE_HPPA1_1_SEMAPHORE_H - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * This structure has hardware requirements. - * LDCWX opcode requires 16byte alignment for the lock - * 'lock' must be first member of structure. - */ - -#define SEM_ALIGN 16 - -typedef volatile struct { - - rtems_unsigned32 lock __attribute__ ((aligned (SEM_ALIGN))); - - rtems_unsigned32 flags; - - void *owner_tcb; /* for debug/commentary only */ - - rtems_unsigned32 user; /* for use by user */ - -} hppa_semaphore_t; - -/* - * Values for flags - */ - -#define HPPA_SEM_IN_USE 0x0001 /* semaphore owned by somebody */ -#define HPPA_SEM_NO_SPIN 0x0002 /* don't spin if unavailable */ -#define HPPA_SEM_INITIALLY_FREE 0x0004 /* init it to be free */ - -/* - * Caller specifiable flags - */ - -#define HPPA_SEM_CALLER_FLAGS (HPPA_SEM_NO_SPIN | HPPA_SEM_INITIALLY_FREE) - -void hppa_semaphore_pool_initialize(void *pool_base, int pool_size); - -rtems_unsigned32 hppa_semaphore_acquire(hppa_semaphore_t *sp, int flag); - -void hppa_semaphore_release(hppa_semaphore_t *sp); - -hppa_semaphore_t *hppa_semaphore_allocate(rtems_unsigned32 which, int flag); - -#ifdef __cplusplus -} -#endif - -#endif /* ! _INCLUDE_SEMAPHORE_H */ |