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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libc/] [assoc.h] - Blame information for rev 773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
2
 *
3
 *  Rtems associativity routines.  Mainly used to convert a value from
4
 *  one space to another (eg: our errno's to host errno's and v.v)
5
 *
6
 *
7
 *  $Id: assoc.h,v 1.2 2001-09-27 12:01:15 chris Exp $
8
 */
9
 
10
#ifndef _INCLUDE_ASSOC_H
11
#define _INCLUDE_ASSOC_H
12
 
13
typedef struct {
14
    const char   *name;
15
    unsigned32   local_value;
16
    unsigned32   remote_value;
17
} rtems_assoc_t;
18
 
19
/*
20
 * Flag/marker for optional default value in each table
21
 */
22
 
23
#define RTEMS_ASSOC_DEFAULT_NAME "(default)"
24
 
25
const rtems_assoc_t *rtems_assoc_ptr_by_name(const rtems_assoc_t *, const char *);
26
const rtems_assoc_t *rtems_assoc_ptr_by_value(const rtems_assoc_t *, unsigned32);
27
const rtems_assoc_t *rtems_assoc_ptr_by_remote(const rtems_assoc_t *, unsigned32);
28
 
29
unsigned32   rtems_assoc_remote_by_local(const rtems_assoc_t *, unsigned32);
30
unsigned32   rtems_assoc_local_by_remote(const rtems_assoc_t *, unsigned32);
31
unsigned32   rtems_assoc_remote_by_name(const rtems_assoc_t *, const char *);
32
unsigned32   rtems_assoc_local_by_name(const rtems_assoc_t *, const char *);
33
const char  *rtems_assoc_name_by_local(const rtems_assoc_t *, unsigned32);
34
const char  *rtems_assoc_name_by_remote(const rtems_assoc_t *, unsigned32);
35
 
36
unsigned32   rtems_assoc_remote_by_local_bitfield(const rtems_assoc_t *, unsigned32);
37
char  *rtems_assoc_name_by_local_bitfield(const rtems_assoc_t *, unsigned32, char *);
38
char  *rtems_assoc_name_by_remote_bitfield(const rtems_assoc_t *, unsigned32, char *);
39
unsigned32   rtems_assoc_local_by_remote_bitfield(const rtems_assoc_t *, unsigned32);
40
 
41
 
42
#endif /* ! _INCLUDE_ASSOC_H */

powered by: WebSVN 2.1.0

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