From owner-cvs-all@FreeBSD.ORG Sat Oct 4 14:45:41 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A242E16A4BF for ; Sat, 4 Oct 2003 14:45:41 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id DA67E4400F for ; Sat, 4 Oct 2003 14:45:38 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 97853 invoked by uid 1000); 4 Oct 2003 21:45:40 -0000 Date: Sat, 4 Oct 2003 14:45:40 -0700 (PDT) From: Nate Lawson To: Josef Karthauser In-Reply-To: <20031004214136.7A88416A501@hub.freebsd.org> Message-ID: <20031004144356.P97800@root.org> References: <20031004214136.7A88416A501@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/usb if_aue.c if_auereg.h if_cue.c if_cuereg.h if_kue.c if_kuereg.h if_rue.c if_ruereg.h ubsa.c ufm.c uhid.c ukbd.c ums.c usb_port.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2003 21:45:41 -0000 On Sat, 4 Oct 2003, Josef Karthauser wrote: > Modified files: > sys/dev/usb if_aue.c if_auereg.h if_cue.c if_cuereg.h > if_kue.c if_kuereg.h if_rue.c if_ruereg.h > ubsa.c ufm.c uhid.c ukbd.c ums.c > usb_port.h > Log: > Make it easier to run this code on RELENG_4. >=== > +#if __FreeBSD_version >= 500000 > mtx_init(&sc->aue_mtx, device_get_nameunit(self), MTX_NETWORK_LOCK, > MTX_DEF | MTX_RECURSE); > +#endif Would it be good to have a compatibility header that defines some things like this? See sys/dev/acpica/acpivar.h for some of the things we had to abstract including mtxs, msleep, etc. Most drivers are defining their own private defines for things like this. -Nate