>Rafal,
You might also check the PORTIO sample from the Win2K DDK. It’s pretty
simple and does the same thing. You can find it in the
%DDKPATH%\src\general\portio.Note: it appears to have been removed from the XP DDK.
>Subject: Re: WDM or Windows 2000 device driver for non-PnP ISA hardware -
> allocating resources and creating the FDO
>From: Walter Oney
>>Date: Thu, 09 Jan 2003 22:05:57 -0500
>>X-Message-Number: 74
>>
>>Rafal Gwizdala wrote:
>> > I have a problem with writing a driver for legacy non-PnP ISA board that
>> > would run under Windows 2K. I tried to make it a WDM driver, but I don’t
>> > know how to allocate resources for it and how to properly create the
>> > DEVICE_OBJECT for my device.
>>
>>Put the resource requirements in a LogConfig section in your INF file.
>>After that, your driver will be about the same as any other WDM driver.
>>The PIOFAKE sample in my WDM book is like this, except that it doesn’t
>>actually have any hardware. But note that the OS can’t really tell the
>>difference between an ISA card and a virtual device like PIOFAKE.
>>
>>–
>>Walter Oney, Consulting and Training
>>Basic and Advanced Driver Programming Seminars
>>Now teaming with John Hyde for USB Device Engineering Seminars
>>Check out our schedule at http://www.oneysoft.com