|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Since our application needs to read/write specific one sector on SATA drive every 10 seconds (this SATA drive is under our company’s PMP controller, it works like normal SATA drive without specific driver),
I have tried BSD pread()/pwrite() but it needs to unmount partitions on the disk each time before I could do the write command (open with O_RDWR), so I give up using BSD APIs (am I right?).
Actually there are two roads after connecting our controller to USB, 1394, directly from internal SATA port, Siliconimage 3132 or Jmicron 363.
One road is through IOAHCIBlockStorageDevice -> IOBlockStorageDriver, and another road is through …-> IOSCSIPeripheralDeviceNub -> IOSCSIPeripheralDeviceType00 -> IOBlockStorageServices -> IOBlockStorageDriver
So I try to write the logical unit driver to subclass IOSCSIPeripheralDeviceType00 for my application to read/write sector, but there are some questions for the first road:
1. Could I subclass IOSCSIProtocolServices between IOAHCIBlockStorageDevice and IOBlockStorageDriver?
Like IOAHCIDevice -> IOAHCIBlockStorageDevice -> IOSCSIProtocolServices -> IOSCSIPeripheralDeviceNub -> IOSCSIPeripheralDeviceType00 -> IOBlockStorageDriver -> MySataDrive
2. If could, where could I find a reference code or document?
Any comment is appreciated!
Thanks and Best regards!
_______________________________________________ Do not post admin requests to the list. They will be ignored. Ata-scsi-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.