From owner-freebsd-current Mon Dec 2 18:42: 3 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE7F237B401 for ; Mon, 2 Dec 2002 18:42:01 -0800 (PST) Received: from spoon.beta.com (spoon.beta.com [199.165.180.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10DD043E4A for ; Mon, 2 Dec 2002 18:42:01 -0800 (PST) (envelope-from mcgovern@spoon.beta.com) Received: from spoon.beta.com (mcgovern@localhost.beta.com [127.0.0.1]) by spoon.beta.com (8.12.6/8.12.6) with ESMTP id gB32fnTY028603 for ; Mon, 2 Dec 2002 21:41:49 -0500 (EST) (envelope-from mcgovern@spoon.beta.com) Message-Id: <200212030241.gB32fnTY028603@spoon.beta.com> To: current@freebsd.org Subject: Diffs for TREK Smartdrive (8MB) support Date: Mon, 02 Dec 2002 21:41:49 -0500 From: "Brian J. McGovern" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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