comparison src/nucleus/pm_extr.h @ 0:4e78acac3d88

src/{condat,cs,gpf,nucleus}: import from Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:23:26 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4e78acac3d88
1 /*************************************************************************/
2 /* */
3 /* Copyright Mentor Graphics Corporation 2002 */
4 /* All Rights Reserved. */
5 /* */
6 /* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS */
7 /* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS */
8 /* SUBJECT TO LICENSE TERMS. */
9 /* */
10 /*************************************************************************/
11
12 /*************************************************************************/
13 /* */
14 /* FILE NAME VERSION */
15 /* */
16 /* pm_extr.h Nucleus PLUS 1.14 */
17 /* */
18 /* COMPONENT */
19 /* */
20 /* PM - Partition Memory Management */
21 /* */
22 /* DESCRIPTION */
23 /* */
24 /* This file contains function prototypes of all functions */
25 /* accessible to other components. */
26 /* */
27 /* DATA STRUCTURES */
28 /* */
29 /* None */
30 /* */
31 /* FUNCTIONS */
32 /* */
33 /* None */
34 /* */
35 /* DEPENDENCIES */
36 /* */
37 /* pm_defs.h Partition Management const. */
38 /* */
39 /* HISTORY */
40 /* */
41 /* DATE REMARKS */
42 /* */
43 /* 03-01-1993 Created initial version 1.0 */
44 /* 04-19-1993 Verified version 1.0 */
45 /* 03-01-1994 Moved include files outside of */
46 /* the file #ifndef to allow the */
47 /* use of actual data structures, */
48 /* modified function prototypes, */
49 /* resulting in version 1.1 */
50 /* */
51 /* 03-18-1994 Verified version 1.1 */
52 /* 04-17-1996 updated to version 1.2 */
53 /* 03-24-1998 Released version 1.3 */
54 /* 03-26-1999 Released 1.11m (new release */
55 /* numbering scheme) */
56 /* 04-17-2002 Released version 1.13m */
57 /* 11-07-2002 Released version 1.14 */
58 /*************************************************************************/
59
60 #include "pm_defs.h" /* Include PM constants */
61
62
63 /* Check to see if the file has been included already. */
64
65 #ifndef PM_EXTR
66 #define PM_EXTR
67
68
69 /* Initialization functions. */
70
71 VOID PMI_Initialize(VOID);
72
73
74 /* Core error checking functions. */
75
76 STATUS PMCE_Create_Partition_Pool(NU_PARTITION_POOL *pool_ptr,
77 CHAR *name, VOID *start_address, UNSIGNED pool_size,
78 UNSIGNED partition_size, OPTION suspend_type);
79 STATUS PMCE_Delete_Partition_Pool(NU_PARTITION_POOL *pool_ptr);
80 STATUS PMCE_Allocate_Partition(NU_PARTITION_POOL *pool_ptr,
81 VOID **return_pointer, UNSIGNED suspend);
82 STATUS PMCE_Deallocate_Partition(VOID *partition);
83
84
85 /* Core processing functions. */
86
87 STATUS PMC_Create_Partition_Pool(NU_PARTITION_POOL *pool_ptr,
88 CHAR *name, VOID *start_address, UNSIGNED pool_size,
89 UNSIGNED partition_size, OPTION suspend_type);
90 STATUS PMC_Delete_Partition_Pool(NU_PARTITION_POOL *pool_ptr);
91 STATUS PMC_Allocate_Partition(NU_PARTITION_POOL *pool_ptr,
92 VOID **return_pointer, UNSIGNED suspend);
93 STATUS PMC_Deallocate_Partition(VOID *partition);
94
95
96 /* Information retrieval functions. */
97
98 UNSIGNED PMF_Established_Partition_Pools(VOID);
99 STATUS PMF_Partition_Pool_Information(NU_PARTITION_POOL *pool_ptr,
100 CHAR *name, VOID **start_address, UNSIGNED *pool_size,
101 UNSIGNED *partition_size, UNSIGNED *available,
102 UNSIGNED *allocated, OPTION *suspend_type,
103 UNSIGNED *tasks_waiting, NU_TASK **first_task);
104 UNSIGNED PMF_Partition_Pool_Pointers(NU_PARTITION_POOL **pointer_list,
105 UNSIGNED maximum_pointers);
106
107 #endif
108
109
110
111