Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Dec 2002 21:41:49 -0500
From:      "Brian J. McGovern" <mcgovern@spoon.beta.com>
To:        current@freebsd.org
Subject:   Diffs for TREK Smartdrive (8MB) support
Message-ID:  <200212030241.gB32fnTY028603@spoon.beta.com>

next in thread | raw e-mail | index | archive | help
The following patches apply to 5.0-CURRENT-DP2. They add support for the
Trek SmartDrive 8MB. I'm assuming that the other drives have differing product
numbers, but I don't have any other reference hardware to play with. However,
this may act as a good starting point for others who have the larger drives
available.

Overall, the performance appears slow (0.04MB/s), but given the small size,
its only mildly annoying. If any USB Wizards have suggestions for speeding
it up (the drive specs say that it should be ~500KB/sec read, and ~250KB/sec
for writes), I'll be happy to test them out.

I would like someone to commit this, and let me know when its in. Thanks.

	-Brian

PS - I'll be looking at doing a patch for -STABLE, as well, but the USB
code looks very, very different....



diff -r sys/dev/usb/umass.c sys/dev/usb.new/umass.c
325a326,330
> 	{ USB_VENDOR_TREK, USB_PRODUCT_TREK_THUMBDRIVE_8MB, RID_WILDCARD,
> 	  UMASS_PROTO_ATAPI | UMASS_PROTO_BBB,
> 	  IGNORE_RESIDUE
> 	},
diff -r sys/dev/usb/usbdevs sys/dev/usb.new/usbdevs
1070a1071
> product TREK THUMBDRIVE		0x9988	ThumbDrive
diff -r sys/dev/usb/usbdevs.h sys/dev/usb.new/usbdevs.h
1078a1079,1080
> #define USB_PRODUCT_TREK_THUMBDRIVE_8MB	0x9988		/* ThumbDrive */
> 
diff -r sys/dev/usb/usbdevs_data.h sys/dev/usb.new/usbdevs_data.h
2573a2574,2580
> 
> 	{
> 	    USB_VENDOR_TREK, USB_PRODUCT_TREK_THUMBDRIVE_8MB,
> 	    0,
> 	    "Trek Technology",
> 	    "ThumbDrive",
> 	},

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212030241.gB32fnTY028603>