From: Maxim S. Shatskih on
> Basically shall i continue my driver development with some KMDF based
> PCI driver samples for both xp and win 7?

Yes, just do not touch the config space and remember that ISA interrupts are Latched and not LevelSensitive.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: dsrking on
Hi to all

thanks for your valuable inputs.

i have loaded the driver for my ISA device with IO mapped and able to
get base address. I have one doubt regarding this,

Shall I directly access the base address from .inf file
( IoConfig=40(a)300-33f%ff00(3ff::) ) and proceed read/write without any
special API conversion like, "MmMapIoSpace"?

Is it right or we should use this type conversion!!!

Thanks in advance.

Regards,
D.
From: Maxim S. Shatskih on
> special API conversion like, "MmMapIoSpace"?

MmMapIoSpace is for memory-mapped IO, not for IO ports.

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com

From: dsrking on
So i can directly access bass address from .inf file IoConfig region?

thanks,
D.
From: Maxim S. Shatskih on
> So i can directly access bass address from .inf file IoConfig region?

No.

To be proper, you should leave the PnP installer (which interprets your INF) to put these config values to some PnP registry.

Then your driver will get MJ_START_DEVICE with ..AllocatedResourcesTranslated, where you will see your port numbers. Save them to the devext and then use READ/WRITE_PORT_UCHAR/USHORT to access the hardware.

This is the proper way.

But yes, it will be the same address :-)

--
Maxim S. Shatskih
Windows DDK MVP
maxim(a)storagecraft.com
http://www.storagecraft.com