Commit 11e2ca51 authored by Robert Sprowson's avatar Robert Sprowson

Update quirks table a bit

It looks like the table came from NetBSD revision 1.39 (despite the claim it was 1.37, perhaps that line wasn't updated?).
Go up to 1.45, which is the last revision before code changes to umass.c are needed (which ultimately obsolete many of the quirks).
Add back the EASYDISK quirk, this was commented out in SCSISoftUSB-0_06 because the vendor was renamed in usbdevs 1.364, via a define to its new vendor name.

Version 0.22. Tagged as 'SCSISoftUSB-0_22'
parent 3bb23158
/* (0.21)
/* (0.22)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.21
#define Module_MajorVersion_CMHG 0.22
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 10 Mar 2016
#define Module_Date_CMHG 29 May 2018
#define Module_MajorVersion "0.21"
#define Module_Version 21
#define Module_MajorVersion "0.22"
#define Module_Version 22
#define Module_MinorVersion ""
#define Module_Date "10 Mar 2016"
#define Module_Date "29 May 2018"
#define Module_ApplicationDate "10-Mar-16"
#define Module_ApplicationDate "29-May-18"
#define Module_ComponentName "SCSISoftUSB"
#define Module_ComponentPath "mixed/RiscOS/Sources/HWSupport/SCSI/SCSISoftUSB"
#define Module_FullVersion "0.21"
#define Module_HelpVersion "0.21 (10 Mar 2016)"
#define Module_LibraryVersionInfo "0:21"
#define Module_FullVersion "0.22"
#define Module_HelpVersion "0.22 (29 May 2018)"
#define Module_LibraryVersionInfo "0:22"
/*****************************************************************************
* $Id$
* $Name$
*
* Author(s): Ben Avison
* Project(s):
*
* ----------------------------------------------------------------------------
* Purpose: USB mass storage quirks code, adapted from BSD sources
*
* ----------------------------------------------------------------------------
* History: See source control system log
*
*****************************************************************************/
/* $NetBSD: umass_quirks.c,v 1.37 2003/04/18 23:38:18 uwe Exp $ */
/* $NetBSD: umass_quirks.c,v 1.45 2003/08/08 08:24:23 wulf Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
......@@ -51,9 +36,12 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/param.h>
#include <sys/cdefs.h>
#ifndef __riscos
__KERNEL_RCSID(0, "$NetBSD: umass_quirks.c,v 1.45 2003/08/08 08:24:23 wulf Exp $");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/device.h>
#include <sys/buf.h>
......@@ -67,6 +55,8 @@
#include <dev/usb/usbdevs.h>
#ifdef __riscos
#define USB_VENDOR_EASYDISK USB_VENDOR_LUWEN /* Renamed in usbdevs 1.364 */
#define USB_PRODUCT_EASYDISK_EASYDISK USB_PRODUCT_LUWEN_EASYDISK
#include "umassvar.h"
#include "umass_quirks.h"
#else
......@@ -90,6 +80,22 @@ Static void umass_fixup_yedata(struct umass_softc *);
extern const struct umass_quirk umass_quirks[];
#endif
Static const struct umass_quirk umass_quirks[] = {
{ { USB_VENDOR_LACIE, USB_PRODUCT_LACIE_PKTDRV},
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
{ { USB_VENDOR_ACDC, USB_PRODUCT_ACDC_PEN },
UMASS_WPROTO_BBB, UMASS_CPROTO_SCSI,
UMASS_QUIRK_NO_MAX_LUN | UMASS_QUIRK_NO_START_STOP,
PQUIRK_NOMODESENSE,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
{ { USB_VENDOR_ATI, USB_PRODUCT_ATI2_205 },
UMASS_WPROTO_BBB, UMASS_CPROTO_ISD_ATA,
0,
......@@ -106,14 +112,14 @@ Static const struct umass_quirk umass_quirks[] = {
NULL, NULL
},
// { { USB_VENDOR_EASYDISK, USB_PRODUCT_EASYDISK_EASYDISK },
// UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
// 0,
// PQUIRK_NOMODESENSE,
// UMATCH_VENDOR_PRODUCT,
// NULL, NULL
// },
//
{ { USB_VENDOR_EASYDISK, USB_PRODUCT_EASYDISK_EASYDISK },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
{ { USB_VENDOR_FUJIPHOTO, USB_PRODUCT_FUJIPHOTO_MASS0100 },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_START_STOP,
......@@ -188,6 +194,7 @@ Static const struct umass_quirk umass_quirks[] = {
NULL, NULL
},
{ { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_DUBPXXG },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_FORCE_SHORT_INQUIRY | UMASS_QUIRK_NO_START_STOP,
......@@ -284,6 +291,14 @@ Static const struct umass_quirk umass_quirks[] = {
NULL, NULL
},
{ { USB_VENDOR_OTI, USB_PRODUCT_OTI_FLASHDISK },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
PQUIRK_NOMODESENSE | PQUIRK_NOBIGMODESENSE,
UMATCH_VENDOR_PRODUCT,
NULL, NULL
},
{ { USB_VENDOR_PEN, USB_PRODUCT_PEN_MOBILEDRIVE },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
0,
......@@ -292,6 +307,14 @@ Static const struct umass_quirk umass_quirks[] = {
NULL, NULL
},
{ { USB_VENDOR_PEN, USB_PRODUCT_PEN_USBDISKPRO },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN,
PQUIRK_NOMODESENSE | PQUIRK_NOBIGMODESENSE,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, NULL
},
{ { USB_VENDOR_PEN, USB_PRODUCT_PEN_USBDISK },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_MAX_LUN | UMASS_QUIRK_NO_START_STOP,
......@@ -350,6 +373,14 @@ Static const struct umass_quirk umass_quirks[] = {
NULL, NULL
},
{ { USB_VENDOR_SIIG, USB_PRODUCT_SIIG_UISDMC2S },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_START_STOP,
PQUIRK_NOMODESENSE,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL,NULL
},
{ { USB_VENDOR_SIIG, USB_PRODUCT_SIIG_MULTICARDREADER },
UMASS_WPROTO_UNSPEC, UMASS_CPROTO_UNSPEC,
UMASS_QUIRK_NO_START_STOP,
......@@ -374,6 +405,14 @@ Static const struct umass_quirk umass_quirks[] = {
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, umass_fixup_sony
},
{ { USB_VENDOR_SONY, USB_PRODUCT_SONY_MSC_U03 },
UMASS_WPROTO_CBI, UMASS_CPROTO_UFI,
0,
0,
UMATCH_DEVCLASS_DEVSUBCLASS_DEVPROTO,
NULL, umass_fixup_sony
},
#endif
{ { USB_VENDOR_SONY, USB_PRODUCT_SONY_MSC },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment