OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [inline/] [rtems/] [score/] [mppkt.inl] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  inline/mppkt.inl
2
 *
3
 *  This package is the implementation of the Packet Handler
4
 *  routines which are inlined.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: mppkt.inl,v 1.2 2001-09-27 11:59:34 chris Exp $
14
 */
15
 
16
#ifndef __INLINE_MP_PACKET_inl
17
#define __INLINE_MP_PACKET_inl
18
 
19
/*PAGE
20
 *
21
 *  _Mp_packet_Is_valid_packet_class
22
 *
23
 *  DESCRIPTION:
24
 *
25
 *  This function returns TRUE if the the_packet_class is valid,
26
 *  and FALSE otherwise.
27
 *
28
 *  NOTE: Check for lower bounds (MP_PACKET_CLASSES_FIRST ) is unnecessary
29
 *        because this enum starts at lower bound of zero.
30
 */
31
 
32
RTEMS_INLINE_ROUTINE boolean _Mp_packet_Is_valid_packet_class (
33
  MP_packet_Classes the_packet_class
34
)
35
{
36
  return ( the_packet_class <= MP_PACKET_CLASSES_LAST );
37
}
38
 
39
/*PAGE
40
 *
41
 *  _Mp_packet_Is_null
42
 *
43
 *  DESCRIPTION:
44
 *
45
 *  This function returns TRUE if the the_packet_class is null,
46
 *  and FALSE otherwise.
47
 */
48
 
49
RTEMS_INLINE_ROUTINE boolean _Mp_packet_Is_null (
50
  MP_packet_Prefix   *the_packet
51
)
52
{
53
  return the_packet == NULL;
54
}
55
 
56
#endif
57
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.