Subversion Repositories HelenOS

Rev

Rev 2089 | Rev 2725 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 2122
Line 95... Line 95...
95
 
95
 
96
#define frame_alloc(order, flags)       \
96
#define frame_alloc(order, flags)       \
97
    frame_alloc_generic(order, flags, NULL)
97
    frame_alloc_generic(order, flags, NULL)
98
 
98
 
99
extern void frame_init(void);
99
extern void frame_init(void);
100
extern void *frame_alloc_generic(uint8_t order, int flags, int *pzone);
100
extern void *frame_alloc_generic(uint8_t order, int flags, unsigned int *pzone);
101
extern void frame_free(uintptr_t frame);
101
extern void frame_free(uintptr_t frame);
102
extern void frame_reference_add(pfn_t pfn);
102
extern void frame_reference_add(pfn_t pfn);
103
 
103
 
104
extern int zone_create(pfn_t start, count_t count, pfn_t confframe, int flags);
104
extern int zone_create(pfn_t start, count_t count, pfn_t confframe, int flags);
105
void *frame_get_parent(pfn_t frame, int hint);
105
void *frame_get_parent(pfn_t frame, unsigned int hint);
106
void frame_set_parent(pfn_t frame, void *data, int hint);
106
void frame_set_parent(pfn_t frame, void *data, unsigned int hint);
107
void frame_mark_unavailable(pfn_t start, count_t count);
107
void frame_mark_unavailable(pfn_t start, count_t count);
108
uintptr_t zone_conf_size(count_t count);
108
uintptr_t zone_conf_size(count_t count);
109
void zone_merge(int z1, int z2);
109
void zone_merge(unsigned int z1, unsigned int z2);
110
void zone_merge_all(void);
110
void zone_merge_all(void);
111
 
111
 
112
/*
112
/*
113
 * Console functions
113
 * Console functions
114
 */
114
 */
115
extern void zone_print_list(void);
115
extern void zone_print_list(void);
116
void zone_print_one(int znum);
116
void zone_print_one(unsigned int znum);
117
 
117
 
118
#endif
118
#endif
119
 
119
 
120
/** @}
120
/** @}
121
 */
121
 */