Hello,
I have a PCI adapter that has flash memory on it. I know everythings about this card, including the PCI manuf device ID, the PCI config register, and how to read and write from/to the flash memory.
I want to write a driver for it such that when I open windows explorer I will see my card shown as drive D: (or E: if there is a CD rom in the system). I have been reading books, including Programming the MS WDM 2nd, Oney, and the DDK documentation from the lastest DDK for Window 2000/XP. Too much information has made me confused.
1. Should I write the SCSI mimiport driver that will layer below the scsi port driver?
I read about this SCSI miniport things but it's really confused. I have thought about this but when I look at the functions that I have to implement shown in the DDK, it is too complicated. My PCI card does not use DMA and IRQ. It only need two 32-bit registers and a 4k memory range and an IO port that is part of the PCI config space.
2. What are the alternatives?
Port driver? I thought my driver must be a port driver, since it must tell the system how to read and write to the PCI register. But it must contain a layer that tell the system that my drive is a D: drive.
Anyhow, this whole thing is a mess in me right now. Can someone explain or show me what the best approach to this? Thank you so very much.
Long