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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [inline/] [rtems/] [score/] [mppkt.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  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
 *  mppkt.inl,v 1.10 1999/11/17 17:50:37 joel 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.