Legacy ISA card: Code samples for IoReportResourceForDetection() ?

Hi,

I’m in progress of writing a 64bit KMDF driver for a very old ISA card.
This card has no PnP, just a few DIP switches for I/O address and IRQ line: 1980’s style!

So I started to work with IoReportResourceForDetection() and IoReportDetectedDevice().

At the moment, IoReportResourceForDetection() crashes, because I do not submit a correct PDO for the device.
I think mapping the IRQ line is the problem.
And I use the “list-per-device” call style, not the “single-list-per-driver”.

But before posting more precise questions, I’d like to study some sample code.

Can anyone give me a hint?

Thanks,
Joerg

> I’m in progress of writing a 64bit KMDF driver for a very old ISA card.

Are you sure there are 64bit machines with ISA slots? :slight_smile:

Don’t forget to play with LogConfig in your INF file, this is very important.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

Instead of using IoReportResourceForDetection create a PnP driver with KMDF
for the device and use a LogConfig section in the INX file to specify the
resources. I’ve supported a lot of ISA cards since PnP came about and
never used IoReportResourceForDetection.

Don Burn
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@t-online.de
Sent: Thursday, July 25, 2013 8:39 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Legacy ISA card: Code samples for
IoReportResourceForDetection() ?

Hi,

I’m in progress of writing a 64bit KMDF driver for a very old ISA card.
This card has no PnP, just a few DIP switches for I/O address and IRQ line:
1980’s style!

So I started to work with IoReportResourceForDetection() and
IoReportDetectedDevice().

At the moment, IoReportResourceForDetection() crashes, because I do not
submit a correct PDO for the device.
I think mapping the IRQ line is the problem.
And I use the “list-per-device” call style, not the
“single-list-per-driver”.

But before posting more precise questions, I’d like to study some sample
code.

Can anyone give me a hint?

Thanks,
Joerg


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

I know there are 64-bit machines with ISA equivalent slots. There are a number of Atom-based PC-104/PC-104+ CPU boards for embedded and industrial applications. The PC-104 is an ISA bus in a different physical configuration.

Greg

xxxxx@storagecraft.com wrote:

From: “Maxim S. Shatskih”
To: “Windows System Software Devs Interest List”
Subject: Re:[ntdev] Legacy ISA card: Code samples for IoReportResourceForDetection() ?
Date: Thu, 25 Jul 2013 16:43:02 +0400

> I’m in progress of writing a 64bit KMDF driver for a very old ISA card.

Are you sure there are 64bit machines with ISA slots? :slight_smile:

Don’t forget to play with LogConfig in your INF file, this is very important.


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Atom is not x64


Maxim S. Shatskih
Microsoft MVP on File System And Storage
xxxxx@storagecraft.com
http://www.storagecraft.com

“Gregory G Dyess” wrote in message news:xxxxx@ntdev…
>I know there are 64-bit machines with ISA equivalent slots. There are a number of Atom-based PC-104/PC-104+ CPU boards for embedded and industrial applications. The PC-104 is an ISA bus in a different physical configuration.
>
> Greg
>
> — xxxxx@storagecraft.com wrote:
>
> From: “Maxim S. Shatskih”
> To: “Windows System Software Devs Interest List”
> Subject: Re:[ntdev] Legacy ISA card: Code samples for IoReportResourceForDetection() ?
> Date: Thu, 25 Jul 2013 16:43:02 +0400
>
>> I’m in progress of writing a 64bit KMDF driver for a very old ISA card.
>
> Are you sure there are 64bit machines with ISA slots? :slight_smile:
>
> Don’t forget to play with LogConfig in your INF file, this is very important.
>
> –
> Maxim S. Shatskih
> Microsoft MVP on File System And Storage
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
>
>

> Atom is not x64

That’s not correct, many Atom processors support 64-bit instructions, even really old ones like the Atom 330. For embedded use, the Celeron mobile processors like the 847 are sometimes used. The Celeron 847 even supports hardware virtualization.

See http://ark.intel.com/search/advanced/?s=t&FamilyText=Intel(r) Atom™ Processor&InstructionSet=64-bit

Jan

p.s. Sorry if this shows up as a duplicate message, the initial 2 reply attempts were rejected by the list software claiming it didn’t like something about the message format, so I’m making a clean new message not a reply.

i will second the fact (at least some) that Atoms ARE 64 bit. I have a D510 Atom board that is 2 core + hyperthreading and 64 bit.

Greg

xxxxx@pmatrix.com wrote:

From: Jan Bottorff
To: “Windows System Software Devs Interest List”
Subject: Re:[ntdev] Legacy ISA card: Code samples for IoReportResourceForDetection() ?
Date: Sun, 28 Jul 2013 22:39:22 +0000

> Atom is not x64

That’s not correct, many Atom processors support 64-bit instructions, even really old ones like the Atom 330. For embedded use, the Celeron mobile processors like the 847 are sometimes used. The Celeron 847 even supports hardware virtualization.

See http://ark.intel.com/search/advanced/?s=t&FamilyText=Intel(r) Atom™ Processor&InstructionSet=64-bit

Jan

p.s. Sorry if this shows up as a duplicate message, the initial 2 reply attempts were rejected by the list software claiming it didn’t like something about the message format, so I’m making a clean new message not a reply.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Use your inf file to create the resources for the device. There is a sample
in the old WDK, “portio” (src\general\portio) that does this. There might
be a sample in the 8.x WDK too, but it is difficult to find specific stuff
in those samples. Then your kmdf driver is just a normal (more or less) pnp
driver and everything is happy, other than the fact that a 64bit platform
and an ISA device are a hideous mismatch.

Mark Roddy

On Thu, Jul 25, 2013 at 8:38 AM, wrote:

> Hi,
>
> I’m in progress of writing a 64bit KMDF driver for a very old ISA card.
> This card has no PnP, just a few DIP switches for I/O address and IRQ
> line: 1980’s style!
>
> So I started to work with IoReportResourceForDetection() and
> IoReportDetectedDevice().
>
> At the moment, IoReportResourceForDetection() crashes, because I do not
> submit a correct PDO for the device.
> I think mapping the IRQ line is the problem.
> And I use the “list-per-device” call style, not the
> “single-list-per-driver”.
>
> But before posting more precise questions, I’d like to study some sample
> code.
>
> Can anyone give me a hint?
>
> Thanks,
> Joerg
>
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>