The attached patch allows me to print to my HP OfficeJet by making ulpt0 use the bidirectional interface (7/1/2) instead of the IEEE1284 interface (7/1/3). I haven't had time to set up CUPS yet, but simply catting a text file do /dev/ulpt0 works fine, while previously it would just hang.
DES -- Dag-Erling Smorgrav - [EMAIL PROTECTED]
Index: sys/dev/usb/ulpt.c =================================================================== RCS file: /home/ncvs/src/sys/dev/usb/ulpt.c,v retrieving revision 1.50 diff -u -r1.50 ulpt.c --- sys/dev/usb/ulpt.c 30 Oct 2002 01:18:58 -0000 1.50 +++ sys/dev/usb/ulpt.c 4 Dec 2002 23:33:39 -0000 @@ -236,8 +236,7 @@ id->bInterfaceNumber == ifcd->bInterfaceNumber) { if (id->bInterfaceClass == UICLASS_PRINTER && id->bInterfaceSubClass == UISUBCLASS_PRINTER && - (id->bInterfaceProtocol == UIPROTO_PRINTER_BI || - id->bInterfaceProtocol == UIPROTO_PRINTER_1284)) + id->bInterfaceProtocol == UIPROTO_PRINTER_BI) goto found; altno++; }