From owner-freebsd-hackers@freebsd.org Tue Dec 20 18:15:13 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7009EC8967B for ; Tue, 20 Dec 2016 18:15:13 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from mailhost.m5p.com (mailhost.m5p.com [IPv6:2001:418:3fd::f7]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "m5p.com", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2AD30130F for ; Tue, 20 Dec 2016 18:15:13 +0000 (UTC) (envelope-from george+freebsd@m5p.com) Received: from [IPv6:2001:418:3fd::1f] (haymarket.m5p.com [IPv6:2001:418:3fd::1f]) by mailhost.m5p.com (8.15.2/8.15.2) with ESMTP id uBKIF2vt088967 for ; Tue, 20 Dec 2016 13:15:08 -0500 (EST) (envelope-from george+freebsd@m5p.com) Subject: Re: USB ppbus? To: freebsd-hackers@freebsd.org References: <35e62a59-556a-68bf-3b9d-017108f12f38@m5p.com> <930e14f6-d8a8-7f50-21b4-6e76c2057f31@selasky.org> From: George Mitchell Message-ID: Date: Tue, 20 Dec 2016 13:15:02 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <930e14f6-d8a8-7f50-21b4-6e76c2057f31@selasky.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=10.0 tests=ALL_TRUSTED, RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mattapan.m5p.com X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.1 (mailhost.m5p.com [IPv6:2001:418:3fd::f7]); Tue, 20 Dec 2016 13:15:11 -0500 (EST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2016 18:15:13 -0000 On 12/20/16 12:57, Hans Petter Selasky wrote: > On 12/19/16 20:19, George Mitchell wrote: >> I have a USB cable that terminates in a DB25 connector. Inside is a >> Prolific Technology PL2305: >> http://prolificusa.com/files/ds_pl2305I_v1.0.pdf >> It probes as a ulpt. I would love if there existed such a thing as >> a uppi device. Does it sound possible to get to such a result by >> extending the ppbus code to know about USB? Or might it be simpler >> to try to add the ppi ioctls (PPIGDATA, etc.) to ulpt.c? -- George > > Hi George, > > There is currently no such thing. ulpt only provides a raw character > device. The ppbus could possibly be implemented in userspace using libcuse. > > --HPS > > [...] Thanks for the response. I think I could kludge the ioctls I want into ulpt.c by learning more about the USB system works. Possibly. On a good day. -- George