Hi, people
Yesterday I sent an e-mail asking for help to my problem
with the IO Port registering.
Probably no one responsed me because it´s a very basic
question. I also agree with this, but I spent almost one week
trying to solve the problem and had no progress.
Let me try to present more information about my case.
I´m developing a NT4.0 NDIS driver to a specific ISA
card that my company designed. I finished my miniport description
and started the tests. I needed to study a lot about setup files
for NT system in order to create a specific INF file for my
driver.
I can already install, update NT registry and get this
information using my drive (bus type, IO address, memory base
address). I think it´s Ok.
However when I try register my IO access(it´s necessary
in NDIS drivers) using NdisMRegisterIoPortRange I receive the
error status NDIS_STATUS_FAILURE.
Before using this function I call NdisMSetAttributes (I
tryed also call NdisMSetAttributesEx) like it´s documented.
I´ve tested my variables and everything looks OK. I have a
specific adapter structure create to store driver´s internal
variables that I pass to the NdisSetAttributes function in
the parameter MiniportAdapterContext. The parameter of
AdapterType is set to NdisInterfaceIsa, because I have a
ISA card. I don´t receive any status from NdisMSetAttributes,
but I think it´s Ok.
In the NdisMRegisterIoPortRange I set values also
normal for ISA access: address 0x200 to the InitialPort
parameter and 0x10 to NumberOfPorts.
My questions: Is there some necessary value to set
in my driver or my adapter structure before call the function
NdisMSetAttributes? (I don´t think so)
Is there some special configuration in the setup
(INF) file to be done before registering IO access in NDIS
drivers?
Could this problem be caused by hardware? I´ve
tested in two computers and using differents IO addresses.
It´s really necessary to have my card present in the
machine to call NdisMRegisterIoPortRange? In both
situations: with and without card I had the same problem.
Well, now I hope someone in the list could help
me. Someone have a simple driver that make IO access to
send me? Then I could test if the problem is my machine
or my driver…
Thank in advance,
Ronaldo Husemann
Hallo, people
I´m new in this list.
I´m developing in my work a NT4.0 NDIS miniport driver for
a ISA card. In the last week I studied and create a setup (INF)
file specific to my driver that I believe is Ok. I can write
information in the NT registry using my INF file and read it
from my driver.
Unfortunately I´m having problems, when I try to registry
the driver´s I/O Port address in the NDIS library. I call
NdisMSetAttributes before call NdisMRegisterIoPortRange, like
is indicated in the DDK document, but I always receive
NDIS_STATUS_FAILURE as response.
I make a lot of tests but until now I couldn´t solve
this initial problem. It´s very strange.
Someone here have already developed a NDIS NT driver to
a ISA card or have similar problems in the first implementation?
Any information about this could be useful.
Thanks in advance,Ronaldo Husemann
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com