-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmat.h
58 lines (45 loc) · 1.46 KB
/
mat.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
/***************************************************************************
*
* Copyright (c) 1997, 1998 Timpanogas Research Group, Inc. All Rights
* Reserved.
*
* AUTHOR : Darren Major & Merrill Teemant
* FILE : MAT.H
* DESCRIP : Multi-Processing Memory Manager for MANOS v1.0
* DATE : Febuary 17, 1998
*
*
***************************************************************************/
/********************************** header files ************************************/
/********************************** #defines ****************************************/
#define MAT_ADDRESS_INUSE 0xCCDDCC00
#define MAT_ADDRESS_FREE 0xDDFFDD00
#define MAT_VIRTUAL_ADDRESS 0
#define MAT_PHYSICAL_ADDRESS 16
#define MAT_INVALID_INDEX -3
#define MAT_INVALID_CHAPTER -4
#define MAT_RESERVED_CHAPTER -5
/********************************** typedefs*****************************************/
void LAS_get_current(
book_node **new_book);
void mat_init(void);
uint32 mat_alloc(
book_node *book,
chapter_node *ccb,
uint32 **address,
uint32 chapter_count);
uint32 mat_return(
book_node *book,
chapter_node *ccb,
uint32 *address,
uint32 chapter_count);
uint32 new_mat_lookup_ccb(
chapter_node **new_ccb,
uint32 *address);
uint32 mat_validate_ccb(
chapter_node **new_chapter,
uint32 *address);
uint32 mat_set_ccb(
book_node *book,
chapter_node *new_ccb,
uint32 *address);