diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-23 14:38:19 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-23 15:12:55 +0200 |
commit | f6c7c57d86b58e12d372495a23e331cb81ea59ff (patch) | |
tree | 6406542e0324f94964bbce0e41d2f86c637d5f1f /cpukit/rtems/include/rtems/rtems/region.h | |
parent | rtems: Include <rtems/debug.h> in <rtems.h> (diff) | |
download | rtems-f6c7c57d86b58e12d372495a23e331cb81ea59ff.tar.bz2 |
rtems: Create region implementation header
Move implementation specific parts of region.h and region.inl into new
header file regionimpl.h. The region.h contains now only the
application visible API.
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/include/rtems/rtems/region.h | 85 |
1 files changed, 7 insertions, 78 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/region.h b/cpukit/rtems/include/rtems/rtems/region.h index a99a497b8d..ce471b8169 100644 --- a/cpukit/rtems/include/rtems/rtems/region.h +++ b/cpukit/rtems/include/rtems/rtems/region.h @@ -30,15 +30,16 @@ #ifndef _RTEMS_RTEMS_REGION_H #define _RTEMS_RTEMS_REGION_H -#include <rtems/score/object.h> -#include <rtems/score/threadq.h> -#include <rtems/score/heap.h> -#include <rtems/debug.h> #include <rtems/rtems/attr.h> #include <rtems/rtems/options.h> #include <rtems/rtems/status.h> -#include <rtems/rtems/support.h> #include <rtems/rtems/types.h> +#include <rtems/score/heap.h> +#include <rtems/score/tqdata.h> + +#ifdef __cplusplus +extern "C" { +#endif /** * @defgroup ClassicRegion Regions @@ -50,24 +51,6 @@ /**@{*/ /** - * @brief Instantiate RTEMS Region Data - * - * Region Manager -- Instantiate Data - * - * This constant is defined to extern most of the time when using - * this header file. However by defining it to nothing, the data - * declared in this header file can be instantiated. This is done - * in a single per manager file. - */ -#ifndef RTEMS_REGION_EXTERN -#define RTEMS_REGION_EXTERN extern -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/** * The following records define the control block used to manage * each region. */ @@ -85,21 +68,6 @@ typedef struct { } Region_Control; /** - * The following defines the information control block used to - * manage this class of objects. - */ -RTEMS_REGION_EXTERN Objects_Information _Region_Information; - -/** - * @brief _Region_Manager_initialization - * - * Region Manager - * - * This routine performs the initialization necessary for this manager. - */ -void _Region_Manager_initialization(void); - -/** * @brief rtems_region_create * * Region Manager @@ -322,50 +290,11 @@ rtems_status_code rtems_region_resize_segment( uintptr_t *old_size ); -#ifndef __RTEMS_APPLICATION__ -#include <rtems/rtems/region.inl> -/** - * @brief Process Region Queue - * - * This is a helper routine which is invoked any time memory is - * freed. It looks at the set of waiting tasks and attempts to - * satisfy all outstanding requests. - * - * @param[in] the_region is the the region - */ -extern void _Region_Process_queue(Region_Control *the_region); - -#endif - -#if defined(RTEMS_MULTIPROCESSING) -#include <rtems/rtems/regionmp.h> -#endif - -/** - * @brief _Region_Debug_Walk - * - * This routine is invoked to verify the integrity of a heap associated - * with the_region. - */ -#ifdef RTEMS_DEBUG - -#define _Region_Debug_Walk( _the_region, _source ) \ - do { \ - if ( rtems_debug_is_enabled( RTEMS_DEBUG_REGION ) ) \ - _Heap_Walk( &(_the_region)->Memory, _source, false ); \ - } while ( 0 ) - -#else - -#define _Region_Debug_Walk( _the_region, _source ) - -#endif +/**@}*/ #ifdef __cplusplus } #endif -/**@}*/ - #endif /* end of include file */ |