From owner-freebsd-usb@FreeBSD.ORG Sun Aug 5 17:55:12 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2D897106566C for ; Sun, 5 Aug 2012 17:55:12 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171]) by mx1.freebsd.org (Postfix) with ESMTP id 06C968FC1B for ; Sun, 5 Aug 2012 17:55:11 +0000 (UTC) Received: from [IPv6:::1] (proxy6.corp.yahoo.com [216.145.48.19]) by mrout1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id q75HilOo033724 for ; Sun, 5 Aug 2012 10:44:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1344188688; bh=7MZibOyva1IVIT1541+1o9KYyINrO4Iz135vjT41+sQ=; h=Subject:From:Reply-To:To:Content-Type:Date:Message-ID: Mime-Version:Content-Transfer-Encoding; b=xa8LdWSToWBZuupBit+Osoh1VD9xOOQdfkxMwxejrOL+ucK6Wemh0ZzgLYT2BABg5 Rq2PE1MHOAQcTNZlyCS2bFjcTJ6P4ErxGeFL9qdG86b9j1igEiJ7Q44ScGhwD+vs4j xOVjjnvJ3LXWrpqc2VXfOlOF3vy1HVLVM+oFsz2M= From: Sean Bruno To: "freebsd-usb@freebsd.org" Content-Type: text/plain; charset="UTF-8" Date: Sun, 05 Aug 2012 10:44:47 -0700 Message-ID: <1344188687.10817.5.camel@powernoodle> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 188688001 Subject: qemu hw/usb/host-bsd.c X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sbruno@freebsd.org List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2012 17:55:12 -0000 Trying to update the qemu port this weekend and I see there are a lot of legacy usb things going on inside of host-bsd.c that need to be updated. I've started with the qemu git tree at git://git.qemu.org/qemu.git Specifically, I'm staring at hw/usb/host-bsd.c The main issues seem to be wrapped around its handling and setup of "SHORT_XFER" and its abuse of the old udi_devnames[] data in the deviceinfo structs. I've started with the attached diff. I'm pretty sure this is wrong. Let start with the abuse of udi_devnames in this code. What's the best way for in usb-land to setup its emulated usb nonsense? http://people.freebsd.org/~sbruno/host-bsd.c.txt sean