From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 3 09:14:33 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8AB41065673 for ; Sun, 3 Jun 2012 09:14:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 6249A8FC08 for ; Sun, 3 Jun 2012 09:14:33 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 284304840; Sun, 03 Jun 2012 11:14:25 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Sun, 3 Jun 2012 11:13:45 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201206031113.46034.hselasky@c2i.net> Cc: Wojciech Puchar Subject: Re: reverse USB driver - is it possible? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jun 2012 09:14:33 -0000 On Sunday 03 June 2012 10:25:21 Wojciech Puchar wrote: > for SCSI/SAS/FC there is targ(4) driver allows you to become SCSI target. > > is it the same possible with USB? > i mean if i can make my laptop to simulate say USB CDROM. > > Yes there are no driver line targ(4) for USB, but it is technically > possible hardware-wise? with any USB controler or special one? Yes, this is possible. Have a look at: sys/dev/usb/storage/ustorage_fs.c Currently just implements a RAM disk. Patches are welcome. --HPS