Date: Sun, 29 Jun 2008 15:31:27 -0400 From: Chuck Robey <chuckr@telenix.org> To: Hans Petter Selasky <hselasky@c2i.net> Cc: ticso@cicely.de, FreeBSD USB List <FreeBSD-usb@freebsd.org> Subject: Re: number of /dev/usb nodes Message-ID: <4867E30F.4020309@telenix.org> In-Reply-To: <200806281948.37009.hselasky@c2i.net> References: <484AC2F1.1000806@telenix.org> <20080608155015.GO71712@cicely7.cicely.de> <484C0E6B.5020306@telenix.org> <200806281948.37009.hselasky@c2i.net>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4867E30F.4020309>