Adam J. Richter wrote:
>       Finally, on a note that actually has something to do with USB,
> I just want to make clear that you can currently read the IEEE-1284
> parallel port device ID information with a stock 2.4.3 kernel, under
> any of the following scenarios, which cover just about everything:
...
>       o From a standard USB parallel ("printer") dongle or a "native" USB
>         printer when the usb-printer drivers is *is* loaded, via
>         _IOR('p', USB IOCN_GET_DEVICE_ID, string_length) ioctl.  I know
>         I wrote a little test program for this, but I can't find it at
>         the moment.

Hi, Adam.  For an example of this, see
"http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/hpoj/mlcd/ExMgr.cpp?rev=1.7&content-type=text/x-cvsweb-markup&cvsroot=hpoj".
Search for the line "unsigned char *UsbMgr::llioGetDeviceID(void)", near
the bottom of the file.  This is part of the new user-mode USB and parallel
port driver now available in CVS of the HP OfficeJet Linux driver project
(http://hpoj.sourceforge.net).

It might actually be nice to get LPIOC_GET_DEVICE_ID defined in a header
file.  Currently it's only defined in printer.c, and I had to paste that
into the hpoj code.  Not very portable, I would think.  :-)

David


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to