From owner-freebsd-usb@FreeBSD.ORG Sun Jun 29 19:42:14 2008 Return-Path: Delivered-To: FreeBSD-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D9F901065683 for ; Sun, 29 Jun 2008 19:42:14 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail6.sea5.speakeasy.net (mail6.sea5.speakeasy.net [69.17.117.8]) by mx1.freebsd.org (Postfix) with ESMTP id B69948FC13 for ; Sun, 29 Jun 2008 19:42:14 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 24723 invoked from network); 29 Jun 2008 19:42:13 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 29 Jun 2008 19:42:13 -0000 Message-ID: <4867E30F.4020309@telenix.org> Date: Sun, 29 Jun 2008 15:31:27 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: Hans Petter Selasky References: <484AC2F1.1000806@telenix.org> <20080608155015.GO71712@cicely7.cicely.de> <484C0E6B.5020306@telenix.org> <200806281948.37009.hselasky@c2i.net> In-Reply-To: <200806281948.37009.hselasky@c2i.net> X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ticso@cicely.de, FreeBSD USB List Subject: Re: number of /dev/usb nodes X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2008 19:42:15 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hans Petter Selasky wrote: > Hi, > > I am about to set the following USB limits: > > #define USB_BUS_MAX 256 /* units */ > #define USB_DEV_MAX 128 /* units */ > #define USB_IFACE_MAX 32 /* units */ > #define USB_EP_MAX (2*16) /* hardcoded */ > #define USB_FIFO_MAX (2 * USB_EP_MAX) > > The multiplication product of (BUS*DEV*IFACE*FIFO) must fit within a 32-bit > unsigned integer. > > Any objections ? > > --HPS I don't recognize what the USB_EP_MAX means ... Endpoints? If so, I would personally use a longer abbreviation, but that's a pretty weak objection. The rest is fine. Where's this going? usb.h? Then the usb(4) man page probably ought to show it also. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhn4w8ACgkQz62J6PPcoOmTDwCdGZlKNKB5RGS3zeKWiAEmjzSU AMEAoI1rmpQY0jb4mQcTjT/i4cgnLrkR =RSqg -----END PGP SIGNATURE-----