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