diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-01-18 14:27:18 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2006-01-18 14:27:18 +0000 |
commit | 43b3e74ece7dcc38782a78ab191e0000d0dce6b7 (patch) | |
tree | 2f00a675c495c6ce3d358d286f26ee13cb0a661e /cpukit/posix/include/intr.h | |
parent | Regenerate (diff) | |
download | rtems-43b3e74ece7dcc38782a78ab191e0000d0dce6b7.tar.bz2 |
Remove.
Diffstat (limited to 'cpukit/posix/include/intr.h')
-rw-r--r-- | cpukit/posix/include/intr.h | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/cpukit/posix/include/intr.h b/cpukit/posix/include/intr.h deleted file mode 100644 index a6b912bf7f..0000000000 --- a/cpukit/posix/include/intr.h +++ /dev/null @@ -1,84 +0,0 @@ -/** - * @file intr.h - * - * - * XXX: It is unclear if the type "intr_t" should be defined when - * _POSIX_INTERRUPT_CONTROL is not. - */ - -/* - * $Id$ - */ - -#ifndef _INTR_H -#define _INTR_H - -#ifdef __cplusplus -extern "C" { -#endif - -#include <unistd.h> -#include <sys/types.h> -#include <sys/time.h> - -#if defined(_POSIX_INTERRUPT_CONTROL) - -/* - * 22.2 Concepts, P1003.4b/D8, p. 73 - */ - -typedef int intr_t; - -/* - * 22.3.1 Associate a User-Written ISR with an Interrupt, P1003.4b/D8, p. 74 - */ - -/* - * Return codes from an interrupt handler - */ - -#define INTR_HANDLED_NOTIFY 0 /* ISR handled this interrupt, notify */ - /* the thread that registered the */ - /* ISR that the interrupt occurred. */ -#define INTR_HANDLED_DO_NOT_NOTIFY 1 /* ISR handled this interrupt, but */ - /* do NOT perform notification. */ -#define INTR_NOT_HANDLED 2 /* ISR did not handle this interrupt, */ - /* let the next handler try. */ - -int intr_capture( - intr_t intr, - int (*intr_handler)( void *area ), - volatile void *area, - size_t areasize -); - -int intr_release( - intr_t intr, - int (*intr_handler)( void *area ) -); - -int intr_lock( - intr_t intr -); - -int intr_unlock( - intr_t intr -); - -/* - * 22.3.2 Await Interrupt Notification, P1003.4b/D8, p. 76 - */ - -int intr_timed_wait( - int flags, - const struct timespec *timeout -); - -#endif - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ |