In message <[EMAIL PROTECTED]>, Soeren Schmidt writes: >It should be possible to hide the USB stuff under the ATA_* macroes >or even just under bus_space_*. >I need a bit more concrete details on how to call into the USB >code, then it should be pretty easy to add...
This would be hard to do right, as the preferred way to talk to USB devices is with a request-callback model. The ATA command would need to be put into a request structure and handed to the USB device driver, and the USB driver would then call back when the request completes. There are hacks that can be used to perform the USB operations synchronously, but they generally do not handle unexpected removal of the device well at all. There are many possible ATA/ATAPI over USB protocols, so turning the ATA request into one or more USB transfers is a bridge-specific operation. Basically these odd protocols exist because the manufacturers of the various bridges have decided to cut corners and not implement the standard USB mass storage interface. Ian To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message