diff options
author | mdodd <mdodd@FreeBSD.org> | 2002-06-03 09:16:52 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2002-06-03 09:16:52 +0000 |
commit | 67912834859799368dba542bd95e8c42d02abe82 (patch) | |
tree | f602b11a3cb7ab78dbb421184db14467f248d166 /sys/dev/hea/eni_buffer.c | |
parent | 50437cfa685a53287190566c1c3b89197e9d92a0 (diff) | |
download | FreeBSD-src-67912834859799368dba542bd95e8c42d02abe82.zip FreeBSD-src-67912834859799368dba542bd95e8c42d02abe82.tar.gz |
Quick and dirty convert to newbus. (Eventually 'eni.c' should go away.)
Module loads and unloads properly.
Thanks to Richard Hodges <rh@matriplex.com> for donating the hardware
to allow me to work on this driver.
Diffstat (limited to 'sys/dev/hea/eni_buffer.c')
-rw-r--r-- | sys/dev/hea/eni_buffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/hea/eni_buffer.c b/sys/dev/hea/eni_buffer.c index d1946f0..026ce5d 100644 --- a/sys/dev/hea/eni_buffer.c +++ b/sys/dev/hea/eni_buffer.c @@ -38,7 +38,10 @@ #include <sys/param.h> #include <sys/systm.h> #include <sys/socket.h> +#include <sys/malloc.h> + #include <net/if.h> + #include <netatm/port.h> #include <netatm/queue.h> #include <netatm/atm.h> @@ -316,7 +319,7 @@ eni_allocate_buffer ( eup, size ) Mbd *etmp; /* larger then we need - split it */ - etmp = (Mbd *)KM_ALLOC(sizeof(Mbd), M_DEVBUF, M_NOWAIT ); + etmp = (Mbd *)malloc(sizeof(Mbd), M_DEVBUF, M_NOWAIT); if ( etmp == (Mbd *)NULL ) { /* * Couldn't allocate new descriptor. Indicate |