summaryrefslogtreecommitdiffstats
path: root/sys/netatm/port.h
diff options
context:
space:
mode:
authorarr <arr@FreeBSD.org>2002-04-19 17:45:22 +0000
committerarr <arr@FreeBSD.org>2002-04-19 17:45:22 +0000
commit122c24db48374dee47cf7a553f344ff0a6aee1e9 (patch)
treec3e1adf80f94ef52147a4d2fc164dab32797d93d /sys/netatm/port.h
parent1482903ceafd6c259928760686a1a308932b4d7c (diff)
downloadFreeBSD-src-122c24db48374dee47cf7a553f344ff0a6aee1e9.zip
FreeBSD-src-122c24db48374dee47cf7a553f344ff0a6aee1e9.tar.gz
- Change KM_ macro calls to the appropriate function call.
- Nuke KM_ macros from port.h This is a leadin step towards cleaning up this code as I wait for some ATM cards and a ATM switch to arrive.
Diffstat (limited to 'sys/netatm/port.h')
-rw-r--r--sys/netatm/port.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/sys/netatm/port.h b/sys/netatm/port.h
index a9daf4b..840c084 100644
--- a/sys/netatm/port.h
+++ b/sys/netatm/port.h
@@ -58,43 +58,6 @@
/*
- * Kernel memory management
- *
- * KM_ALLOC(size, type, flags)
- * Returns an allocated kernel memory chunk of size bytes.
- * KM_FREE(addr, size, type)
- * Free a kernel memory chunk of size bytes.
- * KM_CMP(b1, b2, len)
- * Compares len bytes of data from b1 against b2.
- * KM_COPY(from, to, len)
- * Copies len bytes of data from from to to.
- * KM_ZERO(addr, len)
- * Zeros len bytes of data from addr.
- *
- */
-#ifdef _KERNEL
-#if (defined(BSD) && (BSD >= 199103))
-#include <sys/malloc.h>
-#define KM_ALLOC(size, type, flags) malloc((size), (type), (flags))
-#define KM_FREE(addr, size, type) free((addr), (type))
-#elif defined(sun)
-#include <sys/kmem_alloc.h>
-#define KM_ALLOC(size, type, flags) kmem_alloc(size)
-#define KM_FREE(addr, size, type) kmem_free((addr), (size))
-#endif
-
-#if defined(BSD)
-#define KM_CMP(b1, b2, len) bcmp((void *)(b1), (void *)(b2),\
- (len))
-#define KM_COPY(from, to, len) bcopy((const void *)(from), (void *)(to),\
- (len))
-#define KM_ZERO(addr, len) bzero((void *)(addr), (len))
-#endif
-#define XM_COPY(f, t, l) KM_COPY((f), (t), (l))
-
-#else
-
-/*
* User-space memory management
*
* UM_ALLOC(size) Returns an allocated kernel memory chunk of size bytes.
@@ -115,11 +78,7 @@
#define UM_FREE(addr) free((char *)(addr))
#define UM_COPY(from, to, len) bcopy((char *)(from), (char *)(to), (len))
#define UM_ZERO(addr, len) bzero((char *)(addr), (len))
-
#endif
-#define XM_COPY(f, t, l) UM_COPY((f), (t), (l))
-
-#endif /* _KERNEL */
#ifdef _KERNEL
OpenPOWER on IntegriCloud