mbgtools-lx  4.2.8
rsrc_lx.h
Go to the documentation of this file.
1 
2 /**************************************************************************
3  *
4  * $Id: rsrc_lx.h 1.6 2018/07/16 13:00:50 martin REL_M $
5  *
6  * Copyright (c) Meinberg Funkuhren, Bad Pyrmont, Germany
7  *
8  * Description:
9  * Definitions and prototypes for rsrc_lx.c.
10  *
11  * -----------------------------------------------------------------------
12  * $Log: rsrc_lx.h $
13  * Revision 1.6 2018/07/16 13:00:50 martin
14  * Removed obsolete macros.
15  * Updated function prototypes.
16  * Revision 1.5 2017/05/10 15:26:52 martin
17  * Tiny cleanup.
18  * Revision 1.4 2008/12/05 12:02:28 martin
19  * Updated function prototypes.
20  * Revision 1.3 2006/07/07 12:14:25 martin
21  * Include mbg_lx.h to have modversions, if required.
22  * Revision 1.2 2001/03/05 16:27:57 MARTIN
23  * New macros to make function parameters match.
24  * Removed obsolete function prototypes.
25  *
26  **************************************************************************/
27 
28 #ifndef _RSRC_LX_H
29 #define _RSRC_LX_H
30 
31 
32 /* Other headers to be included */
33 
34 #include <mbg_lx.h>
35 #include <rsrc.h>
36 #include <words.h>
37 
38 #ifdef _RSRC_LX
39  #define _ext
40 #else
41  #define _ext extern
42 #endif
43 
44 
45 /* Start of header body */
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 
52 /* ----- function prototypes begin ----- */
53 
54 /* This section was generated automatically */
55 /* by MAKEHDR, do not remove the comments. */
56 
65  int rsrc_alloc_ports( ulong port, ulong n ) ;
66 
73  void rsrc_dealloc_ports( ulong port, ulong n ) ;
74 
83  int rsrc_alloc_mem( ulong start, ulong len ) ;
84 
91  void rsrc_dealloc_mem( ulong start, ulong len ) ;
92 
93 
94 /* ----- function prototypes end ----- */
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 
101 /* End of header body */
102 
103 #undef _ext
104 
105 #endif /* _RSRC_LX_H */
int rsrc_alloc_mem(ulong start, ulong len)
Try to allocate a memory resource range.
Definition: rsrc_lx.c:104
void rsrc_dealloc_ports(ulong port, ulong n)
Release an I/O port resource range which has been allocated before.
Definition: rsrc_lx.c:85
void rsrc_dealloc_mem(ulong start, ulong len)
Release a memory resource range which has been allocated before.
Definition: rsrc_lx.c:131
unsigned long ulong
Definition: words.h:292
int rsrc_alloc_ports(ulong port, ulong n)
Try to allocate an I/O port resource range.
Definition: rsrc_lx.c:60