Match printers that report their interface as IEEE 1284 in addition to

bidirectional.
This commit is contained in:
nathanw 2001-10-19 15:30:25 +00:00
parent 80439f53c0
commit 48bdb0d067
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ulpt.c,v 1.42 2001/04/16 00:18:06 augustss Exp $ */
/* $NetBSD: ulpt.c,v 1.43 2001/10/19 15:30:25 nathanw Exp $ */
/* $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $ */
/*
@ -180,7 +180,8 @@ USB_MATCH(ulpt)
id->bInterfaceClass == UICLASS_PRINTER &&
id->bInterfaceSubClass == UISUBCLASS_PRINTER &&
(id->bInterfaceProtocol == UIPROTO_PRINTER_UNI ||
id->bInterfaceProtocol == UIPROTO_PRINTER_BI))
id->bInterfaceProtocol == UIPROTO_PRINTER_BI ||
id->bInterfaceProtocol == UIPROTO_PRINTER_1284))
return (UMATCH_IFACECLASS_IFACESUBCLASS_IFACEPROTO);
return (UMATCH_NONE);
}
@ -229,7 +230,8 @@ USB_ATTACH(ulpt)
id->bInterfaceNumber == ifcd->bInterfaceNumber) {
if (id->bInterfaceClass == UICLASS_PRINTER &&
id->bInterfaceSubClass == UISUBCLASS_PRINTER &&
id->bInterfaceProtocol == UIPROTO_PRINTER_BI)
(id->bInterfaceProtocol == UIPROTO_PRINTER_BI ||
id->bInterfaceProtocol == UIPROTO_PRINTER_1284))
goto found;
altno++;
}