From owner-cvs-src@FreeBSD.ORG Fri Apr 25 09:14:04 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0764D37B401; Fri, 25 Apr 2003 09:14:04 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A1C0D43FE0; Fri, 25 Apr 2003 09:14:03 -0700 (PDT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3PGE30U006541; Fri, 25 Apr 2003 09:14:03 -0700 (PDT) (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3PGE3t5006537; Fri, 25 Apr 2003 09:14:03 -0700 (PDT) Message-Id: <200304251614.h3PGE3t5006537@repoman.freebsd.org> From: Hartmut Brandt Date: Fri, 25 Apr 2003 09:14:03 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/modules Makefile src/sys/pci if_en_pci.c src/sys/modules/en Makefile src/sys/dev/en midway.c midwayreg.h midwayvar.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2003 16:14:04 -0000 harti 2003/04/25 09:14:03 PDT FreeBSD src repository Modified files: sys/modules Makefile sys/pci if_en_pci.c sys/dev/en midway.c midwayreg.h midwayvar.h Added files: sys/modules/en Makefile Log: 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 Revision Changes Path 1.37 +2711 -2902 src/sys/dev/en/midway.c 1.5 +47 -69 src/sys/dev/en/midwayreg.h 1.7 +154 -124 src/sys/dev/en/midwayvar.h 1.320 +1 -0 src/sys/modules/Makefile 1.1 +20 -0 src/sys/modules/en/Makefile (new) 1.21 +282 -289 src/sys/pci/if_en_pci.c