I suggest first getting a good book on WDM driver programming. Assuming that
you are talking about the translated resource list in your START_DEVICE
routine, the first translated resource in the list ought to correspond to
BAR0. You use the HAL READ/WRITE_PORT_XXXX routines to access offsets from
BAR0 using the translated resource from START_DEVICE as the base address.
By tradition BAR0 is memory mapped not IO mapped.
-----Original Message-----
From: xxxxx@vigorsoft.com [mailto:xxxxx@vigorsoft.com]
Sent: Wednesday, April 16, 2003 2:19 AM
To: NT Developers Interest List
Subject: [ntdev] IOSpace Base Address Register and HAL
read-write functionsHello,
I’m a bit confused about the following. My PCI card uses IO
space. Using Jungo’s WinDriver eval version, I find that the
configuration space indicates a Base Address Regiser-0. Then
I read to and write from offsets from this BAR-0 using
WinDriver wizard… all that shows the card works alright.
Now, I want MY DRIVER – which doesn’t depend on WinDriver –
to do the read and write at specific offsets from BAR-0. I
enumerated the card’s resources – ports in this case. The
question is, is the portBase (the u.Port.Start.LowPart) the
same as BAR0 ? If not, can anyone suggest me a way to write
to offsets from BAR0, given the portio resources ?Regards,
Sunil Jigyasu
VigorSoft Pvt Ltd
Baroda, India.
You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
xxxxx@lists.osr.com