source: rtems/cpukit/libcsupport/include/rtems/assoc.h @ d2b4fcd

4.104.114.84.95
Last change on this file since d2b4fcd was 4d3017a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/02/04 at 18:04:55

Add doxygen preamble.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file rtems/assoc.h
3 */
4
5/*
6 *
7 *  Rtems associativity routines.  Mainly used to convert a value from
8 *  one space to another (eg: our errno's to host errno's and v.v)
9 *
10 *
11 *  $Id$
12 */
13
14#ifndef _INCLUDE_ASSOC_H
15#define _INCLUDE_ASSOC_H
16
17typedef struct {
18    const char   *name;
19    uint32_t     local_value;
20    uint32_t     remote_value;
21} rtems_assoc_t;
22
23/*
24 * Flag/marker for optional default value in each table
25 */
26
27#define RTEMS_ASSOC_DEFAULT_NAME "(default)"
28
29const rtems_assoc_t *rtems_assoc_ptr_by_name(const rtems_assoc_t *, const char *);
30const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, uint32_t  );
31const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, uint32_t  );
32
33uint32_t     rtems_assoc_remote_by_local(const rtems_assoc_t *, uint32_t  );
34uint32_t     rtems_assoc_local_by_remote(const rtems_assoc_t *, uint32_t  );
35uint32_t     rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *);
36uint32_t     rtems_assoc_local_by_name(const rtems_assoc_t *, const char *);
37const char  *rtems_assoc_name_by_local(const rtems_assoc_t *, uint32_t  );
38const char  *rtems_assoc_name_by_remote(const rtems_assoc_t *, uint32_t  );
39
40uint32_t     rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, uint32_t  );
41char  *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, uint32_t  , char *);
42char  *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, uint32_t  , char *);
43uint32_t     rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, uint32_t  );
44
45
46#endif /* ! _INCLUDE_ASSOC_H */
Note: See TracBrowser for help on using the repository browser.