From owner-freebsd-current Tue Jun 1 2:29:53 1999 Delivered-To: freebsd-current@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id 369F714C89 for ; Tue, 1 Jun 1999 02:29:49 -0700 (PDT) (envelope-from dirkx@webweaving.org) Received: from kim.ispra.webweaving.org (va-133.skylink.it [194.185.55.133]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id LAA19311; Tue, 1 Jun 1999 11:29:25 +0200 Received: from brunte.ispra.webweaving.org (brunte.ispra.webweaving.org [10.0.0.12]) by kim.ispra.webweaving.org (8.8.8/8.8.5) with ESMTP id IAA04096; Tue, 1 Jun 1999 08:33:55 GMT X-Passed: MX on Ispra.WebWeaving.org Tue, 1 Jun 1999 08:33:55 GMT and masked X-No-Spam: Neither the receipients nor the senders email address(s) are to be used for Unsolicited (Commercial) Email without the explicit written consent of either party; as a per-message fee is incurred for inbound and outbound traffic to the originator. Posted-Date: Tue, 1 Jun 1999 08:33:55 GMT Date: Tue, 1 Jun 1999 10:40:02 +0200 (CEST) From: Dirk-Willem van Gulik X-Sender: dirkx@brunte.ispra.webweaving.org To: USB BSD list Cc: Christopher Masto , FreeBSD current Mailing list Subject: Re: [usb-bsd] Re: USB fixes for cdevsw change In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanks Christopher ! Dw. On Tue, 1 Jun 1999, Nick Hibma wrote: > > Thanks. Committed. > > Nick > > On Mon, 31 May 1999, Christopher Masto wrote: > > > USB stopped working as of the recent cdevsw cleanup. This fixes it. > > > > Index: usb.c > > =================================================================== > > RCS file: /usr/cvs/freebsd/src/sys/dev/usb/usb.c,v > > retrieving revision 1.12 > > diff -u -r1.12 usb.c > > --- usb.c 1999/05/30 16:51:51 1.12 > > +++ usb.c 1999/06/01 00:30:23 > > @@ -129,7 +129,7 @@ > > /* strategy */ nostrategy, > > /* name */ "usb", > > /* parms */ noparms, > > - /* maj */ -1, > > + /* maj */ USB_CDEV_MAJOR, > > /* dump */ nodump, > > /* psize */ nopsize, > > /* flags */ 0, > > Index: usbdi.c > > =================================================================== > > RCS file: /usr/cvs/freebsd/src/sys/dev/usb/usbdi.c,v > > retrieving revision 1.17 > > diff -u -r1.17 usbdi.c > > --- usbdi.c 1999/05/31 11:25:21 1.17 > > +++ usbdi.c 1999/06/01 00:30:23 > > @@ -80,12 +80,6 @@ > > > > static SIMPLEQ_HEAD(, usbd_request) usbd_free_requests; > > > > -#if defined(__FreeBSD__) > > -#define USB_CDEV_MAJOR 108 > > - > > -extern struct cdevsw usb_cdevsw; > > -#endif > > - > > #ifdef USB_DEBUG > > char *usbd_error_strs[USBD_ERROR_MAX] = { > > "NORMAL_COMPLETION", > > Index: usbdi.h > > =================================================================== > > RCS file: /usr/cvs/freebsd/src/sys/dev/usb/usbdi.h,v > > retrieving revision 1.11 > > diff -u -r1.11 usbdi.h > > --- usbdi.h 1999/05/20 20:02:37 1.11 > > +++ usbdi.h 1999/06/01 00:30:23 > > @@ -115,6 +115,12 @@ > > #define USBD_NO_TIMEOUT 0 > > #define USBD_DEFAULT_TIMEOUT 5000 /* ms = 5 s */ > > > > +#if defined(__FreeBSD__) > > +#define USB_CDEV_MAJOR 108 > > + > > +extern struct cdevsw usb_cdevsw; > > +#endif > > + > > usbd_status usbd_open_pipe > > __P((usbd_interface_handle iface, u_int8_t address, > > u_int8_t flags, usbd_pipe_handle *pipe)); > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-current" in the body of the message > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message