summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/prioritybitmap.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-24 13:25:57 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-26 11:55:44 +0200
commitf0bfd7d81d413f8af598f39e185c336a92602aca (patch)
tree6bc8ff3dca1d4e3db8463f11cf6e9ea7c824ab2f /cpukit/score/include/rtems/score/prioritybitmap.h
parentscore: Create scheduler implementation header (diff)
downloadrtems-f0bfd7d81d413f8af598f39e185c336a92602aca.tar.bz2
score: Create prioritybitmap implementation header
Move implementation specific parts of prioritybitmap.h and prioritybitmap.inl into new header file prioritybitmapimpl.h. The prioritybitmap.h contains now only the application visible API. Move content of bitfield.h into prioritybitmapimpl.h.
Diffstat (limited to 'cpukit/score/include/rtems/score/prioritybitmap.h')
-rw-r--r--cpukit/score/include/rtems/score/prioritybitmap.h71
1 files changed, 5 insertions, 66 deletions
diff --git a/cpukit/score/include/rtems/score/prioritybitmap.h b/cpukit/score/include/rtems/score/prioritybitmap.h
index 8e8f21ce34..cbc7151f30 100644
--- a/cpukit/score/include/rtems/score/prioritybitmap.h
+++ b/cpukit/score/include/rtems/score/prioritybitmap.h
@@ -19,45 +19,18 @@
#ifndef _RTEMS_SCORE_PRIORITYBITMAP_H
#define _RTEMS_SCORE_PRIORITYBITMAP_H
-/**
- * @defgroup ScorePriorityBitmap Bitmap Priority Thread Routines
- *
- * @ingroup Score
- */
-/**@{*/
-
-/*
- * Processor specific information.
- */
#include <rtems/score/cpu.h>
-
#ifdef __cplusplus
extern "C" {
#endif
-#include <rtems/score/priority.h>
-
-
-/*
- * The Priority_bit_map_Control variables are instantiated only
- * if using the bit map handler.
- */
-
/**
- * Each sixteen bit entry in this array is associated with one of
- * the sixteen entries in the Priority Bit map.
- */
-extern volatile Priority_bit_map_Control _Priority_Major_bit_map;
-
-/** Each bit in the Priority Bitmap indicates whether or not there are
- * threads ready at a particular priority. The mapping of
- * individual priority levels to particular bits is processor
- * dependent as is the value of each bit used to indicate that
- * threads are ready at that priority.
+ * @defgroup ScorePriorityBitmap Bitmap Priority Thread Routines
+ *
+ * @ingroup Score
*/
-extern Priority_bit_map_Control
- _Priority_Bit_map[16] CPU_STRUCTURE_ALIGNMENT;
+/**@{*/
/*
* The definition of the Priority_bit_map_Control type is CPU dependent.
@@ -81,45 +54,11 @@ typedef struct {
Priority_bit_map_Control block_minor;
} Priority_bit_map_Information;
-
-#if ( CPU_USE_GENERIC_BITFIELD_CODE == FALSE )
-/**
- * This method returns the priority bit mask for the specified major
- * or minor bit number.
- *
- * @param[in] _bit_number is the bit number for which we need a mask
- *
- * @retval the priority bit mask
- *
- * @note This may simply be a pass through to a CPU dependent implementation.
- */
-#define _Priority_Mask( _bit_number ) \
- _CPU_Priority_Mask( _bit_number )
-#endif
-
-#if ( CPU_USE_GENERIC_BITFIELD_CODE == FALSE )
-/**
- * This method returns the bit index position for the specified priority.
- *
- * @param[in] _priority is the priority for which we need the index.
- *
- * @retval This method returns the array index into the priority bit map.
- *
- * @note This may simply be a pass through to a CPU dependent implementation.
- */
-#define _Priority_Bits_index( _priority ) \
- _CPU_Priority_bits_index( _priority )
-#endif
-
-#ifndef __RTEMS_APPLICATION__
-#include <rtems/score/prioritybitmap.inl>
-#endif
+/**@}*/
#ifdef __cplusplus
}
#endif
-/**@}*/
-
#endif
/* end of include file */