Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Oct 2003 14:45:40 -0700 (PDT)
From:      Nate Lawson <nate@root.org>
To:        Josef Karthauser <joe@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
Message-ID:  <20031004144356.P97800@root.org>
In-Reply-To: <20031004214136.7A88416A501@hub.freebsd.org>
References:  <20031004214136.7A88416A501@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031004144356.P97800>