| Summary: | umass support for ATAPI [with patch] | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | larse <larse> | ||||
| Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.4-RELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
larse
2001-12-04 05:30:00 UTC
Responsible Changed From-To: freebsd-bugs->sos Over to Mr ATA. Responsible Changed From-To: sos->freebsd-bugs This is not an ATA driver matter, its USB.. This is an ALTERNATIVE patch that just adds the required quirks to
scsi_da.c, in case that's preferred. Either this or the original patch
work for me.
Lars
--- /usr/src/sys/cam/scsi/scsi_da.c Sun Jul 29 17:48:20 2001
+++ /usr/src/sys/cam/scsi/scsi_da.c Mon Dec 3 14:52:55 2001
@@ -246,6 +246,14 @@
/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
},
{
+ /*
+ * Pentax Optio 430 Digital Camera
+ * (will probably also work for the Optio 330)
+ */
+ {T_DIRECT, SIP_MEDIA_REMOVABLE, "PENTAX",
"DIGITAL_CAMERA", "*"},
+ /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE
+ },
+ {
{T_OPTICAL, SIP_MEDIA_REMOVABLE, "FUJITSU",
"MCF3064AP", "*"},
/*quirks*/ DA_Q_NO_6_BYTE
}
--- /usr/src/sys/dev/usb/umass.c Sat Jan 6 14:36:15 2001
+++ /usr/src/sys/dev/usb/umass.c Mon Dec 3 14:47:47 2001
@@ -575,7 +575,7 @@
dd = usbd_get_device_descriptor(udev);
-#if 0
+#if 1
/* XXX ATAPI support is untested. Don't use it for the moment */
if (UGETW(dd->idVendor) == USB_VENDOR_SHUTTLE
&& UGETW(dd->idProduct) == USB_PRODUCT_SHUTTLE_EUSB) {
@@ -656,7 +656,7 @@
break;
case USUBCLASS_SFF8020I:
case USUBCLASS_SFF8070I:
-#if 0
+#if 1
/* XXX ATAPI support is untested. Don't use it for the
moment */
sc->proto |= PROTO_ATAPI;
break;
--
Lars Eggert <larse@isi.edu> Information Sciences Institute
http://www.isi.edu/larse/ University of Southern California
Now that 4.5 is out, maybe this could be committed? Thanks, Lars -- Lars Eggert <larse@isi.edu> Information Sciences Institute http://www.isi.edu/larse/ University of Southern California State Changed From-To: open->closed This patch has been superseded by an implementation by jhb which has been committed to current. Thanks for the patch though! |