Hello everyone:
I have learned the sample code of the "Subclassing Logical Unit Drivers" in
"Writing Drivers for Mass Storage Devices".But I think that sample code is too simple for my developping.It only realizes a function which is named GetConfiguration().I want to study more specific code about IOSCSIPeripheralDeviceType05.Could you give me some sample code about it or other specific functions instead of GetConfiguration()?
I especially wan to study that sample which direct operation to a simulated device instead of real hardware,such as virtual CD-ROM.This kind of sample code will be better.
The information about my developping as following:
1.The software of Vitural CD has been popular in the Winsows and Linux.First,we
will make a image file(in fact,it's a common file) of real CD-ROM,and this
file will be manipulated by the driver which we developped previously.Then we
can read the data ,listen to the songs and play the game in the file which
represent the real CD-ROM,as if we manipulate the real CD-ROM.This is the
driver that I need.
2.The end use for the virtual CD device is Virtual CD Drive of the Apple,such
as the toast of the Roxio.
3.I consider that I should transfer the pointer of the image file from
the application to the kernel,but I don't know how the simulated SCSI device
can be created and registerd.Mac OS X can't register a device by using some
rgister function during the driver loading course as in the Linux.
4.I plan to read the data from the file on disk.
5.I know that Mac OS X already has built in support for read-only,
read-write.I have ever compiled and executed the SampleFilterScheme.
I made a image file and mounted it through this sample driver,but it seems
not to be supported the audio CD.
6.Should I develop the driver subclassing from the base class of the bus level,
such as IOSCSIParallelController or IOSCSIParallelInterfaceController?Or I
should develop it based on the IOSCSIPeripheralDeviceType05,should I?
7.I want to know how I create and register my simulated SCSI CD-ROM device
during I write the controller driver.
Thank you!
-------------------------------------------------------------------------------------
AOC(冠捷)17寸液晶16ms¥2888 http://design.163.com/aocmonitor/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden
This email sent to email@hidden