xref: /haiku/src/add-ons/kernel/bus_managers/firewire/util.h (revision 4535495d80c86e19e2610e7444a4fcefe3e0f8e6)
1bb5ea4ebSJérôme Duval /* Realtek RTL8169 Family Driver
2bb5ea4ebSJérôme Duval  * Copyright (C) 2004 Marcus Overhagen <marcus@overhagen.de>. All rights reserved.
3bb5ea4ebSJérôme Duval  *
4bb5ea4ebSJérôme Duval  * Permission to use, copy, modify and distribute this software and its
5bb5ea4ebSJérôme Duval  * documentation for any purpose and without fee is hereby granted, provided
6bb5ea4ebSJérôme Duval  * that the above copyright notice appear in all copies, and that both the
7bb5ea4ebSJérôme Duval  * copyright notice and this permission notice appear in supporting documentation.
8bb5ea4ebSJérôme Duval  *
9bb5ea4ebSJérôme Duval  * Marcus Overhagen makes no representations about the suitability of this software
10bb5ea4ebSJérôme Duval  * for any purpose. It is provided "as is" without express or implied warranty.
11bb5ea4ebSJérôme Duval  *
12bb5ea4ebSJérôme Duval  * MARCUS OVERHAGEN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
13bb5ea4ebSJérôme Duval  * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL MARCUS
14bb5ea4ebSJérôme Duval  * OVERHAGEN BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
15bb5ea4ebSJérôme Duval  * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16bb5ea4ebSJérôme Duval  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
17bb5ea4ebSJérôme Duval  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18bb5ea4ebSJérôme Duval  */
19bb5ea4ebSJérôme Duval #ifndef __UTIL_H
20bb5ea4ebSJérôme Duval #define __UTIL_H
21bb5ea4ebSJérôme Duval 
22*4535495dSIngo Weinhold 
23*4535495dSIngo Weinhold #include <sys/cdefs.h>
24*4535495dSIngo Weinhold 
25bb5ea4ebSJérôme Duval #include <OS.h>
26bb5ea4ebSJérôme Duval 
27*4535495dSIngo Weinhold 
28*4535495dSIngo Weinhold __BEGIN_DECLS
29*4535495dSIngo Weinhold 
30bb5ea4ebSJérôme Duval area_id alloc_mem(void **virt, void **phy, size_t size, uint32 protection, const char *name);
31bb5ea4ebSJérôme Duval area_id map_mem(void **virt, void *phy, size_t size, uint32 protection, const char *name);
32bb5ea4ebSJérôme Duval 
33*4535495dSIngo Weinhold __END_DECLS
34*4535495dSIngo Weinhold 
35*4535495dSIngo Weinhold 
36bb5ea4ebSJérôme Duval #endif
37