diff options
Diffstat (limited to 'cpukit/itron/inline/rtems/itron')
-rw-r--r-- | cpukit/itron/inline/rtems/itron/eventflags.inl | 159 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/fmempool.inl | 166 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/intr.inl | 38 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/mbox.inl | 159 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/msgbuffer.inl | 164 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/network.inl | 38 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/port.inl | 159 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/semaphore.inl | 193 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/sysmgmt.inl | 38 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/task.inl | 189 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/time.inl | 38 | ||||
-rw-r--r-- | cpukit/itron/inline/rtems/itron/vmempool.inl | 169 |
12 files changed, 0 insertions, 1510 deletions
diff --git a/cpukit/itron/inline/rtems/itron/eventflags.inl b/cpukit/itron/inline/rtems/itron/eventflags.inl deleted file mode 100644 index 1978c806b9..0000000000 --- a/cpukit/itron/inline/rtems/itron/eventflags.inl +++ /dev/null @@ -1,159 +0,0 @@ -/** - * @file rtems/itron/eventflags.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_EVENTFLAGS_H -# error "Never use <rtems/itron/eventflags.inl> directly; include <rtems/itron/eventflags.h> instead." -#endif - -#ifndef _RTEMS_ITRON_EVENTFLAGS_INL -#define _RTEMS_ITRON_EVENTFLAGS_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * _ITRON_Eventflags_Allocate - * - * DESCRIPTION: - * - * This routine allocates the eventflags associated with the specified - * eventflags ID from the pool of inactive eventflagss. - * - * Input parameters: - * flgid - id of eventflags to allocate - * status - pointer to status variable - * - * Output parameters: - * returns - pointer to the eventflags control block - * *status - status - */ - -RTEMS_INLINE_ROUTINE ITRON_Eventflags_Control *_ITRON_Eventflags_Allocate( - ID flgid -) -{ - return (ITRON_Eventflags_Control *)_ITRON_Objects_Allocate_by_index( - &_ITRON_Eventflags_Information, - flgid, - sizeof(ITRON_Eventflags_Control) - ); -} - -/* - * _ITRON_Eventflags_Clarify_allocation_id_error - * - * This function is invoked when an object allocation ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Eventflags_Clarify_allocation_id_error( _id ) \ - _ITRON_Objects_Clarify_allocation_id_error( \ - &_ITRON_Eventflags_Information, (_id) ) - -/* - * _ITRON_Eventflags_Clarify_get_id_error - * - * This function is invoked when an object get ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Eventflags_Clarify_get_id_error( _id ) \ - _ITRON_Objects_Clarify_get_id_error( &_ITRON_Eventflags_Information, (_id) ) - -/* - * _ITRON_Eventflags_Free - * - * DESCRIPTION: - * - * This routine frees a eventflags control block to the - * inactive chain of free eventflags control blocks. - * - * Input parameters: - * the_eventflags - pointer to eventflags control block - * - * Output parameters: NONE - */ - -RTEMS_INLINE_ROUTINE void _ITRON_Eventflags_Free ( - ITRON_Eventflags_Control *the_eventflags -) -{ - _ITRON_Objects_Free( &_ITRON_Eventflags_Information, &the_eventflags->Object ); -} - -/*PAGE - * - * _ITRON_Eventflags_Get - * - * DESCRIPTION: - * - * This function maps eventflags IDs to eventflags control blocks. - * If ID corresponds to a local eventflags, then it returns - * the_eventflags control pointer which maps to ID and location - * is set to OBJECTS_LOCAL. if the eventflags ID is global and - * resides on a remote node, then location is set to OBJECTS_REMOTE, - * and the_eventflags is undefined. Otherwise, location is set - * to OBJECTS_ERROR and the_eventflags is undefined. - * - * Input parameters: - * id - ITRON eventflags ID. - * the_location - pointer to a location variable - * - * Output parameters: - * *the_location - location of the object - */ - -RTEMS_INLINE_ROUTINE ITRON_Eventflags_Control *_ITRON_Eventflags_Get ( - ID id, - Objects_Locations *location -) -{ - return (ITRON_Eventflags_Control *) - _ITRON_Objects_Get( &_ITRON_Eventflags_Information, id, location ); -} - -/*PAGE - * - * _ITRON_Eventflags_Is_null - * - * This function returns TRUE if the_eventflags is NULL and FALSE otherwise. - * - * Input parameters: - * the_eventflags - pointer to eventflags control block - * - * Output parameters: - * TRUE - if the_eventflags is NULL - * FALSE - otherwise - */ - -RTEMS_INLINE_ROUTINE bool _ITRON_Eventflags_Is_null ( - ITRON_Eventflags_Control *the_eventflags -) -{ - return ( the_eventflags == NULL ); -} - -/* - * XXX insert inline routines here - */ - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/fmempool.inl b/cpukit/itron/inline/rtems/itron/fmempool.inl deleted file mode 100644 index 5f30a399f7..0000000000 --- a/cpukit/itron/inline/rtems/itron/fmempool.inl +++ /dev/null @@ -1,166 +0,0 @@ -/** - * @file rtems/itron/fmempool.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_FMEMPOOL_H -# error "Never use <rtems/itron/fmempool.inl> directly; include <rtems/itron/fmempool.h> instead." -#endif - -#ifndef _RTEMS_ITRON_FMEMPOOL_INL -#define _RTEMS_ITRON_FMEMPOOL_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * _ITRON_Fixed_memory_pool_Allocate - * - * DESCRIPTION: - * - * This routine allocates the fixed_memory_pool associated with the specified - * fixed_memory_pool ID from the pool of inactive fixed_memory_pools. - * - * Input parameters: - * mpfid - id of fixed_memory_pool to allocate - * status - pointer to status variable - * - * Output parameters: - * returns - pointer to the fixed_memory_pool control block - * *status - status - */ - -RTEMS_INLINE_ROUTINE ITRON_Fixed_memory_pool_Control - *_ITRON_Fixed_memory_pool_Allocate( - ID mpfid -) -{ - return (ITRON_Fixed_memory_pool_Control *)_ITRON_Objects_Allocate_by_index( - &_ITRON_Fixed_memory_pool_Information, - mpfid, - sizeof(ITRON_Fixed_memory_pool_Control) - ); -} - -/* - * _ITRON_Fixed_memory_pool_Clarify_allocation_id_error - * - * This function is invoked when an object allocation ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Fixed_memory_pool_Clarify_allocation_id_error( _id ) \ - _ITRON_Objects_Clarify_allocation_id_error( \ - &_ITRON_Fixed_memory_pool_Information, (_id) ) - -/* - * _ITRON_Fixed_memory_pool_Clarify_get_id_error - * - * This function is invoked when an object get ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Fixed_memory_pool_Clarify_get_id_error( _id ) \ - _ITRON_Objects_Clarify_get_id_error( \ - &_ITRON_Fixed_memory_pool_Information, (_id) ) - -/* - * _ITRON_Fixed_memory_pool_Free - * - * DESCRIPTION: - * - * This routine frees a fixed_memory_pool control block to the - * inactive chain of free fixed_memory_pool control blocks. - * - * Input parameters: - * the_fixed_memory_pool - pointer to fixed_memory_pool control block - * - * Output parameters: NONE - */ - -RTEMS_INLINE_ROUTINE void _ITRON_Fixed_memory_pool_Free ( - ITRON_Fixed_memory_pool_Control *the_fixed_memory_pool -) -{ - _ITRON_Objects_Free( - &_ITRON_Fixed_memory_pool_Information, - &the_fixed_memory_pool->Object - ); -} - -/*PAGE - * - * _ITRON_Fixed_memory_pool_Get - * - * DESCRIPTION: - * - * This function maps fixed memory pool IDs to control blocks. - * If ID corresponds to a local fixed memory pool, then it returns - * the_fixed memory pool control pointer which maps to ID and location - * is set to OBJECTS_LOCAL. if the fixed memory pool ID is global and - * resides on a remote node, then location is set to OBJECTS_REMOTE, - * and the fixed memory pool is undefined. Otherwise, location is set - * to OBJECTS_ERROR and the fixed memory pool is undefined. - * - * Input parameters: - * id - ITRON fixed memory pool ID. - * the_location - pointer to a location variable - * - * Output parameters: - * *the_location - location of the object - */ - -RTEMS_INLINE_ROUTINE ITRON_Fixed_memory_pool_Control - *_ITRON_Fixed_memory_pool_Get ( - ID id, - Objects_Locations *location -) -{ - return (ITRON_Fixed_memory_pool_Control *) - _ITRON_Objects_Get( &_ITRON_Fixed_memory_pool_Information, id, location ); -} - -/*PAGE - * - * _ITRON_Fixed_memory_pool_Is_null - * - * This function returns TRUE if the_fixed_memory_pool is NULL - * and FALSE otherwise. - * - * Input parameters: - * the_fixed_memory_pool - pointer to fixed_memory_pool control block - * - * Output parameters: - * TRUE - if the_fixed_memory_pool is NULL - * FALSE - otherwise - */ - -RTEMS_INLINE_ROUTINE bool _ITRON_Fixed_memory_pool_Is_null ( - ITRON_Fixed_memory_pool_Control *the_fixed_memory_pool -) -{ - return ( the_fixed_memory_pool == NULL ); -} - -/* - * XXX insert inline routines here - */ - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/intr.inl b/cpukit/itron/inline/rtems/itron/intr.inl deleted file mode 100644 index 27bd5771d3..0000000000 --- a/cpukit/itron/inline/rtems/itron/intr.inl +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @file rtems/itron/intr.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_INTR_H -# error "Never use <rtems/itron/intr.inl> directly; include <rtems/itron/intr.h> instead." -#endif - -#ifndef _RTEMS_ITRON_INTR_INL -#define _RTEMS_ITRON_INTR_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * XXX insert inline routines here - */ - - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/mbox.inl b/cpukit/itron/inline/rtems/itron/mbox.inl deleted file mode 100644 index a021fe65b4..0000000000 --- a/cpukit/itron/inline/rtems/itron/mbox.inl +++ /dev/null @@ -1,159 +0,0 @@ -/** - * @file rtems/itron/mbox.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_MBOX_H -# error "Never use <rtems/itron/mbox.inl> directly; include <rtems/itron/mbox.h> instead." -#endif - -#ifndef _RTEMS_ITRON_MBOX_INL -#define _RTEMS_ITRON_MBOX_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * _ITRON_Mailbox_Allocate - * - * DESCRIPTION: - * - * This routine allocates the mailbox associated with the specified - * mailbox ID from the pool of inactive mailboxs. - * - * Input parameters: - * mbxid - id of mailbox to allocate - * status - pointer to status variable - * - * Output parameters: - * returns - pointer to the mailbox control block - * *status - status - */ - -RTEMS_INLINE_ROUTINE ITRON_Mailbox_Control *_ITRON_Mailbox_Allocate( - ID mbxid -) -{ - return (ITRON_Mailbox_Control *)_ITRON_Objects_Allocate_by_index( - &_ITRON_Mailbox_Information, - mbxid, - sizeof(ITRON_Mailbox_Control) - ); -} - -/* - * _ITRON_Mailbox_Clarify_allocation_id_error - * - * This function is invoked when an object allocation ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Mailbox_Clarify_allocation_id_error( _id ) \ - _ITRON_Objects_Clarify_allocation_id_error( \ - &_ITRON_Mailbox_Information, (_id) ) - -/* - * _ITRON_Mailbox_Clarify_get_id_error - * - * This function is invoked when an object get ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Mailbox_Clarify_get_id_error( _id ) \ - _ITRON_Objects_Clarify_get_id_error( &_ITRON_Mailbox_Information, (_id) ) - -/* - * _ITRON_Mailbox_Free - * - * DESCRIPTION: - * - * This routine frees a mailbox control block to the - * inactive chain of free mailbox control blocks. - * - * Input parameters: - * the_mailbox - pointer to mailbox control block - * - * Output parameters: NONE - */ - -RTEMS_INLINE_ROUTINE void _ITRON_Mailbox_Free ( - ITRON_Mailbox_Control *the_mailbox -) -{ - _ITRON_Objects_Free( &_ITRON_Mailbox_Information, &the_mailbox->Object ); -} - -/*PAGE - * - * _ITRON_Mailbox_Get - * - * DESCRIPTION: - * - * This function maps mailbox IDs to mailbox control blocks. - * If ID corresponds to a local mailbox, then it returns - * the_mailbox control pointer which maps to ID and location - * is set to OBJECTS_LOCAL. if the mailbox ID is global and - * resides on a remote node, then location is set to OBJECTS_REMOTE, - * and the_mailbox is undefined. Otherwise, location is set - * to OBJECTS_ERROR and the_mailbox is undefined. - * - * Input parameters: - * id - ITRON mailbox ID. - * the_location - pointer to a location variable - * - * Output parameters: - * *the_location - location of the object - */ - -RTEMS_INLINE_ROUTINE ITRON_Mailbox_Control *_ITRON_Mailbox_Get ( - ID id, - Objects_Locations *location -) -{ - return (ITRON_Mailbox_Control *) - _ITRON_Objects_Get( &_ITRON_Mailbox_Information, id, location ); -} - -/*PAGE - * - * _ITRON_Mailbox_Is_null - * - * This function returns TRUE if the_mailbox is NULL and FALSE otherwise. - * - * Input parameters: - * the_mailbox - pointer to mailbox control block - * - * Output parameters: - * TRUE - if the_mailbox is NULL - * FALSE - otherwise - */ - -RTEMS_INLINE_ROUTINE bool _ITRON_Mailbox_Is_null ( - ITRON_Mailbox_Control *the_mailbox -) -{ - return ( the_mailbox == NULL ); -} - -/* - * XXX insert inline routines here - */ - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/msgbuffer.inl b/cpukit/itron/inline/rtems/itron/msgbuffer.inl deleted file mode 100644 index 53cdea32da..0000000000 --- a/cpukit/itron/inline/rtems/itron/msgbuffer.inl +++ /dev/null @@ -1,164 +0,0 @@ -/** - * @file rtems/itron/msgbuffer.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_MSGBUFFER_H -# error "Never use <rtems/itron/msgbuffer.inl> directly; include <rtems/itron/msgbuffer.h> instead." -#endif - -#ifndef _RTEMS_ITRON_MSGBUFFER_INL -#define _RTEMS_ITRON_MSGBUFFER_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * _ITRON_Message_buffer_Allocate - * - * DESCRIPTION: - * - * This routine allocates the message buffer associated with the specified - * message buffer ID from the pool of inactive message buffers. - * - * Input parameters: - * mbfid - id of message buffer to allocate - * status - pointer to status variable - * - * Output parameters: - * returns - pointer to the message buffer control block - * *status - status - */ - -RTEMS_INLINE_ROUTINE ITRON_Message_buffer_Control - *_ITRON_Message_buffer_Allocate( - ID mbfid -) -{ - return (ITRON_Message_buffer_Control *)_ITRON_Objects_Allocate_by_index( - &_ITRON_Message_buffer_Information, - mbfid, - sizeof(ITRON_Message_buffer_Control) - ); -} - -/* - * _ITRON_Message_buffer_Clarify_allocation_id_error - * - * This function is invoked when an object allocation ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Message_buffer_Clarify_allocation_id_error( _id ) \ - _ITRON_Objects_Clarify_allocation_id_error( \ - &_ITRON_Message_buffer_Information, (_id) ) - -/* - * _ITRON_Message_buffer_Clarify_get_id_error - * - * This function is invoked when an object get ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Message_buffer_Clarify_get_id_error( _id ) \ - _ITRON_Objects_Clarify_get_id_error( &_ITRON_Message_buffer_Information, (_id) ) - -/* - * _ITRON_Message_buffer_Free - * - * DESCRIPTION: - * - * This routine frees a message buffer control block to the - * inactive chain of free message buffer control blocks. - * - * Input parameters: - * the_message_buffer - pointer to message_buffer control block - * - * Output parameters: NONE - */ - -RTEMS_INLINE_ROUTINE void _ITRON_Message_buffer_Free ( - ITRON_Message_buffer_Control *the_message_buffer -) -{ - _ITRON_Objects_Free( - &_ITRON_Message_buffer_Information, - &the_message_buffer->Object - ); -} - -/*PAGE - * - * _ITRON_Message_buffer_Get - * - * DESCRIPTION: - * - * This function maps message buffer IDs to message buffer control blocks. - * If ID corresponds to a local message buffer, then it returns - * the message buffer control pointer which maps to ID and location - * is set to OBJECTS_LOCAL. if the message buffer ID is global and - * resides on a remote node, then location is set to OBJECTS_REMOTE, - * and the message buffer is undefined. Otherwise, location is set - * to OBJECTS_ERROR and the message buffer is undefined. - * - * Input parameters: - * id - ITRON message_buffer ID. - * the_location - pointer to a location variable - * - * Output parameters: - * *the_location - location of the object - */ - -RTEMS_INLINE_ROUTINE ITRON_Message_buffer_Control *_ITRON_Message_buffer_Get ( - ID id, - Objects_Locations *location -) -{ - return (ITRON_Message_buffer_Control *) - _ITRON_Objects_Get( &_ITRON_Message_buffer_Information, id, location ); -} - -/*PAGE - * - * _ITRON_Message_buffer_Is_null - * - * This function returns TRUE if the_message_buffer is NULL - * and FALSE otherwise. - * - * Input parameters: - * the_message_buffer - pointer to message buffer control block - * - * Output parameters: - * TRUE - if the_message_buffer is NULL - * FALSE - otherwise - */ - -RTEMS_INLINE_ROUTINE bool _ITRON_Message_buffer_Is_null ( - ITRON_Message_buffer_Control *the_message_buffer -) -{ - return ( the_message_buffer == NULL ); -} - -/* - * XXX insert inline routines here - */ - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/network.inl b/cpukit/itron/inline/rtems/itron/network.inl deleted file mode 100644 index 44aff29553..0000000000 --- a/cpukit/itron/inline/rtems/itron/network.inl +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @file rtems/itron/network.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_NETWORK_H -# error "Never use <rtems/itron/network.inl> directly; include <rtems/itron/network.h> instead." -#endif - -#ifndef _RTEMS_ITRON_NETWORK_INL -#define _RTEMS_ITRON_NETWORK_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * XXX insert inline routines here - */ - - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/port.inl b/cpukit/itron/inline/rtems/itron/port.inl deleted file mode 100644 index 3670d49e73..0000000000 --- a/cpukit/itron/inline/rtems/itron/port.inl +++ /dev/null @@ -1,159 +0,0 @@ -/** - * @file rtems/itron/port.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_PORT_H -# error "Never use <rtems/itron/port.inl> directly; include <rtems/itron/port.h> instead." -#endif - -#ifndef _RTEMS_ITRON_PORT_INL -#define _RTEMS_ITRON_PORT_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * _ITRON_Port_Allocate - * - * DESCRIPTION: - * - * This routine allocates the port associated with the specified - * port ID from the pool of inactive ports. - * - * Input parameters: - * porid - id of port to allocate - * status - pointer to status variable - * - * Output parameters: - * returns - pointer to the port control block - * *status - status - */ - -RTEMS_INLINE_ROUTINE ITRON_Port_Control *_ITRON_Port_Allocate( - ID porid -) -{ - return (ITRON_Port_Control *)_ITRON_Objects_Allocate_by_index( - &_ITRON_Port_Information, - porid, - sizeof(ITRON_Port_Control) - ); -} - -/* - * _ITRON_Port_Clarify_allocation_id_error - * - * This function is invoked when an object allocation ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Port_Clarify_allocation_id_error( _id ) \ - _ITRON_Objects_Clarify_allocation_id_error( \ - &_ITRON_Port_Information, (_id) ) - -/* - * _ITRON_Port_Clarify_get_id_error - * - * This function is invoked when an object get ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Port_Clarify_get_id_error( _id ) \ - _ITRON_Objects_Clarify_get_id_error( &_ITRON_Port_Information, (_id) ) - -/* - * _ITRON_Port_Free - * - * DESCRIPTION: - * - * This routine frees a port control block to the - * inactive chain of free port control blocks. - * - * Input parameters: - * the_port - pointer to port control block - * - * Output parameters: NONE - */ - -RTEMS_INLINE_ROUTINE void _ITRON_Port_Free ( - ITRON_Port_Control *the_port -) -{ - _ITRON_Objects_Free( &_ITRON_Port_Information, &the_port->Object ); -} - -/*PAGE - * - * _ITRON_Port_Get - * - * DESCRIPTION: - * - * This function maps port IDs to port control blocks. - * If ID corresponds to a local port, then it returns - * the_port control pointer which maps to ID and location - * is set to OBJECTS_LOCAL. if the port ID is global and - * resides on a remote node, then location is set to OBJECTS_REMOTE, - * and the_port is undefined. Otherwise, location is set - * to OBJECTS_ERROR and the_port is undefined. - * - * Input parameters: - * id - ITRON port ID. - * the_location - pointer to a location variable - * - * Output parameters: - * *the_location - location of the object - */ - -RTEMS_INLINE_ROUTINE ITRON_Port_Control *_ITRON_Port_Get ( - ID id, - Objects_Locations *location -) -{ - return (ITRON_Port_Control *) - _ITRON_Objects_Get( &_ITRON_Port_Information, id, location ); -} - -/*PAGE - * - * _ITRON_Port_Is_null - * - * This function returns TRUE if the_port is NULL and FALSE otherwise. - * - * Input parameters: - * the_port - pointer to port control block - * - * Output parameters: - * TRUE - if the_port is NULL - * FALSE - otherwise - */ - -RTEMS_INLINE_ROUTINE bool _ITRON_Port_Is_null ( - ITRON_Port_Control *the_port -) -{ - return ( the_port == NULL ); -} - -/* - * XXX insert inline routines here - */ - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/semaphore.inl b/cpukit/itron/inline/rtems/itron/semaphore.inl deleted file mode 100644 index c9e21729a3..0000000000 --- a/cpukit/itron/inline/rtems/itron/semaphore.inl +++ /dev/null @@ -1,193 +0,0 @@ -/** - * @file rtems/itron/semaphore.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_SEMAPHORE_H -# error "Never use <rtems/itron/semaphore.inl> directly; include <rtems/itron/semaphore.h> instead." -#endif - -#ifndef _RTEMS_ITRON_SEMAPHORE_INL -#define _RTEMS_ITRON_SEMAPHORE_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * _ITRON_Semaphore_Allocate - * - * DESCRIPTION: - * - * This routine allocates the semaphore associated with the specified - * semaphore ID from the pool of inactive semaphores. - * - * Input parameters: - * semid - id of semaphore to allocate - * status - pointer to status variable - * - * Output parameters: - * returns - pointer to the semaphore control block - * *status - status - */ - -RTEMS_INLINE_ROUTINE ITRON_Semaphore_Control *_ITRON_Semaphore_Allocate( - ID semid -) -{ - return (ITRON_Semaphore_Control *)_ITRON_Objects_Allocate_by_index( - &_ITRON_Semaphore_Information, - semid, - sizeof(ITRON_Semaphore_Control) - ); -} - -/* - * _ITRON_Semaphore_Clarify_allocation_id_error - * - * This function is invoked when an object allocation ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Semaphore_Clarify_allocation_id_error( _id ) \ - _ITRON_Objects_Clarify_allocation_id_error( \ - &_ITRON_Semaphore_Information, (_id) ) - -/* - * _ITRON_Semaphore_Clarify_get_id_error - * - * This function is invoked when an object get ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Semaphore_Clarify_get_id_error( _id ) \ - _ITRON_Objects_Clarify_get_id_error( &_ITRON_Semaphore_Information, (_id) ) - -/* - * _ITRON_Semaphore_Free - * - * DESCRIPTION: - * - * This routine frees a semaphore control block to the - * inactive chain of free semaphore control blocks. - * - * Input parameters: - * the_semaphore - pointer to semaphore control block - * - * Output parameters: NONE - */ - -RTEMS_INLINE_ROUTINE void _ITRON_Semaphore_Free ( - ITRON_Semaphore_Control *the_semaphore -) -{ - _ITRON_Objects_Free( &_ITRON_Semaphore_Information, &the_semaphore->Object ); -} - -/*PAGE - * - * _ITRON_Semaphore_Get - * - * DESCRIPTION: - * - * This function maps semaphore IDs to semaphore control blocks. - * If ID corresponds to a local semaphore, then it returns - * the_semaphore control pointer which maps to ID and location - * is set to OBJECTS_LOCAL. if the semaphore ID is global and - * resides on a remote node, then location is set to OBJECTS_REMOTE, - * and the_semaphore is undefined. Otherwise, location is set - * to OBJECTS_ERROR and the_semaphore is undefined. - * - * Input parameters: - * id - ITRON semaphore ID. - * the_location - pointer to a location variable - * - * Output parameters: - * *the_location - location of the object - */ - -RTEMS_INLINE_ROUTINE ITRON_Semaphore_Control *_ITRON_Semaphore_Get ( - ID id, - Objects_Locations *location -) -{ - return (ITRON_Semaphore_Control *) - _ITRON_Objects_Get( &_ITRON_Semaphore_Information, id, location ); -} - -/*PAGE - * - * _ITRON_Semaphore_Is_null - * - * This function returns TRUE if the_semaphore is NULL and FALSE otherwise. - * - * Input parameters: - * the_semaphore - pointer to semaphore control block - * - * Output parameters: - * TRUE - if the_semaphore is NULL - * FALSE - otherwise - */ - -RTEMS_INLINE_ROUTINE bool _ITRON_Semaphore_Is_null ( - ITRON_Semaphore_Control *the_semaphore -) -{ - return ( the_semaphore == NULL ); -} - -/* - * _ITRON_Semaphore_Translate_core_semaphore_return_code - * - * This function returns a ITRON status code based on the semaphore - * status code specified. - * - * Input parameters: - * the_semaphore_status - semaphore status code to translate - * - * Output parameters: - * ITRON status code - translated ITRON status code - * - */ - -RTEMS_INLINE_ROUTINE ER _ITRON_Semaphore_Translate_core_semaphore_return_code ( - uint32_t the_semaphore_status -) -{ -/* XXX need to be able to return "E_RLWAI" */ - switch ( the_semaphore_status ) { - case CORE_SEMAPHORE_STATUS_SUCCESSFUL: - return E_OK; - case CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT: - return E_TMOUT; - case CORE_SEMAPHORE_WAS_DELETED: - return E_DLT; - case CORE_SEMAPHORE_TIMEOUT: - return E_TMOUT; - case CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED: - return E_QOVR; - #if defined(RTEMS_MULTIPROCESSING) - case THREAD_STATUS_PROXY_BLOCKING: - return THREAD_STATUS_PROXY_BLOCKING; - #endif - } - return E_OK; /* unreached - only to remove warnings */ -} - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/sysmgmt.inl b/cpukit/itron/inline/rtems/itron/sysmgmt.inl deleted file mode 100644 index 3972ac997a..0000000000 --- a/cpukit/itron/inline/rtems/itron/sysmgmt.inl +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @file rtems/itron/sysmgmt.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_SYSMGMT_H -# error "Never use <rtems/itron/sysmgmt.inl> directly; include <rtems/itron/sysmgmt.h> instead." -#endif - -#ifndef _RTEMS_ITRON_SYSMGMT_INL -#define _RTEMS_ITRON_SYSMGMT_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * XXX insert inline routines here - */ - - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/task.inl b/cpukit/itron/inline/rtems/itron/task.inl deleted file mode 100644 index 81b6830c04..0000000000 --- a/cpukit/itron/inline/rtems/itron/task.inl +++ /dev/null @@ -1,189 +0,0 @@ -/** - * @file rtems/itron/task.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_TASK_H -# error "Never use <rtems/itron/task.inl> directly; include <rtems/itron/task.h> instead." -#endif - -#ifndef _RTEMS_ITRON_TASK_INL -#define _RTEMS_ITRON_TASK_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * _ITRON_Task_Allocate - * - * DESCRIPTION: - * - * This routine allocates the task associated with the specified - * task ID from the pool of inactive tasks. - * - * Input parameters: - * tskid - id of task to allocate - * status - pointer to status variable - * - * Output parameters: - * returns - pointer to the task control block - * *status - status - */ - -RTEMS_INLINE_ROUTINE Thread_Control *_ITRON_Task_Allocate( - ID tskid -) -{ - return (Thread_Control *)_ITRON_Objects_Allocate_by_index( - &_ITRON_Task_Information, - tskid, - sizeof(Thread_Control) - ); -} - -/* - * _ITRON_Task_Clarify_allocation_id_error - * - * This function is invoked when an object allocation ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Task_Clarify_allocation_id_error( _id ) \ - _ITRON_Objects_Clarify_allocation_id_error( \ - &_ITRON_Task_Information, (_id) ) - -/* - * _ITRON_Task_Clarify_get_id_error - * - * This function is invoked when an object get ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Task_Clarify_get_id_error( _id ) \ - _ITRON_Objects_Clarify_get_id_error( &_ITRON_Task_Information, (_id) ) - -/* - * _ITRON_Task_Free - * - * DESCRIPTION: - * - * This routine frees a task control block to the - * inactive chain of free task control blocks. - * - * Input parameters: - * the_task - pointer to task control block - * - * Output parameters: NONE - */ - -RTEMS_INLINE_ROUTINE void _ITRON_Task_Free ( - Thread_Control *the_task -) -{ - _ITRON_Objects_Free( &_ITRON_Task_Information, &the_task->Object ); -} - -/*PAGE - * - * _ITRON_Task_Get - * - * DESCRIPTION: - * - * This function maps task IDs to task control blocks. - * If ID corresponds to a local task, then it returns - * the_task control pointer which maps to ID and location - * is set to OBJECTS_LOCAL. if the task ID is global and - * resides on a remote node, then location is set to OBJECTS_REMOTE, - * and the_task is undefined. Otherwise, location is set - * to OBJECTS_ERROR and the_task is undefined. - * - * Input parameters: - * id - ITRON task ID. - * the_location - pointer to a location variable - * - * Output parameters: - * *the_location - location of the object - */ - -RTEMS_INLINE_ROUTINE Thread_Control *_ITRON_Task_Get ( - ID id, - Objects_Locations *location -) -{ - if ( id == 0 ) { - _Thread_Disable_dispatch(); - *location = OBJECTS_LOCAL; - return _Thread_Executing; - } - - return (Thread_Control *) - _ITRON_Objects_Get( &_ITRON_Task_Information, id, location ); -} - -/*PAGE - * - * _ITRON_Task_Is_null - * - * This function returns TRUE if the_task is NULL and FALSE otherwise. - * - * Input parameters: - * the_task - pointer to task control block - * - * Output parameters: - * TRUE - if the_task is NULL - * FALSE - otherwise - */ - -RTEMS_INLINE_ROUTINE bool _ITRON_Task_Is_null ( - Thread_Control *the_task -) -{ - return ( the_task == NULL ); -} - -/* - * XXX insert inline routines here - */ - -/*PAGE - * - * _ITRON_tasks_Priority_to_Core - */ - -RTEMS_INLINE_ROUTINE Priority_Control _ITRON_Task_Priority_to_Core( - PRI ITRON_priority -) -{ - return (Priority_Control) ITRON_priority; -} - -/*PAGE - * - * _ITRON_tasks_Core_to_Priority - */ - -RTEMS_INLINE_ROUTINE PRI _ITRON_Task_Core_to_Priority( - Priority_Control core_priority -) -{ - return (PRI) core_priority; -} - - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ diff --git a/cpukit/itron/inline/rtems/itron/time.inl b/cpukit/itron/inline/rtems/itron/time.inl deleted file mode 100644 index 27893b631a..0000000000 --- a/cpukit/itron/inline/rtems/itron/time.inl +++ /dev/null @@ -1,38 +0,0 @@ -/** - * @file rtems/itron/time.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_TIME_H -# error "Never use <rtems/itron/time.inl> directly; include <rtems/itron/time.h> instead." -#endif - -#ifndef _RTEMS_ITRON_TIME_INL -#define _RTEMS_ITRON_TIME_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * XXX insert inline routines here - */ - - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - diff --git a/cpukit/itron/inline/rtems/itron/vmempool.inl b/cpukit/itron/inline/rtems/itron/vmempool.inl deleted file mode 100644 index bfd5855d39..0000000000 --- a/cpukit/itron/inline/rtems/itron/vmempool.inl +++ /dev/null @@ -1,169 +0,0 @@ -/** - * @file rtems/itron/vmempool.inl - */ - -/* - * 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.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#ifndef _RTEMS_ITRON_VMEMPOOL_H -# error "Never use <rtems/itron/vmempool.inl> directly; include <rtems/itron/vmempool.h> instead." -#endif - -#ifndef _RTEMS_ITRON_VMEMPOOL_INL -#define _RTEMS_ITRON_VMEMPOOL_INL - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * _ITRON_Variable_memory_pool_Allocate - * - * DESCRIPTION: - * - * This routine allocates the variable memory pool associated with - * the specified variable memory pool ID from the pool of inactive - * variable memory pools. - * - * Input parameters: - * mplid - id of variable memory pool to allocate - * status - pointer to status variable - * - * Output parameters: - * returns - pointer to the variable memory pool control block - * *status - status - */ - -RTEMS_INLINE_ROUTINE ITRON_Variable_memory_pool_Control - *_ITRON_Variable_memory_pool_Allocate( - ID mplid -) -{ - return (ITRON_Variable_memory_pool_Control *)_ITRON_Objects_Allocate_by_index( - &_ITRON_Variable_memory_pool_Information, - mplid, - sizeof(ITRON_Variable_memory_pool_Control) - ); -} - -/* - * _ITRON_Variable_memory_pool_Clarify_allocation_id_error - * - * This function is invoked when an object allocation ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Variable_memory_pool_Clarify_allocation_id_error( _id ) \ - _ITRON_Objects_Clarify_allocation_id_error( \ - &_ITRON_Variable_memory_pool_Information, (_id) ) - -/* - * _ITRON_Variable_memory_pool_Clarify_get_id_error - * - * This function is invoked when an object get ID error - * occurs to determine the specific ITRON error code to return. - */ - -#define _ITRON_Variable_memory_pool_Clarify_get_id_error( _id ) \ - _ITRON_Objects_Clarify_get_id_error( &_ITRON_Variable_memory_pool_Information, (_id) ) - -/* - * _ITRON_Variable_memory_pool_Free - * - * DESCRIPTION: - * - * This routine frees a variable memory pool control block to the - * inactive chain of free variable memory pool control blocks. - * - * Input parameters: - * the_variable_memory_pool - pointer to variable memory pool control block - * - * Output parameters: NONE - */ - -RTEMS_INLINE_ROUTINE void _ITRON_Variable_memory_pool_Free ( - ITRON_Variable_memory_pool_Control *the_variable_memory_pool -) -{ - _ITRON_Objects_Free( - &_ITRON_Variable_memory_pool_Information, - &the_variable_memory_pool->Object - ); -} - -/*PAGE - * - * _ITRON_Variable_memory_pool_Get - * - * DESCRIPTION: - * - * This function maps variable memory pool IDs to variable memory pool - * control blocks. If ID corresponds to a local variable memory pool, - * then it returns the variable memory pool control pointer which maps - * to ID and location is set to OBJECTS_LOCAL. if the variable memory - * pool ID is global and resides on a remote node, then location is set - * to OBJECTS_REMOTE, and the variable memory pool is undefined. Otherwise, - * location is set to OBJECTS ERROR and the variable memory pool is undefined. - * - * Input parameters: - * id - ITRON variable memory pool ID. - * the_location - pointer to a location variable - * - * Output parameters: - * *the_location - location of the object - */ - -RTEMS_INLINE_ROUTINE ITRON_Variable_memory_pool_Control - *_ITRON_Variable_memory_pool_Get ( - ID id, - Objects_Locations *location -) -{ - return (ITRON_Variable_memory_pool_Control *) _ITRON_Objects_Get( - &_ITRON_Variable_memory_pool_Information, - id, - location - ); -} - -/*PAGE - * - * _ITRON_Variable_memory_pool_Is_null - * - * This function returns TRUE if the_variable_memory_pool is NULL - * and FALSE otherwise. - * - * Input parameters: - * the_variable_memory_pool - pointer to variable memory pool control block - * - * Output parameters: - * TRUE - if the_variable_memory_pool is NULL - * FALSE - otherwise - */ - -RTEMS_INLINE_ROUTINE bool _ITRON_Variable_memory_pool_Is_null ( - ITRON_Variable_memory_pool_Control *the_variable_memory_pool -) -{ - return ( the_variable_memory_pool == NULL ); -} - -/* - * XXX insert inline routines here - */ - -#ifdef __cplusplus -} -#endif - -#endif -/* end of include file */ - |