ulpt(4): Add support for Epson TM-U220B.

Submitted by:		Archimedes Gaviola <archimedes.gaviola@gmail.com>
MFC after:		1 week
Sponsored by:		NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2022-04-02 02:27:48 +02:00
parent 39a22011bb
commit 88162f7abd
2 changed files with 12 additions and 2 deletions

View File

@ -499,6 +499,13 @@ static const STRUCT_USB_HOST_ID ulpt_devs[] = {
{USB_IFACE_CLASS(UICLASS_PRINTER),
USB_IFACE_SUBCLASS(UISUBCLASS_PRINTER),
USB_IFACE_PROTOCOL(UIPROTO_PRINTER_1284)},
/* Epson printer */
{USB_VENDOR(USB_VENDOR_EPSON),
USB_PRODUCT(USB_PRODUCT_EPSON_TMU220B),
USB_IFACE_CLASS(UICLASS_VENDOR),
USB_IFACE_SUBCLASS(UISUBCLASS_VENDOR),
USB_IFACE_PROTOCOL(UIPROTO_PRINTER_BI)},
};
static int
@ -555,8 +562,10 @@ ulpt_attach(device_t dev)
break;
} else {
alt_index++;
if ((id->bInterfaceClass == UICLASS_PRINTER) &&
(id->bInterfaceSubClass == UISUBCLASS_PRINTER) &&
if ((id->bInterfaceClass == UICLASS_PRINTER ||
id->bInterfaceClass == UICLASS_VENDOR) &&
(id->bInterfaceSubClass == UISUBCLASS_PRINTER ||
id->bInterfaceSubClass == UISUBCLASS_VENDOR) &&
(id->bInterfaceProtocol == UIPROTO_PRINTER_BI)) {
goto found;
}

View File

@ -1941,6 +1941,7 @@ product EPSON 1270 0x0120 Perfection 1270 scanner
product EPSON 2480 0x0121 Perfection 2480 scanner
product EPSON 3590 0x0122 Perfection 3590 scanner
product EPSON 4990 0x012a Perfection 4990 Photo scanner
product EPSON TMU220B 0x0202 TM-U220B
product EPSON CRESSI_EDY 0x0521 Cressi Edy diving computer
product EPSON N2ITION3 0x0522 Zeagle N2iTion3 diving computer
product EPSON STYLUS_875DC 0x0601 Stylus Photo 875DC Card Reader