Discussion:
Non Plug & Play ISA Driver support in Windows XP and Windows 7 ?
(too old to reply)
dsrking
2010-08-09 13:00:25 UTC
Permalink
Hi,

I need to write a driver for Non Plug & Play ISA supported CAN
Controller in Windows XP and 7. From net and wdk, i got some
information and i have some doubts on it.

1. Windows 7 supports Non Plug & Play ISA driver? I got this doubt
from the below link,
"http://www.microsoft.com/whdc/connect/pci/isa-bus.mspx".

2. portio sample in WDK (WDF based driver) is enough for my
requirement. (especially for windows 7)? But there is no support for
interrupt handler. Is it possible to add interrupt handler from some
other pci driver? and also it does not mention any vendor/device id in
genport.inf file. For my device, it is possible to add this Id portion
to .inf file.

3. "WinDDK\7600.16385.1\src\general\amcc5933" sample is well suited
for my requirement? This is for only IO based. I want to access Memory
based driver. Is it also possible to add this support from some other
pci driver.
This driver is loaded as virtual one (i.e., using ADD hardware
wizard). How this .inf file gets loaded for my device (i.e., for
specific vendor/device ID) even though it is loaded as virtual driver?

Awaiting for your response.

Best Regards,
Dsrking.
Don Burn
2010-08-09 13:24:08 UTC
Permalink
Your driver will need to be plug and play even if the device is not.
Starting with XP old NT style drivers became problematical on real
hardware.

Personally, I would not use either sample you list below, but instead
develop a KMDF driver for your device. Since your device does not
really support plug and play, KMDF will handle all the work in that
area. Since KMDF also simplifies the rest of the driver you will speed
your development.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
-----Original Message-----
Posted At: Monday, August 09, 2010 9:00 AM
Posted To: microsoft.public.development.device.drivers
Conversation: Non Plug & Play ISA Driver support in Windows XP and
Windows 7 ?
Subject: Non Plug & Play ISA Driver support in Windows XP and Windows
7 ?
Hi,
I need to write a driver for Non Plug & Play ISA supported CAN
Controller in
Windows XP and 7. From net and wdk, i got some information and i have
some
doubts on it.
1. Windows 7 supports Non Plug & Play ISA driver? I got this doubt
from the
below link, "http://www.microsoft.com/whdc/connect/pci/isa-bus.mspx".
2. portio sample in WDK (WDF based driver) is enough for my
requirement.
(especially for windows 7)? But there is no support for interrupt
handler. Is
it possible to add interrupt handler from some other pci driver? and
also it
does not mention any vendor/device id in genport.inf file. For my
device, it
is possible to add this Id portion to .inf file.
3. "WinDDK\7600.16385.1\src\general\amcc5933" sample is well suited
for my
requirement? This is for only IO based. I want to access Memory based
driver.
Is it also possible to add this support from some other pci driver.
This driver is loaded as virtual one (i.e., using ADD hardware
wizard). How
this .inf file gets loaded for my device (i.e., for specific
vendor/device ID)
even though it is loaded as virtual driver?
Awaiting for your response.
Best Regards,
Dsrking.
__________ Information from ESET Smart Security, version of virus
signature
database 5351 (20100809) __________
The message was checked by ESET Smart Security.
http://www.eset.com
Maxim S. Shatskih
2010-08-09 13:43:30 UTC
Permalink
Post by dsrking
I need to write a driver for Non Plug & Play ISA supported CAN
I think PnP ISA drivers are the same as non-PnP ones, the difference is in INF file and installation only.

The INF for non-PnP must list the possible port IO ranges in LogConfig, the device is installed manually in Add New Hardware+select from list, and there the admin must choose the port IO ranges from the ones in LogConfig.
--
Maxim S. Shatskih
Windows DDK MVP
***@storagecraft.com
http://www.storagecraft.com
dsrking
2010-08-09 14:02:58 UTC
Permalink
Thanks Don & maxim,

Could you please answer my first question,

"
1. Windows 7 supports Non Plug & Play ISA driver? I got this doubt
from the below link,
"http://www.microsoft.com/whdc/connect/pci/isa-bus.mspx".

"

Regards - D.
dsrking
2010-08-09 14:05:17 UTC
Permalink
Thanks Don & maxim,

could you please answer my first question,

