Windows XP driver development question;

Hi;

i am a newbie in driver development & i have some general questions,

i have a piece of hardware that connects to ISA bus;

i like to write kernel codes for I/O with this board under XP OS;

I got the 2008 windows DDK & planning to use KMDF / WDF;

My questions goes:

  • Should the driver that i am going to code goes under BUS driver?

  • Do i need to write in sequence like a BUS, followed by Function & Filter
    driver like the DDK TOASTER sample to get my project working,?

Thanks;

> i have a piece of hardware that connects to ISA bus;

Wow!!! Are you working in a computer history museum??? I think these days it may take quite a while to find a machine that may actually take advantage on your hardware…

  • Do i need to write in sequence like a BUS, followed by Function & Filter driver like the
    DDK TOASTER sample to get my project working,?

…don’t forget to introduce SCSI miniport, as well as NDIS IM and TDI filters into this sequence - otherwise
your project is not going to work.

On a serious note, I would advise you to do something other than a driver for ISA device
(if I got it right you are planning to do it for educational purposes)…

Anton Bassov

Does your hardware support ISA PnP enumeration?

If not, I suggest - as Anton noted - that you perhaps find another learning
‘device’. What you will ultimately be learning is how to write a legacy
driver for NT 4.0. While that is an admirable exercise in learning, it is
of very little practical value these days and avoids learning the more
relevant areas of Windows Driver Development such as Plug & Play and the
rather important implications it has on how one designs a driver (stack).

  • Should the driver that i am going to code goes under BUS driver?

Probably not. The bus in this case is the ISA bus and there is a bus driver
for it which will be just fine if your device supports PnP enumeration on an
ISA bus.

  • Do i need to write in sequence like a BUS, followed by Function & Filter
    driver like the DDK TOASTER sample to get my project working,?

Assuming your device is ISA PnP - it will be enumerated and assigned
resources by the ISA BUS driver. At this point, the system would be
expecting to have a Function Driver installed to support the device. Since
you device is real hardware, you would probably start with another sample
(other than Toaster based samples).

The Toaster samples are all about demonstrating PnP concepts without
hardware. Other samples demonstrate how a driver for a physical device
enumerated by a system bus might be constructed.

Good Luck,
Dave Cattley

If I read you correctly you have an ISA device you want a dirver for. In
that case use KMDF and probably follow the PCIDRV sample. You will get the
hardware resources in the driver the same way that sample does and in
general the model is the same. What will be different is in the INX file
you need to use a LogConfig section to specify the hardware resources such
as interrupt, ports and memory.

Do not worry about the comments on old hardware, I still encounter a fair
number of customers with semi-embedded applications that use ISA because it
is cheap and simple for their device.


Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

wrote in message news:xxxxx@ntdev…
>
> Hi;
>
> i am a newbie in driver development & i have some general questions,
>
> i have a piece of hardware that connects to ISA bus;
>
> i like to write kernel codes for I/O with this board under XP OS;
>
> I got the 2008 windows DDK & planning to use KMDF / WDF;
>
>
> My questions goes:
>
> - Should the driver that i am going to code goes under BUS driver?
>
> - Do i need to write in sequence like a BUS, followed by Function & Filter
> driver like the DDK TOASTER sample to get my project working,?
>
>
> Thanks;
>
>
>
> Information from ESET NOD32 Antivirus, version of virus
> signature database 4263 (20090721)

>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>

Information from ESET NOD32 Antivirus, version of virus signature database 4263 (20090721)

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

xxxxx@hotmail.com wrote:

> i have a piece of hardware that connects to ISA bus;

Wow!!! Are you working in a computer history museum??? I think these days it may take quite a while to find a machine that may actually take advantage on your hardware…

Actually, the “ISA bus” is still alive - under the LPC bridge of modern
chipsets.

–pa

Thanks for all your replies;

Can i don’t include PNP code for my ISA hardware?

How do i include LogConfig section in my inf file from PCIDRV sample
if my hardware has address 0xDEF0?

This LogConfig is taken from PortIO;

LogConfig=PortIO.LC0, PortIO.LC1

[PortIO.LC0]
ConfigPriority=DESIRED
IOConfig=300-303(3ff::slight_smile:

[PortIO.LC1]
ConfigPriority=NORMAL
IOConfig=4@300-3ff(3ff::slight_smile:

Thanks;

> Can i don’t include PNP code for my ISA hardware?

No, unless you want to disable all power management on the machine. In this latter case, write an NT4 style non-WDM driver.

But is much better to use KDMF and go on.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com