Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Match printers that report their interface as IE...



details:   https://anonhg.NetBSD.org/src/rev/a71f43b3830e
branches:  trunk
changeset: 516256:a71f43b3830e
user:      nathanw <nathanw%NetBSD.org@localhost>
date:      Fri Oct 19 15:30:25 2001 +0000

description:
Match printers that report their interface as IEEE 1284 in addition to
bidirectional.

diffstat:

 sys/dev/usb/ulpt.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 80fe0f664537 -r a71f43b3830e sys/dev/usb/ulpt.c
--- a/sys/dev/usb/ulpt.c        Fri Oct 19 15:07:48 2001 +0000
+++ b/sys/dev/usb/ulpt.c        Fri Oct 19 15:30:25 2001 +0000
@@ -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 @@
            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 @@
                    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++;
                }



Home | Main Index | Thread Index | Old Index