xref: /haiku/headers/private/kernel/commpage.h (revision b6b0567fbd186f8ce8a0c90bdc7a7b5b4c649678)
1 /*
2  * Copyright 2007, Travis Geiselbrecht. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _KERNEL_COMMPAGE_H
6 #define _KERNEL_COMMPAGE_H
7 
8 #include <image.h>
9 #include <SupportDefs.h>
10 
11 #include <commpage_defs.h>
12 
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 status_t	commpage_init(void);
19 status_t	commpage_init_post_cpus(void);
20 void*		allocate_commpage_entry(int entry, size_t size);
21 void*		fill_commpage_entry(int entry, const void* copyFrom, size_t size);
22 image_id	get_commpage_image();
23 
24 // implemented in the architecture specific part
25 status_t	arch_commpage_init(void);
26 status_t	arch_commpage_init_post_cpus(void);
27 
28 #ifdef __cplusplus
29 }	// extern "C"
30 #endif
31 
32 #endif	/* _KERNEL_COMMPAGE_H */
33