diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-25 10:33:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-07-26 11:55:46 +0200 |
commit | 0b9f472116eea06f17f4b481918b5d723b40cdd0 (patch) | |
tree | 8e910ff412a31c428ac379f904fdeac1fb6d9efe /cpukit/score/include/rtems/score/mpciimpl.h | |
parent | score: Create mpci implementation header (diff) | |
download | rtems-0b9f472116eea06f17f4b481918b5d723b40cdd0.tar.bz2 |
score: Move mppkt implementation into mpciimpl.h
Diffstat (limited to 'cpukit/score/include/rtems/score/mpciimpl.h')
-rw-r--r-- | cpukit/score/include/rtems/score/mpciimpl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/mpciimpl.h b/cpukit/score/include/rtems/score/mpciimpl.h index 29a78c10ae..37eb41257e 100644 --- a/cpukit/score/include/rtems/score/mpciimpl.h +++ b/cpukit/score/include/rtems/score/mpciimpl.h @@ -327,6 +327,21 @@ void _MPCI_Internal_packets_Process_packet ( */ MPCI_Internal_packet *_MPCI_Internal_packets_Get_packet ( void ); +/** + * This function returns true if the the_packet_class is valid, + * and false otherwise. + * + * @note Check for lower bounds (MP_PACKET_CLASSES_FIRST ) is unnecessary + * because this enum starts at lower bound of zero. + */ + +RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_valid_packet_class ( + MP_packet_Classes the_packet_class +) +{ + return ( the_packet_class <= MP_PACKET_CLASSES_LAST ); +} + /**@}*/ #ifdef __cplusplus |