The Peracom serial converter (like some other devices) claim to have

string descriptors, but gets very upset if you read them.
This commit is contained in:
augustss 1998-12-29 15:23:59 +00:00
parent 32f13388c5
commit 0f94f62616
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: usb_quirks.c,v 1.5 1998/12/27 23:38:13 augustss Exp $ */ /* $NetBSD: usb_quirks.c,v 1.6 1998/12/29 15:23:59 augustss Exp $ */
/* /*
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -58,6 +58,7 @@ struct usbd_quirk_entry {
{ USB_VENDOR_UNIXTAR, USB_PRODUCT_UNIXTAR_UTUSB41, 0x100, { UQ_HUB_POWER }}, { USB_VENDOR_UNIXTAR, USB_PRODUCT_UNIXTAR_UTUSB41, 0x100, { UQ_HUB_POWER }},
{ USB_VENDOR_BTC, USB_PRODUCT_BTC_BTC7932, 0x100, { UQ_NO_STRINGS }}, { USB_VENDOR_BTC, USB_PRODUCT_BTC_BTC7932, 0x100, { UQ_NO_STRINGS }},
{ USB_VENDOR_ADS, USB_PRODUCT_ADS_ENET, 0x002, { UQ_NO_STRINGS }}, { USB_VENDOR_ADS, USB_PRODUCT_ADS_ENET, 0x002, { UQ_NO_STRINGS }},
{ USB_VENDOR_PERACOM, USB_PRODUCT_PERACOM_SERIAL1, 0x101, { UQ_NO_STRINGS }},
{ USB_VENDOR_JAZZ, USB_PRODUCT_JAZZ_J6502, 0x0a2, { UQ_BAD_ADC }}, { USB_VENDOR_JAZZ, USB_PRODUCT_JAZZ_J6502, 0x0a2, { UQ_BAD_ADC }},
{ 0, 0, 0, { 0 } } { 0, 0, 0, { 0 } }
}; };

View File

@ -1,4 +1,4 @@
/* $NetBSD: usb_quirks.h,v 1.4 1998/12/27 23:38:13 augustss Exp $ */ /* $NetBSD: usb_quirks.h,v 1.5 1998/12/29 15:23:59 augustss Exp $ */
/* /*
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -39,12 +39,12 @@
struct usbd_quirks { struct usbd_quirks {
u_int32_t uq_flags; /* Device problems: */ u_int32_t uq_flags; /* Device problems: */
#define UQ_NO_SET_PROTO 0x01 /* cannot handle SET PROTOCOL */ #define UQ_NO_SET_PROTO 0x01 /* cannot handle SET PROTOCOL. */
#define UQ_SWAP_UNICODE 0x02 /* has some Unicode strings swapped. */ #define UQ_SWAP_UNICODE 0x02 /* has some Unicode strings swapped. */
#define UQ_HUB_POWER 0x04 /* does not respond correctly to get #define UQ_HUB_POWER 0x04 /* does not respond correctly to get
device status; use get hub status. */ device status; use get hub status. */
#define UQ_NO_STRINGS 0x08 /* string descriptors are broken. */ #define UQ_NO_STRINGS 0x08 /* string descriptors are broken. */
#define UQ_BAD_ADC 0x10 /* bad audio spec version number */ #define UQ_BAD_ADC 0x10 /* bad audio spec version number. */
}; };
extern struct usbd_quirks usbd_no_quirk; extern struct usbd_quirks usbd_no_quirk;