"1. Windows 7 supports Non Plug & Play ISA driver? I got this doubt
from the below link,
"http://www.microsoft.com/whdc/connect/pci/isa-bus.mspx". "

Thanks for your great support.

Regards,
dsrking.
dsrking
2010-08-09 14:07:21 UTC
Permalink
Thanks Don & maxim,

The above mentioned 2 samples are in KMDF based. and also please guide
me for my first doubt.

1. Windows 7 supports Non Plug & Play ISA driver? I got this doubt
from the below link,
"http://www.microsoft.com/whdc/connect/pci/isa-bus.mspx".
Don Burn
2010-08-09 14:11:11 UTC
Permalink
No, Windows 7 does not support a Non Plug and Play driver, but you can
support a Non Plug and Play device with a Plug and Play driver.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
-----Original Message-----
Posted At: Monday, August 09, 2010 10:07 AM
Posted To: microsoft.public.development.device.drivers
Conversation: Non Plug & Play ISA Driver support in Windows XP and
Windows 7 ?
Subject: Re: Non Plug & Play ISA Driver support in Windows XP and
Windows 7 ?
Thanks Don & maxim,
The above mentioned 2 samples are in KMDF based. and also please guide
me for
my first doubt.
1. Windows 7 supports Non Plug & Play ISA driver? I got this doubt
from the
below link, "http://www.microsoft.com/whdc/connect/pci/isa-bus.mspx".
__________ Information from ESET Smart Security, version of virus
signature
database 5352 (20100809) __________
The message was checked by ESET Smart Security.
http://www.eset.com
dsrking
2010-08-09 14:28:30 UTC
Permalink
thanks Don,

What about ISA support in Windows 7?

-- D.
Don Burn
2010-08-09 14:40:06 UTC
Permalink
This should be the same as any other legacy device such as a COM port.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
-----Original Message-----
Posted At: Monday, August 09, 2010 10:29 AM
Posted To: microsoft.public.development.device.drivers
Conversation: Non Plug & Play ISA Driver support in Windows XP and
Windows 7 ?
Subject: Re: Non Plug & Play ISA Driver support in Windows XP and
Windows 7 ?
thanks Don,
What about ISA support in Windows 7?
-- D.
__________ Information from ESET Smart Security, version of virus
signature
database 5352 (20100809) __________
The message was checked by ESET Smart Security.
http://www.eset.com
dsrking
2010-08-09 14:56:08 UTC
Permalink
Basically shall i continue my driver development with some KMDF based
PCI driver samples for both xp and win 7?

Thanks a lot Don. I shall check with my hardware and let u know.

--D.
Maxim S. Shatskih
2010-08-09 15:55:19 UTC
Permalink
Post by dsrking
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
***@storagecraft.com
http://www.storagecraft.com
dsrking
2010-08-10 14:01:28 UTC
Permalink
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=***@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.
Maxim S. Shatskih
2010-08-10 14:20:30 UTC
Permalink
Post by dsrking
special API conversion like, "MmMapIoSpace"?
MmMapIoSpace is for memory-mapped IO, not for IO ports.
--
Maxim S. Shatskih
Windows DDK MVP
***@storagecraft.com
http://www.storagecraft.com
dsrking
2010-08-10 15:49:08 UTC
Permalink
So i can directly access bass address from .inf file IoConfig region?

thanks,
D.
Maxim S. Shatskih
2010-08-10 18:53:03 UTC
Permalink
Post by dsrking
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
***@storagecraft.com
http://www.storagecraft.com
dsrking
2010-08-11 15:01:11 UTC
Permalink
hi maxim,
Post by Maxim S. Shatskih
remember that ISA interrupts are Latched and not LevelSensitive.
It will affect the interrupt handler routine in my driver or i need to
change any settings in interrupt handler routines.

Thanks for your quick response.

Regards,
D
Maxim S. Shatskih
2010-08-11 16:07:16 UTC
Permalink
Post by dsrking
It will affect the interrupt handler routine in my driver or i need to
change any settings in interrupt handler routines.
Register your interrupt as Latched.
--
Maxim S. Shatskih
Windows DDK MVP
***@storagecraft.com
http://www.storagecraft.com
James M. Evans
2010-08-31 11:38:15 UTC
Permalink
Good Morning, I am receiving Microsoft internal emails on my home computer,
Why?
Post by Maxim S. Shatskih
Post by dsrking
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.
Loading...