Date: Mon, 17 Dec 2007 21:39:39 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: Alexander Leidinger <Alexander@leidinger.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Linux version of libusb that works with FreeBSD Message-ID: <200712172139.54481.doconnor@gsoft.com.au> In-Reply-To: <20071217100608.sti502z4skk4g4g8@webmail.leidinger.net> References: <200712171626.59808.doconnor@gsoft.com.au> <20071217100608.sti502z4skk4g4g8@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart4717716.bnAj4HipSe Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Mon, 17 Dec 2007, Alexander Leidinger wrote: > > The thing I am not sure about is how ioctl's would get mangled on > > the way through. > > They get interpreted as linux ioctl, as they are handled by the > linuxulator. You could try to write a wrapper there... Yeah.. Maybe an FS approach would be simpler since there is already a=20 framework. > > I guess the other approach would be to use a standard Linux libusb > > but emulate the device tree it uses in Linux.. Would be a lot of > > work though I think. > > As long as you can specify the devices in the linux app, it's enough > to translate the ioctl's. Apart from that, there's some kind of > translation layer for devices already, but I don't know if it just a > Linux major/minor -> FreeBSD dev mapping, or if you can map linux dev > -> FreeBSD dev. Not sure I can specify the devices, but there's always ln :) > AFAIR HPS' USB stack has linux compatibility, maybe you should ask > him / have a look at it. I had a look at the code but I can't see any Linux related code. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart4717716.bnAj4HipSe Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBHZlkC5ZPcIHs/zowRApQ+AJ9eaw/HFJEWv2WsjzLH7ZI4HzniTwCfXSin +uKPYIiGERa6RRj5YH4oA8s= =CJFc -----END PGP SIGNATURE----- --nextPart4717716.bnAj4HipSe--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712172139.54481.doconnor>