diff options
author | harti <harti@FreeBSD.org> | 2003-04-25 16:14:03 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-04-25 16:14:03 +0000 |
commit | 0162ac550edaf85d0029a69bc6b8328b3cfba95a (patch) | |
tree | 7150b3dd2f2fd105382b3b515c753a1785f5a48b /sys/modules/en | |
parent | dcf45ed6250467e1a126ef79ea7ecbabbb76bbd5 (diff) | |
download | FreeBSD-src-0162ac550edaf85d0029a69bc6b8328b3cfba95a.zip FreeBSD-src-0162ac550edaf85d0029a69bc6b8328b3cfba95a.tar.gz |
Convert the midway driver to use busdma. Except for this conversion the
following changes have been done:
- stylify. The original code was too hard to read.
- get rid of a number of compilation options (Adaptec-only, Eni-only, no-DMA).
- more debugging features.
- locking. This is not correct yet in the absence of interface layer locking,
but is correct enough to not to cause lock order reversals.
- remove RAW mode. There are no users of this in the tree and I doubt that
there are any.
- remove NetBSD compatibility code. There was no way to keep NetBSD non-busdma
and FreeBSD busdma code together.
- if_en now buildable as a module.
This has been actively tested on sparc64 and i386 with ENI server and
client cards and an Adaptec card (thanks to kjc).
Reviewed by: mdodd, arr
Diffstat (limited to 'sys/modules/en')
-rw-r--r-- | sys/modules/en/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/modules/en/Makefile b/sys/modules/en/Makefile new file mode 100644 index 0000000..dfd1956 --- /dev/null +++ b/sys/modules/en/Makefile @@ -0,0 +1,20 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../pci ${.CURDIR}/../../dev/en + +KMOD= if_en +SRCS= if_en_pci.c midway.c device_if.h bus_if.h pci_if.h +SRCS+= opt_inet.h opt_natm.h opt_ddb.h +CFLAGS+= -DENABLE_BPF +# CFLAGS+= -DINVARIANTS -DEN_DEBUG=0 + +opt_inet.h: + echo "#define INET 1" > ${.TARGET} + +opt_natm.h: + echo "#define NATM 1" > ${.TARGET} + +# opt_ddb.h: +# echo "#define DDB 1" > ${.TARGET} + +.include <bsd.kmod.mk> |