-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.h
74 lines (60 loc) · 1.84 KB
/
index.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/***************************************************************************
*
* Copyright (c) 1997, 1998 Timpanogas Research Group, Inc. All Rights
* Reserved.
*
* AUTHOR : Darren Major & Merrill Teemant
* FILE : INDEX.H
* DESCRIP : Multi-Processing Memory Manager for MANOS v1.0
* DATE : January 26, 1998
*
*
***************************************************************************/
/********************************** header files *******************************/
/********************************** #defines *******************************/
#define GENERIC_INDEX_ALLOCATED_BITS 0x0000000F
#define GENERIC_INDEX_MASK 0x000000F0
/********************************** typedefs *******************************/
typedef struct list_node_def
{
struct list_node_def *next;
struct list_node_def *last;
uint32 *list_head;
uint32 free_flag;
} list_node;
#define NODE_FREE_STAMP 0x45455246
void new_index_list_count(
mah_node *list_head,
uint32 *list_count);
uint32 new_index_alloc(
mah_node *list_head,
uint32 processor_id,
uint32 *new_index,
quad_entry **new_entry,
void (*map_entry_routine)(),
void *map_entry_parameter);
uint32 new_index_alloc_specific(
mah_node *list_head,
uint32 p_index,
quad_entry **new_entry,
void (*map_entry_routine)(),
void *map_entry_parameter);
uint32 new_index_return(
mah_node *list_head,
uint32 processor_id,
uint32 p_index,
void (*map_entry_routine)(),
void *map_entry_parameter);
void new_list_list_count(
mah_node *list_head,
uint32 *list_count);
uint32 new_list_alloc(
mah_node *list_head,
uint32 processor_id,
uint32 **n_ptr);
uint32 new_list_alloc_specific(
uint32 *n_ptr);
void new_list_return(
mah_node *list_head,
uint32 processor_id,
uint32 *n_ptr);