From owner-freebsd-usb@FreeBSD.ORG Sat Jun 28 17:47:08 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 EE67E1065682 for ; Sat, 28 Jun 2008 17:47:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id 7F7838FC1B for ; Sat, 28 Jun 2008 17:47:08 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=NMGBx6iLSXY/3qZKdJo9Bw==:17 a=N3j_A7YhmhynFaBYyCYA:9 a=JQW0bY3IQO1F9d3Ps3gPqa5g05YA:4 a=50e4U0PicR4A:10 Received: from [62.113.135.207] (account mc467741@c2i.net [62.113.135.207] verified) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.4b) with ESMTPA id 995620856; Sat, 28 Jun 2008 19:47:06 +0200 From: Hans Petter Selasky To: FreeBSD USB List Date: Sat, 28 Jun 2008 19:48:33 +0200 User-Agent: KMail/1.9.7 References: <484AC2F1.1000806@telenix.org> <20080608155015.GO71712@cicely7.cicely.de> <484C0E6B.5020306@telenix.org> In-Reply-To: <484C0E6B.5020306@telenix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806281948.37009.hselasky@c2i.net> Cc: ticso@cicely.de 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: Sat, 28 Jun 2008 17:47:09 -0000 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