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

Nate Lawson nate at root.org
Sat Oct 4 14:45:41 PDT 2003


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


More information about the cvs-src mailing list