Date: Wed, 4 Dec 2002 23:13:09 -0500 (EST) From: "Brian J. McGovern" <mcgovern@tick.beta.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/46004: Add support for Trek Thumbdrive 8MB USB drive Message-ID: <200212050413.gB54D9k6000653@tick.beta.com>
index | next in thread | raw e-mail
>Number: 46004
>Category: kern
>Synopsis: Add support for Trek Thumbdrive 8MB USB drive
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Dec 04 20:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Brian J. McGovern
>Release: FreeBSD 5.0-DP2 i386
>Organization:
B.E.T.A.
>Environment:
System: FreeBSD tick.beta.com 5.0-DP2 FreeBSD 5.0-DP2 #7: Mon Dec 2 21:20:49 EST 2002 root@tick.beta.com:/usr/src/sys/i386/compile/TICK i386
>Description:
The attached patches will add support for the Trek Smart Thumbdrives
(8MB model) to the umass driver, allowing the mounting of the disk
via a msdos filesystem. It is expected that the other sizes can also
be supported via differing product codes. Unfortunately, hardware
of the larger sizes is unavailable at this time (although I will
continue to bother Trek to provide it). In any event, this patch
should be applied to provide a template for users with similar
hardware to cut, paste, and edit.
>How-To-Repeat:
No need to repeat. Its an added feature.
>Fix:
Diffs follow. If it is needed in a different format, please ask, and
I can provide it quickly.
diff -u usb/umass.c usb.new/umass.c
--- usb/umass.c Sat Nov 16 04:07:50 2002
+++ usb.new/umass.c Mon Dec 2 21:20:39 2002
@@ -323,6 +323,11 @@
};
Static struct umass_devdescr_t umass_devdescrs[] = {
+ { USB_VENDOR_TREK, USB_PRODUCT_TREK_THUMBDRIVE_8MB, RID_WILDCARD,
+ UMASS_PROTO_ATAPI | UMASS_PROTO_BBB,
+ IGNORE_RESIDUE
+/* | NO_TEST_UNIT_READY */
+ },
{ USB_VENDOR_FUJIPHOTO, USB_PRODUCT_FUJIPHOTO_MASS0100, RID_WILDCARD,
UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I,
RS_NO_CLEAR_UA
diff -u usb/usbdevs usb.new/usbdevs
--- usb/usbdevs Sat Nov 16 04:07:50 2002
+++ usb.new/usbdevs Mon Dec 2 20:10:28 2002
@@ -1068,6 +1068,7 @@
/* Trek Technology products */
product TREK THUMBDRIVE 0x1111 ThumbDrive
+product TREK THUMBDRIVE 0x9988 ThumbDrive
/* Ultima products */
product ULTIMA 1200UBPLUS 0x4002 1200 UB Plus scanner
diff -u usb/usbdevs.h usb.new/usbdevs.h
--- usb/usbdevs.h Sat Nov 16 04:07:50 2002
+++ usb.new/usbdevs.h Mon Dec 2 20:12:13 2002
@@ -1076,6 +1076,8 @@
/* Trek Technology products */
#define USB_PRODUCT_TREK_THUMBDRIVE 0x1111 /* ThumbDrive */
+#define USB_PRODUCT_TREK_THUMBDRIVE_8MB 0x9988 /* ThumbDrive */
+
/* Ultima products */
#define USB_PRODUCT_ULTIMA_1200UBPLUS 0x4002 /* 1200 UB Plus scanner */
diff -u usb/usbdevs_data.h usb.new/usbdevs_data.h
--- usb/usbdevs_data.h Sat Nov 16 04:07:50 2002
+++ usb.new/usbdevs_data.h Mon Dec 2 20:13:48 2002
@@ -2571,6 +2571,13 @@
"Trek Technology",
"ThumbDrive",
},
+
+ {
+ USB_VENDOR_TREK, USB_PRODUCT_TREK_THUMBDRIVE_8MB,
+ 0,
+ "Trek Technology",
+ "ThumbDrive",
+ },
{
USB_VENDOR_ULTIMA, USB_PRODUCT_ULTIMA_1200UBPLUS,
0,
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212050413.gB54D9k6000653>
